def on_exit(self):
#When you click to exit, this function is called
if tkMessageBox.askyesno("Exit", "Do you want to quit the application?"):
self.store_para(gui_vars.saveParaPath, gui_vars.configName)
print 'Close Main Thread...'
self.main_run_judge= False
self.ArdMntr.exit= True
self.scanning_judge= False
#self.CamMntr.stop_clean_buffer()
#del(self.thread_main)
self.thread_main.exit()
print 'Close Arduino Thread...'
#del(self.CamMntr.thread_clean_buffer)
#print 'Close Scanning Thread...'
#del(self.thread_scanning)
print self.MaxSpeed
self.CamMntr.release_cap()
self.root.destroy()
评论列表
文章目录