MCPcopy Index your code
hub / github.com/RustPython/RustPython / wm_grid

Method wm_grid

Lib/tkinter/__init__.py:2237–2246  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_getintsMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected