mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Fix bug in At() (Steen)
This commit is contained in:
parent
c618ed9868
commit
5e0c25bbf1
2 changed files with 6 additions and 6 deletions
|
@ -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={}):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue