Removed Contrtol C, Updated All Widgets, new Cookbook demo!

This commit is contained in:
MikeTheWatchGuy 2018-08-29 13:36:03 -04:00
parent 3eb65e5093
commit c1de1938c1
4 changed files with 790 additions and 64 deletions

View file

@ -41,7 +41,7 @@ def ChatBotWithHistory():
history_offset = len(command_history)-1
multiline_elem.Update('') # manually clear input because keyboard events blocks clear
history_elem.Update('\n'.join(command_history[-3:]))
elif button is None or button is 'EXIT' or 'c:67' in button: # quit if exit button, X, or control C
elif button is None or button is 'EXIT': # quit if exit button or X
break
elif 'Up' in button and len(command_history):
command = command_history[history_offset]