mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
tkinter.Text.debug() now always returns 0/1.
Fixed a regression inroduced in issue #6157.
This commit is contained in:
parent
02d5db2777
commit
2f26c224d7
2 changed files with 3 additions and 4 deletions
|
@ -3002,7 +3002,7 @@ class Text(Widget, XView, YView):
|
|||
"""Turn on the internal consistency checks of the B-Tree inside the text
|
||||
widget according to BOOLEAN."""
|
||||
if boolean is None:
|
||||
return self.tk.call(self._w, 'debug')
|
||||
return self.tk.getboolean(self.tk.call(self._w, 'debug'))
|
||||
self.tk.call(self._w, 'debug', boolean)
|
||||
def delete(self, index1, index2=None):
|
||||
"""Delete the characters between INDEX1 and INDEX2 (not included)."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue