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

@ -40,8 +40,8 @@ def main():
# ---===--- LOOP through video file by frame --- #
i = 0
while vidFile.isOpened():
button, values = window.ReadNonBlocking()
if button is 'Exit' or values is None:
event, values = window.ReadNonBlocking()
if event is 'Exit' or values is None:
exit(69)
ret, frame = vidFile.read()
if not ret: # if out of data stop looping