Kaydet (Commit) 397bd1e7 authored tarafından Guilherme Polo's avatar Guilherme Polo

Fixes for Tix.Grid from issue #1522587.

üst 6b3c7098
...@@ -1844,16 +1844,19 @@ class Grid(TixWidget, XView, YView): ...@@ -1844,16 +1844,19 @@ class Grid(TixWidget, XView, YView):
def entrycget(self, x, y, option): def entrycget(self, x, y, option):
"Get the option value for cell at (x,y)" "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) return self.tk.call(self, 'entrycget', x, y, option)
def entryconfigure(self, x, y, **kw): def entryconfigure(self, x, y, cnf=None, **kw):
return self.tk.call(self, 'entryconfigure', x, y, *self._options(None, kw)) return self._configure(('entryconfigure', x, y), cnf, kw)
# def format # def format
# def index # def index
def info_exists(self, x, y): def info_exists(self, x, y):
"Return True if display item exists at (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): def info_bbox(self, x, y):
# This seems to always return '', at least for 'text' displayitems # This seems to always return '', at least for 'text' displayitems
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment