Add doc string to DE sizing method

windows_fixes_yo
Tyler Goodlet 2022-02-10 14:20:15 -05:00
parent 5a4c155798
commit c54c9ae3d3
1 changed files with 10 additions and 1 deletions

View File

@ -273,7 +273,16 @@ class MainWindow(QtGui.QMainWindow):
def configure_to_desktop(
self,
size: Optional[tuple[int, int]] = None,
) -> None:
'''
Explicitly size the window dimensions (for stacked window
managers).
For tina systems (like windoze) try to do a sane window size on
startup.
'''
# https://stackoverflow.com/a/18975846
if not size and not self._size:
app = QtGui.QApplication.instance()