questdlg2#

questdlg2(prompt, title, *buttons, parent=None)#

Ask a question and return the clicked button label.

The last value in buttons is the default, matching questdlg2.m. Closing the dialog returns an empty string.

Parameters:
  • prompt (str)

  • title (str)

  • buttons (str)

  • parent (Any | None)

Return type:

str