class documentation

class QuestionDialog(Gtk.MessageDialog): (source)

View In Hierarchy

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
def __init__(self, parent, question): (source)
Constructor.
Parameters
parenteither a parent window or dialog or None
questiona 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.
def answer_no(self): (source)

Undocumented

def answer_yes(self): (source)

Undocumented

def do_response(self, id): (source)

Undocumented

def run(self): (source)
Runs the dialog and destroys it directly.
Returns
True if the user clicked 'Yes', False otherwise.
answer = (source)

Undocumented

question = (source)

Undocumented