[Python-checkins] r74511 - python/trunk/Lib/lib-tk/Tix.py
guilherme.polo
python-checkins at python.org
Tue Aug 18 16:34:44 CEST 2009
Author: guilherme.polo
Date: Tue Aug 18 16:34:44 2009
New Revision: 74511
Log:
Fixes for Tix.Grid from issue #1522587.
Modified:
python/trunk/Lib/lib-tk/Tix.py
Modified: python/trunk/Lib/lib-tk/Tix.py
==============================================================================
--- python/trunk/Lib/lib-tk/Tix.py (original)
+++ python/trunk/Lib/lib-tk/Tix.py Tue Aug 18 16:34:44 2009
@@ -1844,16 +1844,19 @@
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
More information about the Python-checkins
mailing list