def on_main_cancel_clicked(self, widget): """ Callback for Exit button (in main window) and Quit menu item, where it shows the "Are you sure?" window """ window = devede_dialogs.ask_exit(self.gladefile) retval = window.run() window = None if retval == -5: gtk.main_quit() return
def on_main_cancel_clicked(self,widget): """ Callback for Exit button (in main window) and Quit menu item, where it shows the "Are you sure?" window """ window=devede_dialogs.ask_exit(self.gladefile) retval=window.run() window=None if retval==-5: gtk.main_quit() return
def ask_cancel(self): window=devede_dialogs.ask_exit(self.gladefile) retval=window.run() window=None print "Retorno: ", print retval if retval==-5: Gtk.main_quit() return False return True
def ask_cancel(self): window = devede_dialogs.ask_exit(self.gladefile) retval = window.run() window = None print "Retorno: ", print retval if retval == -5: gtk.main_quit() return False return True