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

@ -25,10 +25,10 @@ window = sg.Window('CPU Meter',
# ---------------- main loop ----------------
while (True):
# --------- Read and update window --------
button, values = window.ReadNonBlocking()
event, values = window.ReadNonBlocking()
# --------- Do Button Operations --------
if values is None or button == 'Exit':
if values is None or event == 'Exit':
break
try:
interval = int(values['_spin_'])