diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-24 20:49:10 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-24 20:49:10 (GMT) |
commit | 407c8acd900ad19cd428b021c00f1a97387ce6f4 (patch) | |
tree | 100cca8a1ec12401772bf085b1ead14fdfb36543 /Lib/tkinter/tix.py | |
parent | 712d593e494e2ccaeff08f3b137e7fd2a2a79645 (diff) | |
parent | 071dec2027a0ec5515af7e5c1317e78b0dfb347d (diff) | |
download | cpython-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/tkinter/tix.py')
-rw-r--r-- | Lib/tkinter/tix.py | 6 |
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) |