summaryrefslogtreecommitdiff
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-24 23:47:28 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-24 23:47:28 +0300
commitccb8a426f0fb56af9584327d5c62e2cdf7fe6532 (patch)
treece50958a1fc8b1c5923673970e6a1deef29bb598 /Lib/tkinter
parent43d0c82a6fe12be46e26604f4df7f740a8e179fa (diff)
downloadcpython-ccb8a426f0fb56af9584327d5c62e2cdf7fe6532.tar.gz
Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin
a workaround to Tix library bug.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/tix.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py
index 7fb4bc5417..2ed6a77f6f 100644
--- a/Lib/tkinter/tix.py
+++ b/Lib/tkinter/tix.py
@@ -929,7 +929,11 @@ class HList(TixWidget, XView, YView):
return self.tk.call(self._w, 'header', 'cget', col, opt)
def header_exists(self, col):
- return self.tk.call(self._w, 'header', 'exists', col)
+ # A workaround to Tix library bug (issue #25464).
+ # The documented command is "exists", but only erroneous "exist" is
+ # accepted.
+ return self.tk.getboolean(self.tk.call(self._w, 'header', 'exist', col))
+ header_exist = header_exists
def header_delete(self, col):
self.tk.call(self._w, 'header', 'delete', col)