Fix bug in At() (Steen)
This commit is contained in:
parent
c618ed9868
commit
5e0c25bbf1
|
@ -701,10 +701,10 @@ def AtSelFirst():
|
|||
def AtSelLast():
|
||||
return 'sel.last'
|
||||
def At(x, y=None):
|
||||
if y:
|
||||
return '@' + `x` + ',' + `y`
|
||||
else:
|
||||
if y is None:
|
||||
return '@' + `x`
|
||||
else:
|
||||
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`
|
||||
else:
|
||||
if y is None:
|
||||
return '@' + `x`
|
||||
else:
|
||||
return '@' + `x` + ',' + `y`
|
||||
|
||||
class Canvas(Widget):
|
||||
def __init__(self, master=None, cnf={}):
|
||||
|
|
Loading…
Reference in New Issue