Fix bug in At() (Steen)

This commit is contained in:
Guido van Rossum 1994-07-12 09:04:41 +00:00
parent c618ed9868
commit 5e0c25bbf1
2 changed files with 6 additions and 6 deletions

View File

@ -701,10 +701,10 @@ def AtSelFirst():
def AtSelLast(): def AtSelLast():
return 'sel.last' return 'sel.last'
def At(x, y=None): def At(x, y=None):
if y: if y is None:
return '@' + `x` + ',' + `y`
else:
return '@' + `x` return '@' + `x`
else:
return '@' + `x` + ',' + `y`
class Canvas(Widget): class Canvas(Widget):
def __init__(self, master=None, cnf={}): def __init__(self, master=None, cnf={}):

View File

@ -701,10 +701,10 @@ def AtSelFirst():
def AtSelLast(): def AtSelLast():
return 'sel.last' return 'sel.last'
def At(x, y=None): def At(x, y=None):
if y: if y is None:
return '@' + `x` + ',' + `y`
else:
return '@' + `x` return '@' + `x`
else:
return '@' + `x` + ',' + `y`
class Canvas(Widget): class Canvas(Widget):
def __init__(self, master=None, cnf={}): def __init__(self, master=None, cnf={}):