Use ==/!= to compare str literals

This commit is contained in:
cclauss 2019-06-25 22:46:32 +02:00
parent 6680820360
commit b2ba8acb34
26 changed files with 52 additions and 60 deletions

View file

@ -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()