Use ==/!= to compare str literals
This commit is contained in:
parent
6680820360
commit
b2ba8acb34
26 changed files with 52 additions and 60 deletions
|
@ -41,7 +41,7 @@ def main():
|
|||
i = 0
|
||||
while vidFile.isOpened():
|
||||
event, values = window.Read(timeout=0)
|
||||
if event is 'Exit' or event is None:
|
||||
if event in ('Exit', None):
|
||||
exit(69)
|
||||
ret, frame = vidFile.read()
|
||||
if not ret: # if out of data stop looping
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue