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)
| 2311 | geometry = wm_geometry |
| 2312 | |
| 2313 | def wm_grid(self, |
| 2314 | baseWidth=None, baseHeight=None, |
| 2315 | widthInc=None, heightInc=None): |
| 2316 | """Instruct the window manager that this widget shall only be |
| 2317 | resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and |
| 2318 | height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the |
| 2319 | number of grid units requested in Tk_GeometryRequest.""" |
| 2320 | return self._getints(self.tk.call( |
| 2321 | 'wm', 'grid', self._w, |
| 2322 | baseWidth, baseHeight, widthInc, heightInc)) |
| 2323 | |
| 2324 | grid = wm_grid |
| 2325 |