print(" r Recover") print(" d Save data") print(" q Quit") print(" h Help") print("") if __name__ == "__main__": r = riddler(args) try: print_help() while r: # Get a key from user c = interface.get_keypress() # Select action based on key pressed if c == 't': r.start() elif c == 'p': r.toggle_pause() elif c == 's': r.stop_test() elif c == 'r': r.recover() elif c == 'd': r.save_data() elif c == 'q': r.quit() else:
def hide(self): ch = interface.get_keypress() pyplot.close('all') #time.sleep(.1) print("Closed")
def hide(self): ch = interface.get_keypress() pylab.close('all') time.sleep(1) #TIME! print("Closed")