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
|
@ -45,9 +45,9 @@ while True:
|
|||
if event is None:
|
||||
break
|
||||
|
||||
if event is 'Switch LED':
|
||||
if event == 'Switch LED':
|
||||
window.FindElement('output').Update(SwitchLED())
|
||||
elif event is 'Flash LED':
|
||||
elif event == 'Flash LED':
|
||||
window.FindElement('output').Update('LED is Flashing')
|
||||
window.Refresh()
|
||||
FlashLED()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue