diff options
author | Guilherme Polo <ggpolo@gmail.com> | 2009-08-18 14:34:44 (GMT) |
---|---|---|
committer | Guilherme Polo <ggpolo@gmail.com> | 2009-08-18 14:34:44 (GMT) |
commit | 397bd1e740c0cb08bf2c290975bc250bb4aa0f2e (patch) | |
tree | 47099948fde4abf4d5106a2fda1a9590af4b6405 | |
parent | 6b3c7098f35f3335684259948944b865209e0f3b (diff) | |
download | cpython-397bd1e740c0cb08bf2c290975bc250bb4aa0f2e.zip cpython-397bd1e740c0cb08bf2c290975bc250bb4aa0f2e.tar.gz cpython-397bd1e740c0cb08bf2c290975bc250bb4aa0f2e.tar.bz2 |
Fixes for Tix.Grid from issue #1522587.
-rwxr-xr-x | Lib/lib-tk/Tix.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py index 197c0d2..ce5a379 100755 --- a/Lib/lib-tk/Tix.py +++ b/Lib/lib-tk/Tix.py @@ -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 |