Kaydet (Commit) 5e0c25bb authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix bug in At() (Steen)

üst c618ed98
......@@ -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={}):
......
......@@ -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={}):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment