summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-24 20:49:10 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-24 20:49:10 (GMT)
commit407c8acd900ad19cd428b021c00f1a97387ce6f4 (patch)
tree100cca8a1ec12401772bf085b1ead14fdfb36543 /Lib
parent712d593e494e2ccaeff08f3b137e7fd2a2a79645 (diff)
parent071dec2027a0ec5515af7e5c1317e78b0dfb347d (diff)
downloadcpython-407c8acd900ad19cd428b021c00f1a97387ce6f4.zip
cpython-407c8acd900ad19cd428b021c00f1a97387ce6f4.tar.gz
cpython-407c8acd900ad19cd428b021c00f1a97387ce6f4.tar.bz2
Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin
a workaround to Tix library bug.
Diffstat (limited to 'Lib')
-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 f3eb92e..e7cb10a 100644
--- a/Lib/tkinter/tix.py
+++ b/Lib/tkinter/tix.py
@@ -926,7 +926,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)