diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-24 20:49:51 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-24 20:49:51 (GMT) |
commit | 19aef9c24e7903899f91bb62857f0f65617bd9fa (patch) | |
tree | 6ca22052e47a4b99d88f4eacedfdf16bdba72b32 /Lib | |
parent | c2deb995f462de02be9ce83b04a262011162f03c (diff) | |
parent | 407c8acd900ad19cd428b021c00f1a97387ce6f4 (diff) | |
download | cpython-19aef9c24e7903899f91bb62857f0f65617bd9fa.zip cpython-19aef9c24e7903899f91bb62857f0f65617bd9fa.tar.gz cpython-19aef9c24e7903899f91bb62857f0f65617bd9fa.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.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) |