]> granicus.if.org Git - python/commitdiff
Issue #25464: Fixed HList.header_exists() in Tix module by adding
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 24 Oct 2016 20:47:08 +0000 (23:47 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 24 Oct 2016 20:47:08 +0000 (23:47 +0300)
a workaround to Tix library bug.

Lib/lib-tk/Tix.py
Misc/NEWS

index a7b785e49a16b76bebe4fd6ca5c5fb34a9183092..45e8a90374b5c7497c760c539c17d84fc8238250 100644 (file)
@@ -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)
index dfe93e3c601a34e61e3b7bb7a2096a46c3a41038..12c3da2b7cfbd6cba2cfae50187366e01e5dc303 100644 (file)
--- 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