changeset: 104682:5b33829badcc parent: 104678:aeeeb2b4f4eb parent: 104681:523aecdb8d5f user: Serhiy Storchaka date: Mon Oct 24 23:49:51 2016 +0300 files: Misc/NEWS description: Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin a workaround to Tix library bug. diff -r aeeeb2b4f4eb -r 5b33829badcc Lib/tkinter/tix.py --- a/Lib/tkinter/tix.py Mon Oct 24 07:32:23 2016 -0700 +++ b/Lib/tkinter/tix.py Mon Oct 24 23:49:51 2016 +0300 @@ -926,7 +926,11 @@ 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 -r aeeeb2b4f4eb -r 5b33829badcc Misc/NEWS --- a/Misc/NEWS Mon Oct 24 07:32:23 2016 -0700 +++ b/Misc/NEWS Mon Oct 24 23:49:51 2016 +0300 @@ -16,6 +16,9 @@ - Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exception loss in PyTraceBack_Here(). +- 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 adds entry "./" to ZIP archive. - Issue #25953: re.sub() now raises an error for invalid numerical group