summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-24 20:47:08 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-24 20:47:08 (GMT)
commitf10006cdb82a27802ec7c9340e59030712d36f29 (patch)
tree63184c86b1f29461f931f7df5049c7c1a22458e4
parent59addd608ce1f7f85cab045a7dbd389c1dd1746d (diff)
downloadcpython-f10006cdb82a27802ec7c9340e59030712d36f29.zip
cpython-f10006cdb82a27802ec7c9340e59030712d36f29.tar.gz
cpython-f10006cdb82a27802ec7c9340e59030712d36f29.tar.bz2
Issue #25464: Fixed HList.header_exists() in Tix module by adding
a workaround to Tix library bug.
-rw-r--r--Lib/lib-tk/Tix.py6
-rw-r--r--Misc/NEWS3
2 files changed, 8 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py
index a7b785e..45e8a90 100644
--- a/Lib/lib-tk/Tix.py
+++ b/Lib/lib-tk/Tix.py
@@ -928,7 +928,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 dfe93e3..12c3da2 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -60,6 +60,9 @@ Core and Builtins
Library
-------
+- Issue #25464: Fixed HList.header_exists() in Tix module by adding
+ a workaround to Tix library bug.
+
- Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.
- Issue #28480: Fix error building _sqlite3 module when multithreading is