Changed bad if statements that were using 'is' and made '==' instead.
This commit is contained in:
parent
23dfb5f7cc
commit
ad100b8e75
22 changed files with 45 additions and 52 deletions
|
@ -97,7 +97,7 @@ def main():
|
|||
|
||||
while True:
|
||||
event, values = window.Read(timeout=0)
|
||||
if event is 'Exit' or event is None:
|
||||
if event in ('Exit', None):
|
||||
break
|
||||
|
||||
run_a_ping_and_graph()
|
||||
|
@ -106,5 +106,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue