Release 3.12.0 & 1.12.0

This commit is contained in:
MikeTheWatchGuy 2018-10-28 20:01:03 -04:00
parent 42c5499687
commit f60137c4b2
83 changed files with 2030 additions and 1118 deletions

View file

@ -11,15 +11,15 @@ layout = [[sg.Text("Hold down a key")],
window = sg.Window("Realtime Keyboard Test", return_keyboard_events=True, use_default_focus=False).Layout(layout)
while True:
event, values = window.ReadNonBlocking()
event, values = window.Read(timeout=0)
if event == "OK":
print(event, values, "exiting")
break
if event is not None:
if event is not sg.TIMEOUT_KEY:
if len(event) == 1:
print('%s - %s' % (event, ord(event)))
else:
print(event)
elif values is None:
elif event is None:
break