MCPcopy Index your code
hub / github.com/python/cpython / wm_grid

Method wm_grid

Lib/tkinter/__init__.py:2313–2322  ·  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

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

Callers

nothing calls this directly

Calls 2

_getintsMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected