def cleanup(self): # kill thread count thread EventHandler.kill_thread_count_thread() # fix prompt os.system("stty echo") # exit sys.exit(0)
def cleanup(self): #kill key press thread if it has been set up if self.keyevent_thread: self.keyevent_thread.stop() # kill thread count thread EventHandler.kill_thread_count_thread() # fix prompt os.system("stty echo") # exit sys.exit(0)