def _deinitToolToExit( self ): if self.usbhidDetectTimer != None: self.usbhidDetectTimer.cancel() uivar.setAdvancedSettings(uidef.kAdvancedSettings_Tool, self.toolCommDict) uivar.deinitVar() #exit(0) global g_main_win g_main_win.Show(False)
def _deinitToolToExit( self ): uivar.setAdvancedSettings(uidef.kAdvancedSettings_Tool, self.toolCommDict) uivar.deinitVar() #exit(0) global g_main_win g_main_win.Show(False) try: self.Destroy() except: pass
def _deinitToolToExit( self ): uivar.setAdvancedSettings(uidef.kAdvancedSettings_Tool, self.toolCommDict) uivar.deinitVar() #exit(0) self._stopTask(g_task_detectUsbhid) self._stopTask(g_task_playSound) self._stopTask(g_task_allInOneAction) self._stopTask(g_task_accessMem) self._stopTask(g_task_increaseGauge) self._stopTask(g_task_showSettedEfuse) global g_main_win g_main_win.Show(False) try: self.Destroy() except: pass