summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-07-12 09:04:41 (GMT)
committerGuido van Rossum <guido@python.org>1994-07-12 09:04:41 (GMT)
commit5e0c25bbf18398dda9284d678b49bb6bfebe845b (patch)
tree17acf07cdf221654c1daa0a22e1924cbd53a772a /Lib
parentc618ed986897fdbeeea6e1d68dcbed604b8d3bd0 (diff)
downloadcpython-5e0c25bbf18398dda9284d678b49bb6bfebe845b.zip
cpython-5e0c25bbf18398dda9284d678b49bb6bfebe845b.tar.gz
cpython-5e0c25bbf18398dda9284d678b49bb6bfebe845b.tar.bz2
Fix bug in At() (Steen)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/Tkinter.py6
-rwxr-xr-xLib/tkinter/Tkinter.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index d0d93ed..65cbd16 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -701,10 +701,10 @@ def AtSelFirst():
def AtSelLast():
return 'sel.last'
def At(x, y=None):
- if y:
- return '@' + `x` + ',' + `y`
+ if y is None:
+ return '@' + `x`
else:
- return '@' + `x`
+ return '@' + `x` + ',' + `y`
class Canvas(Widget):
def __init__(self, master=None, cnf={}):
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py
index d0d93ed..65cbd16 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/Tkinter.py
@@ -701,10 +701,10 @@ def AtSelFirst():
def AtSelLast():
return 'sel.last'
def At(x, y=None):
- if y:
- return '@' + `x` + ',' + `y`
+ if y is None:
+ return '@' + `x`
else:
- return '@' + `x`
+ return '@' + `x` + ',' + `y`
class Canvas(Widget):
def __init__(self, master=None, cnf={}):