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
afb0daba
Commit
afb0daba
authored
Dec 13, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of r59654.
Issue #4342: Always convert Text.index result to string.
parent
8a64048a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/lib-tk/Tkinter.py
View file @
afb0daba
...
@@ -3005,7 +3005,7 @@ class Text(Widget):
...
@@ -3005,7 +3005,7 @@ class Text(Widget):
return
self
.
tk
.
call
(
self
.
_w
,
"image"
,
"names"
)
return
self
.
tk
.
call
(
self
.
_w
,
"image"
,
"names"
)
def
index
(
self
,
index
):
def
index
(
self
,
index
):
"""Return the index in the form line.char for INDEX."""
"""Return the index in the form line.char for INDEX."""
return
s
elf
.
tk
.
call
(
self
.
_w
,
'index'
,
index
)
return
s
tr
(
self
.
tk
.
call
(
self
.
_w
,
'index'
,
index
)
)
def
insert
(
self
,
index
,
chars
,
*
args
):
def
insert
(
self
,
index
,
chars
,
*
args
):
"""Insert CHARS before the characters at INDEX. An additional
"""Insert CHARS before the characters at INDEX. An additional
tag can be given in ARGS. Additional CHARS and tags can follow in ARGS."""
tag can be given in ARGS. Additional CHARS and tags can follow in ARGS."""
...
...
Misc/NEWS
View file @
afb0daba
...
@@ -109,6 +109,8 @@ Core and builtins
...
@@ -109,6 +109,8 @@ Core and builtins
Library
Library
-------
-------
-
Issue
#
4342
:
Always
convert
Text
.
index
result
to
string
.
-
Issue
3248
:
Allow
placing
ScrolledText
in
a
PanedWindow
.
-
Issue
3248
:
Allow
placing
ScrolledText
in
a
PanedWindow
.
-
Issue
#
4084
:
Fix
max
,
min
,
max_mag
and
min_mag
Decimal
methods
to
-
Issue
#
4084
:
Fix
max
,
min
,
max_mag
and
min_mag
Decimal
methods
to
...
...
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