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():
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={}):

View 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={}):