[Python-checkins] r59654 - python/trunk/Lib/lib-tk/Tkinter.py

martin.v.loewis python-checkins at python.org
Tue Jan 1 22:08:18 CET 2008


Author: martin.v.loewis
Date: Tue Jan 1 22:08:18 2008
New Revision: 59654
Modified:
 python/trunk/Lib/lib-tk/Tkinter.py
Log:
Always convert Text.index result to string.
This improves compatibility with Tcl 8.5, which would
otherwise return textindex objects.
Modified: python/trunk/Lib/lib-tk/Tkinter.py
==============================================================================
--- python/trunk/Lib/lib-tk/Tkinter.py	(original)
+++ python/trunk/Lib/lib-tk/Tkinter.py	Tue Jan 1 22:08:18 2008
@@ -2981,7 +2981,7 @@
 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."""


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /