def __quit(self):
# End program
logging.info("User pressed ''quit'' button - now halting threads")
# Close threads running for signal display and processing
self.signalDisplayInstance.closeThreads()
logging.info("Signal display thread was closed")
# If camera connection is active, close it
self.cameraInstance.close_camera_thread()
logging.info("Camera capture thread was closed")
# Close GUI
self.root.quit()
logging.info("Tk mainloop() was halted")
# Debug: Store all still running threads
logging.debug(threading.enumerate())
# Exit program
if settings.determine_if_under_testing() is False:
logging.info("Program will halt now...")
sys.exit()
评论列表
文章目录