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

Method wm_aspect

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

2118 """Provides functions for the communication with the window manager."""
2119
2120 def wm_aspect(self,
2121 minNumer=None, minDenom=None,
2122 maxNumer=None, maxDenom=None):
2123 """Instruct the window manager to set the aspect ratio (width/height)
2124 of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
2125 of the actual values if no argument is given."""
2126 return self._getints(
2127 self.tk.call('wm', 'aspect', self._w,
2128 minNumer, minDenom,
2129 maxNumer, maxDenom))
2130
2131 aspect = wm_aspect
2132

Callers

nothing calls this directly

Calls 2

_getintsMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected