diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-10-13 09:33:51 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-10-13 09:33:51 (GMT) |
commit | dc5790932335cebb5a9baa03b46e52e06d4bb24a (patch) | |
tree | e9e276f839fe2944cd1e1a52f64083d64c291c0d /Lib | |
parent | 6953233a35e9196e7ed40f73c2e174cb53ac78f5 (diff) | |
download | cpython-dc5790932335cebb5a9baa03b46e52e06d4bb24a.zip cpython-dc5790932335cebb5a9baa03b46e52e06d4bb24a.tar.gz cpython-dc5790932335cebb5a9baa03b46e52e06d4bb24a.tar.bz2 |
Move grid_location into Misc. Fixes bug #426892.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 2b04ee0..65d8187 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1191,6 +1191,13 @@ class Misc: and pad (how much space to let additionally).""" return self._grid_configure('columnconfigure', index, cnf, kw) columnconfigure = grid_columnconfigure + def grid_location(self, x, y): + """Return a tuple of column and row which identify the cell + at which the pixel at position X and Y inside the master + widget is located.""" + return self._getints( + self.tk.call( + 'grid', 'location', self._w, x, y)) or None def grid_propagate(self, flag=_noarg_): """Set or get the status for propagation of geometry information. @@ -1701,14 +1708,7 @@ class Grid: dict[key] = value return dict info = grid_info - def grid_location(self, x, y): - """Return a tuple of column and row which identify the cell - at which the pixel at position X and Y inside the master - widget is located.""" - return self._getints( - self.tk.call( - 'grid', 'location', self._w, x, y)) or None - location = grid_location + location = grid_location = Misc.grid_location propagate = grid_propagate = Misc.grid_propagate rowconfigure = grid_rowconfigure = Misc.grid_rowconfigure size = grid_size = Misc.grid_size |