Instruct the window manager that this widget shall only be resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the number of grid units requested in Tk_GeometryRequest.
(self,
baseWidth=None, baseHeight=None,
widthInc=None, heightInc=None)
| 2235 | geometry = wm_geometry |
| 2236 | |
| 2237 | def wm_grid(self, |
| 2238 | baseWidth=None, baseHeight=None, |
| 2239 | widthInc=None, heightInc=None): |
| 2240 | """Instruct the window manager that this widget shall only be |
| 2241 | resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and |
| 2242 | height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the |
| 2243 | number of grid units requested in Tk_GeometryRequest.""" |
| 2244 | return self._getints(self.tk.call( |
| 2245 | 'wm', 'grid', self._w, |
| 2246 | baseWidth, baseHeight, widthInc, heightInc)) |
| 2247 | |
| 2248 | grid = wm_grid |
| 2249 |