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