From 071dec2027a0ec5515af7e5c1317e78b0dfb347d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 24 Oct 2016 23:47:28 +0300 Subject: Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin a workaround to Tix library bug. --- Lib/tkinter/tix.py | 6 +++++- Misc/NEWS | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) 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) diff --git a/Misc/NEWS b/Misc/NEWS index 33dcb76..8b99882 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -110,6 +110,9 @@ Core and Builtins Library ------- +- Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin + a workaround to Tix library bug. + - Issue #28488: shutil.make_archive() no longer add entry "./" to ZIP archive. - Issue #24452: Make webbrowser support Chrome on Mac OS X. -- cgit v0.12