summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/__init__.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-01-11 11:13:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-01-11 11:13:46 (GMT)
commit2f26c224d7cbdb14f79cfd6f8d4914f60bb37bc5 (patch)
tree313ccdb8833050934f13bed80ad02cdec978141a /Lib/tkinter/__init__.py
parent02d5db277743050488ad6298817b2956f22c63db (diff)
downloadcpython-2f26c224d7cbdb14f79cfd6f8d4914f60bb37bc5.zip
cpython-2f26c224d7cbdb14f79cfd6f8d4914f60bb37bc5.tar.gz
cpython-2f26c224d7cbdb14f79cfd6f8d4914f60bb37bc5.tar.bz2
tkinter.Text.debug() now always returns 0/1.
Fixed a regression inroduced in issue #6157.
Diffstat (limited to 'Lib/tkinter/__init__.py')
-rw-r--r--Lib/tkinter/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index 2fdabde..2f4cce9 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -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)."""