예제 #1
0
    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
예제 #2
0
	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
예제 #3
0
	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
예제 #4
0
    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