Logo Search packages:      
Sourcecode: catfish version File versions  Download package

def catfish::catfish::get_yesno_dialog (   self,
  msg,
  parent = None 
)
Display yes/ no dialog and return a boolean value.

Definition at line 424 of file catfish.py.

                                                :
        """Display yes/ no dialog and return a boolean value."""

        SaveFile = gtk.MessageDialog(parent, 0,
            gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, msg)
        SaveFile.set_default_response(gtk.RESPONSE_NO);
        response = SaveFile.run()
        SaveFile.destroy()
        return response == gtk.RESPONSE_YES


Generated by  Doxygen 1.6.0   Back to index