Skip to content

Commit 407c8ac

Browse files
Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin
a workaround to Tix library bug.
2 parents 712d593 + 071dec2 commit 407c8ac

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lib/tkinter/tix.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,11 @@ def header_cget(self, col, opt):
926926
return self.tk.call(self._w, 'header', 'cget', col, opt)
927927

928928
def header_exists(self, col):
929-
return self.tk.call(self._w, 'header', 'exists', col)
929+
# A workaround to Tix library bug (issue #25464).
930+
# The documented command is "exists", but only erroneous "exist" is
931+
# accepted.
932+
return self.tk.getboolean(self.tk.call(self._w, 'header', 'exist', col))
933+
header_exist = header_exists
930934

931935
def header_delete(self, col):
932936
self.tk.call(self._w, 'header', 'delete', col)

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Core and Builtins
2323
Library
2424
-------
2525

26+
- Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin
27+
a workaround to Tix library bug.
28+
2629
- Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.
2730

2831
- Issue #25953: re.sub() now raises an error for invalid numerical group

0 commit comments

Comments
 (0)