diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index d0d93ed4594..65cbd166d07 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 d0d93ed4594..65cbd166d07 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={}):