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)
| 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 |