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)
| 2121 | geometry = wm_geometry |
| 2122 | |
| 2123 | def wm_grid(self, |
| 2124 | baseWidth=None, baseHeight=None, |
| 2125 | widthInc=None, heightInc=None): |
| 2126 | """Instruct the window manager that this widget shall only be |
| 2127 | resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and |
| 2128 | height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the |
| 2129 | number of grid units requested in Tk_GeometryRequest.""" |
| 2130 | return self._getints(self.tk.call( |
| 2131 | 'wm', 'grid', self._w, |
| 2132 | baseWidth, baseHeight, widthInc, heightInc)) |
| 2133 | |
| 2134 | grid = wm_grid |
| 2135 |