Add doc string to DE sizing method
parent
5a4c155798
commit
c54c9ae3d3
|
@ -273,7 +273,16 @@ class MainWindow(QtGui.QMainWindow):
|
||||||
def configure_to_desktop(
|
def configure_to_desktop(
|
||||||
self,
|
self,
|
||||||
size: Optional[tuple[int, int]] = None,
|
size: Optional[tuple[int, int]] = None,
|
||||||
|
|
||||||
) -> 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
|
# https://stackoverflow.com/a/18975846
|
||||||
if not size and not self._size:
|
if not size and not self._size:
|
||||||
app = QtGui.QApplication.instance()
|
app = QtGui.QApplication.instance()
|
||||||
|
|
Loading…
Reference in New Issue