Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
12dce1a0
Commit
12dce1a0
authored
Jul 21, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix canvas bind commands
parent
fae50890
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/lib-tk/Canvas.py
Lib/lib-tk/Canvas.py
+1
-1
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+1
-1
Lib/tkinter/Canvas.py
Lib/tkinter/Canvas.py
+1
-1
Lib/tkinter/Tkinter.py
Lib/tkinter/Tkinter.py
+1
-1
No files found.
Lib/lib-tk/Canvas.py
View file @
12dce1a0
...
@@ -52,7 +52,7 @@ class CanvasItem:
...
@@ -52,7 +52,7 @@ class CanvasItem:
x1
,
y1
,
x2
,
y2
=
self
.
canvas
.
bbox
(
self
.
id
)
x1
,
y1
,
x2
,
y2
=
self
.
canvas
.
bbox
(
self
.
id
)
return
(
x1
,
y1
),
(
x2
,
y2
)
return
(
x1
,
y1
),
(
x2
,
y2
)
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
return
self
.
canvas
.
bind
(
self
.
id
,
sequence
,
command
)
return
self
.
canvas
.
tag_
bind
(
self
.
id
,
sequence
,
command
)
def
config
(
self
,
cnf
=
None
):
def
config
(
self
,
cnf
=
None
):
return
self
.
canvas
.
itemconfig
(
self
.
id
,
cnf
)
return
self
.
canvas
.
itemconfig
(
self
.
id
,
cnf
)
def
coords
(
self
,
pts
=
()):
def
coords
(
self
,
pts
=
()):
...
...
Lib/lib-tk/Tkinter.py
View file @
12dce1a0
...
@@ -951,7 +951,7 @@ class Canvas(Widget):
...
@@ -951,7 +951,7 @@ class Canvas(Widget):
def
tag_unbind
(
self
,
tagOrId
,
sequence
):
def
tag_unbind
(
self
,
tagOrId
,
sequence
):
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
''
)
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
''
)
def
tag_bind
(
self
,
tagOrId
,
sequence
=
None
,
func
=
None
,
add
=
None
):
def
tag_bind
(
self
,
tagOrId
,
sequence
=
None
,
func
=
None
,
add
=
None
):
return
self
.
_bind
((
self
.
_w
,
'
tag'
,
'
bind'
,
tagOrId
),
return
self
.
_bind
((
self
.
_w
,
'bind'
,
tagOrId
),
sequence
,
func
,
add
)
sequence
,
func
,
add
)
def
canvasx
(
self
,
screenx
,
gridspacing
=
None
):
def
canvasx
(
self
,
screenx
,
gridspacing
=
None
):
return
self
.
tk
.
getdouble
(
self
.
tk
.
call
(
return
self
.
tk
.
getdouble
(
self
.
tk
.
call
(
...
...
Lib/tkinter/Canvas.py
View file @
12dce1a0
...
@@ -52,7 +52,7 @@ class CanvasItem:
...
@@ -52,7 +52,7 @@ class CanvasItem:
x1
,
y1
,
x2
,
y2
=
self
.
canvas
.
bbox
(
self
.
id
)
x1
,
y1
,
x2
,
y2
=
self
.
canvas
.
bbox
(
self
.
id
)
return
(
x1
,
y1
),
(
x2
,
y2
)
return
(
x1
,
y1
),
(
x2
,
y2
)
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
return
self
.
canvas
.
bind
(
self
.
id
,
sequence
,
command
)
return
self
.
canvas
.
tag_
bind
(
self
.
id
,
sequence
,
command
)
def
config
(
self
,
cnf
=
None
):
def
config
(
self
,
cnf
=
None
):
return
self
.
canvas
.
itemconfig
(
self
.
id
,
cnf
)
return
self
.
canvas
.
itemconfig
(
self
.
id
,
cnf
)
def
coords
(
self
,
pts
=
()):
def
coords
(
self
,
pts
=
()):
...
...
Lib/tkinter/Tkinter.py
View file @
12dce1a0
...
@@ -951,7 +951,7 @@ class Canvas(Widget):
...
@@ -951,7 +951,7 @@ class Canvas(Widget):
def
tag_unbind
(
self
,
tagOrId
,
sequence
):
def
tag_unbind
(
self
,
tagOrId
,
sequence
):
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
''
)
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
''
)
def
tag_bind
(
self
,
tagOrId
,
sequence
=
None
,
func
=
None
,
add
=
None
):
def
tag_bind
(
self
,
tagOrId
,
sequence
=
None
,
func
=
None
,
add
=
None
):
return
self
.
_bind
((
self
.
_w
,
'
tag'
,
'
bind'
,
tagOrId
),
return
self
.
_bind
((
self
.
_w
,
'bind'
,
tagOrId
),
sequence
,
func
,
add
)
sequence
,
func
,
add
)
def
canvasx
(
self
,
screenx
,
gridspacing
=
None
):
def
canvasx
(
self
,
screenx
,
gridspacing
=
None
):
return
self
.
tk
.
getdouble
(
self
.
tk
.
call
(
return
self
.
tk
.
getdouble
(
self
.
tk
.
call
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment