Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string.
This commit is contained in:
parent
943b24e7e4
commit
6d6c1fd04e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue