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

Method wm_aspect

Lib/tkinter/__init__.py:2196–2205  ·  view source on GitHub ↗

Instruct the window manager to set the aspect ratio (width/height) of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple of the actual values if no argument is given.

(self,
              minNumer=None, minDenom=None,
              maxNumer=None, maxDenom=None)

Source from the content-addressed store, hash-verified

2194 """Provides functions for the communication with the window manager."""
2195
2196 def wm_aspect(self,
2197 minNumer=None, minDenom=None,
2198 maxNumer=None, maxDenom=None):
2199 """Instruct the window manager to set the aspect ratio (width/height)
2200 of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
2201 of the actual values if no argument is given."""
2202 return self._getints(
2203 self.tk.call('wm', 'aspect', self._w,
2204 minNumer, minDenom,
2205 maxNumer, maxDenom))
2206
2207 aspect = wm_aspect
2208

Callers

nothing calls this directly

Calls 2

_getintsMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected