def _restoreWindowState(self): if Preferences.hasWindowGeometry(): self.restoreGeometry(Preferences.getWindowGeometry())
def _restoreWindowState(self): if Preferences.hasWindowGeometry(): self.restoreGeometry(Preferences.getWindowGeometry()) else: self.setWindowState(Qt.WindowMaximized)