]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bug in At() (Steen)
authorGuido van Rossum <guido@python.org>
Tue, 12 Jul 1994 09:04:41 +0000 (09:04 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 12 Jul 1994 09:04:41 +0000 (09:04 +0000)
Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py

index d0d93ed45948f2d099e43524983d16c2019c9fea..65cbd166d07fcc5d2f910e5115d94f8ea3bb8ef9 100644 (file)
@@ -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={}):
index d0d93ed45948f2d099e43524983d16c2019c9fea..65cbd166d07fcc5d2f910e5115d94f8ea3bb8ef9 100755 (executable)
@@ -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={}):