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
|
@ -18,7 +18,5 @@ while True:
|
|||
event, values = window.Read()
|
||||
if event is None:
|
||||
break
|
||||
if event is 'Blue':
|
||||
window.FindElement('canvas').TKCanvas.itemconfig(cir, fill = "Blue")
|
||||
elif event is 'Red':
|
||||
window.FindElement('canvas').TKCanvas.itemconfig(cir, fill = "Red")
|
||||
if event in ('Blue', 'Red'):
|
||||
window.FindElement('canvas').TKCanvas.itemconfig(cir, fill=event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue