Renamed return value from Read call from button to event... EVERYWHERE

This commit is contained in:
MikeTheWatchGuy 2018-10-15 16:07:23 -04:00
parent 43526e0182
commit c79a8772cc
86 changed files with 7992 additions and 12709 deletions

View file

@ -57,12 +57,12 @@ def MediaPlayerGUI():
# Our event loop
while(True):
# Read the form (this call will not block)
button, values = window.ReadNonBlocking()
if button == 'Exit':
event, values = window.ReadNonBlocking()
if event == 'Exit':
break
# If a button was pressed, display it on the GUI by updating the text element
if button:
window.FindElement('output').Update(button)
if event:
window.FindElement('output').Update(event)
MediaPlayerGUI()