Fix bug in At() (Steen)
This commit is contained in:
parent
c618ed9868
commit
5e0c25bbf1
|
@ -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={}):
|
||||||
|
|
|
@ -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={}):
|
||||||
|
|
Loading…
Reference in New Issue