def on_main_window_destroy(self, widget, data=None): print "destroy signal occurred" self.mIsRunning = False self.mControlThread.join() gtk.main_quit() can_control.releasePCAN()
def on_main_window_destroy(self, widget, data=None): print "destroy signal occurred" self.write_config_file(DEFAULT_CONFIG_FILE_NAME) # write the changed configurations self.stop_scan() if USE_MOTORS: can_control.releasePCAN() gtk.main_quit()
def on_main_window_destroy(self, widget, data=None): print "destroy signal occurred" self.write_config_file( DEFAULT_CONFIG_FILE_NAME) # write the changed configurations self.stop_scan() if USE_MOTORS: can_control.releasePCAN() gtk.main_quit()
def on_main_window_destroy(self, widget, data=None): print "destroy signal occurred" gtk.main_quit() can_control.disableMotors() can_control.releasePCAN()