Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string.

This commit is contained in:
Guilherme Polo 2009-03-07 01:19:12 +00:00
parent 943b24e7e4
commit 6d6c1fd04e
2 changed files with 3 additions and 1 deletions

View File

@ -3046,7 +3046,7 @@ class Text(Widget):
args.append(pattern)
args.append(index)
if stopindex: args.append(stopindex)
return self.tk.call(tuple(args))
return str(self.tk.call(tuple(args)))
def see(self, index):
"""Scroll such that the character at INDEX is visible."""
self.tk.call(self._w, 'see', index)

View File

@ -168,6 +168,8 @@ Core and Builtins
Library
-------
- Issue #5193: Guarantee that Tkinter.Text.search returns a string.
- Issue #5394: removed > 2.3 syntax from distutils.msvc9compiler.
Original patch by Akira Kitada.