diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-12-13 15:04:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-12-13 15:04:58 (GMT) |
commit | afb0dabaca0fe30a33054e6ecf242c9235aad2f0 (patch) | |
tree | ee6f3cc8e93132f78d3468e9be621abfb3c34ee8 | |
parent | 8a64048a22b42426cc45dfb2d713e295e97c768c (diff) | |
download | cpython-afb0dabaca0fe30a33054e6ecf242c9235aad2f0.zip cpython-afb0dabaca0fe30a33054e6ecf242c9235aad2f0.tar.gz cpython-afb0dabaca0fe30a33054e6ecf242c9235aad2f0.tar.bz2 |
Backport of r59654.
Issue #4342: Always convert Text.index result to string.
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index de2873f..31a2fc3 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -3005,7 +3005,7 @@ class Text(Widget): return self.tk.call(self._w, "image", "names") def index(self, index): """Return the index in the form line.char for INDEX.""" - return self.tk.call(self._w, 'index', index) + return str(self.tk.call(self._w, 'index', index)) def insert(self, index, chars, *args): """Insert CHARS before the characters at INDEX. An additional tag can be given in ARGS. Additional CHARS and tags can follow in ARGS.""" @@ -109,6 +109,8 @@ Core and builtins Library ------- +- Issue #4342: Always convert Text.index result to string. + - Issue 3248: Allow placing ScrolledText in a PanedWindow. - Issue #4084: Fix max, min, max_mag and min_mag Decimal methods to |