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)
| 2017 | """Provides functions for the communication with the window manager.""" |
| 2018 | |
| 2019 | def wm_aspect(self, |
| 2020 | minNumer=None, minDenom=None, |
| 2021 | maxNumer=None, maxDenom=None): |
| 2022 | """Instruct the window manager to set the aspect ratio (width/height) |
| 2023 | of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple |
| 2024 | of the actual values if no argument is given.""" |
| 2025 | return self._getints( |
| 2026 | self.tk.call('wm', 'aspect', self._w, |
| 2027 | minNumer, minDenom, |
| 2028 | maxNumer, maxDenom)) |
| 2029 | |
| 2030 | aspect = wm_aspect |
| 2031 |