mirror of https://github.com/python/cpython
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(pattern)
|
||||||
args.append(index)
|
args.append(index)
|
||||||
if stopindex: args.append(stopindex)
|
if stopindex: args.append(stopindex)
|
||||||
return self.tk.call(tuple(args))
|
return str(self.tk.call(tuple(args)))
|
||||||
def see(self, index):
|
def see(self, index):
|
||||||
"""Scroll such that the character at INDEX is visible."""
|
"""Scroll such that the character at INDEX is visible."""
|
||||||
self.tk.call(self._w, 'see', index)
|
self.tk.call(self._w, 'see', index)
|
||||||
|
|
|
@ -168,6 +168,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #5193: Guarantee that Tkinter.Text.search returns a string.
|
||||||
|
|
||||||
- Issue #5394: removed > 2.3 syntax from distutils.msvc9compiler.
|
- Issue #5394: removed > 2.3 syntax from distutils.msvc9compiler.
|
||||||
Original patch by Akira Kitada.
|
Original patch by Akira Kitada.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue