def quit_window_in_wrong(self, primary_text="", secondary_text=""): """ """ #There can add more information from higwidgets.higwindows import HIGAlertDialog #print 'The exception is %s'%(info) alter = HIGAlertDialog(primary_text = primary_text,\ secondary_text = secondary_text) alter.show_all() result = alter.run() #cannot write return, if so the program cannot quit, and run in background self.terminate()
def quit_window_in_wrong(self,primary_text = "",secondary_text = ""): """ """ #There can add more information from higwidgets.higwindows import HIGAlertDialog #print 'The exception is %s'%(info) alter = HIGAlertDialog(primary_text = primary_text,\ secondary_text = secondary_text) alter.show_all() result = alter.run() #cannot write return, if so the program cannot quit, and run in background self.terminate()
def _alter_show(self,primary_text,secondary_text): #Add the user-friendly information to the user to check the problem. if theApp.use_gui == False: g_logger.error(primary_text+secondary_text) theApp.login_without_gui() return import gtk from higwidgets.higwindows import HIGAlertDialog alter = HIGAlertDialog(primary_text = primary_text,\ secondary_text = secondary_text) alter.show() alter.run() #clear db theApp.peer_info.clear_db() theApp.is_auto_login = False #show login window again theApp.gtk_main.show_login()