summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/guido/paint.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/tkinter/guido/paint.py')
-rw-r--r--Demo/tkinter/guido/paint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/tkinter/guido/paint.py b/Demo/tkinter/guido/paint.py
index d46e20b..7b2e814 100644
--- a/Demo/tkinter/guido/paint.py
+++ b/Demo/tkinter/guido/paint.py
@@ -50,7 +50,7 @@ def b1up(event):
def motion(event):
if b1 == "down":
global xold, yold
- if xold != None and yold != None:
+ if xold is not None and yold is not None:
event.widget.create_line(xold,yold,event.x,event.y,smooth=TRUE)
# here's where you draw it. smooth. neat.
xold = event.x