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
6b7a7e9f
Commit
6b7a7e9f
authored
Sep 11, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes in index&icursor suggested by Nils Fischbeck.
parent
ee09fc1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Lib/lib-tk/Canvas.py
Lib/lib-tk/Canvas.py
+5
-5
Lib/tkinter/Canvas.py
Lib/tkinter/Canvas.py
+5
-5
No files found.
Lib/lib-tk/Canvas.py
View file @
6b7a7e9f
...
...
@@ -56,10 +56,10 @@ class CanvasItem:
self
.
canvas
.
focus
(
self
.
id
)
def
gettags
(
self
):
return
self
.
canvas
.
gettags
(
self
.
id
)
def
icursor
(
self
):
self
.
canvas
.
icursor
(
self
.
id
)
def
index
(
self
):
return
self
.
canvas
.
index
(
self
.
id
)
def
icursor
(
self
,
index
):
self
.
canvas
.
icursor
(
self
.
id
,
index
)
def
index
(
self
,
index
):
return
self
.
canvas
.
index
(
self
.
id
,
index
)
def
insert
(
self
,
beforethis
,
string
):
self
.
canvas
.
insert
(
self
.
id
,
beforethis
,
string
)
def
lower
(
self
,
belowthis
=
None
):
...
...
@@ -154,7 +154,7 @@ class Group:
def
gettags
(
self
):
return
self
.
canvas
.
tk
.
splitlist
(
self
.
_do
(
'gettags'
,
self
.
tag
))
def
icursor
(
self
,
index
):
return
self
.
_do
(
'icursor'
)
return
self
.
_do
(
'icursor'
,
index
)
def
index
(
self
,
index
):
return
self
.
canvas
.
tk
.
getint
(
self
.
_do
(
'index'
,
index
))
def
insert
(
self
,
beforeThis
,
string
):
...
...
Lib/tkinter/Canvas.py
View file @
6b7a7e9f
...
...
@@ -56,10 +56,10 @@ class CanvasItem:
self
.
canvas
.
focus
(
self
.
id
)
def
gettags
(
self
):
return
self
.
canvas
.
gettags
(
self
.
id
)
def
icursor
(
self
):
self
.
canvas
.
icursor
(
self
.
id
)
def
index
(
self
):
return
self
.
canvas
.
index
(
self
.
id
)
def
icursor
(
self
,
index
):
self
.
canvas
.
icursor
(
self
.
id
,
index
)
def
index
(
self
,
index
):
return
self
.
canvas
.
index
(
self
.
id
,
index
)
def
insert
(
self
,
beforethis
,
string
):
self
.
canvas
.
insert
(
self
.
id
,
beforethis
,
string
)
def
lower
(
self
,
belowthis
=
None
):
...
...
@@ -154,7 +154,7 @@ class Group:
def
gettags
(
self
):
return
self
.
canvas
.
tk
.
splitlist
(
self
.
_do
(
'gettags'
,
self
.
tag
))
def
icursor
(
self
,
index
):
return
self
.
_do
(
'icursor'
)
return
self
.
_do
(
'icursor'
,
index
)
def
index
(
self
,
index
):
return
self
.
canvas
.
tk
.
getint
(
self
.
_do
(
'index'
,
index
))
def
insert
(
self
,
beforeThis
,
string
):
...
...
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