]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixes for Tix.Grid from issue #1522587.
authorGuilherme Polo <ggpolo@gmail.com>
Tue, 18 Aug 2009 14:34:44 +0000 (14:34 +0000)
committerGuilherme Polo <ggpolo@gmail.com>
Tue, 18 Aug 2009 14:34:44 +0000 (14:34 +0000)
Lib/lib-tk/Tix.py

index 197c0d2611140014e860f34e6ef8a0940ee8c9cd..ce5a379d628431d4c81d34cdd8262ff70fe086e6 100755 (executable)
@@ -1844,16 +1844,19 @@ class Grid(TixWidget, XView, YView):
 
     def entrycget(self, x, y, option):
         "Get the option value for cell at (x,y)"
+        if option and option[0] != '-':
+            option = '-' + option
         return self.tk.call(self, 'entrycget', x, y, option)
 
-    def entryconfigure(self, x, y, **kw):
-        return self.tk.call(self, 'entryconfigure', x, y, *self._options(None, kw))
+    def entryconfigure(self, x, y, cnf=None, **kw):
+        return self._configure(('entryconfigure', x, y), cnf, kw)
+
     # def format
     # def index
 
     def info_exists(self, x, y):
         "Return True if display item exists at (x,y)"
-        return bool(int(self.tk.call(self, 'info', 'exists', x, y)))
+        return self._getboolean(self.tk.call(self, 'info', 'exists', x, y))
 
     def info_bbox(self, x, y):
         # This seems to always return '', at least for 'text' displayitems