Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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