summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-24 20:47:28 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-24 20:47:28 (GMT)
commit071dec2027a0ec5515af7e5c1317e78b0dfb347d (patch)
tree69b4bf9e5ce9bffd9b919a12737b408b4722350c /Lib
parent0211bb78fd6c59885c5bea0ddd3d073266b02be6 (diff)
downloadcpython-071dec2027a0ec5515af7e5c1317e78b0dfb347d.zip
cpython-071dec2027a0ec5515af7e5c1317e78b0dfb347d.tar.gz
cpython-071dec2027a0ec5515af7e5c1317e78b0dfb347d.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 7fb4bc5..2ed6a77 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)