MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / wm_grid

Method wm_grid

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:2123–2132  ·  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

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

Callers

nothing calls this directly

Calls 2

_getintsMethod · 0.80
callMethod · 0.80

Tested by

no test coverage detected