class QuestionDialog(Gtk.MessageDialog): (source)
Convenience class to prompt the user with Yes/No answer type of questions.
Note that message dialogs do not have a title.
| Method | __init__ |
Constructor. |
| Method | answer_no |
Undocumented |
| Method | answer_yes |
Undocumented |
| Method | do_response |
Undocumented |
| Method | run |
Runs the dialog and destroys it directly. @returns: True if the user clicked 'Yes', False otherwise. |
| Instance Variable | answer |
Undocumented |
| Instance Variable | question |
Undocumented |
| Parameters | |
| parent | either a parent window or dialog or None |
| question | a question that can be answered by 'yes' or 'no', either as sring or a 2-tuple of the actual question and a longer explanation as srtings. Using a tuple here will give a better looking dialog. |