astrodatagui: if screen size <= 1080p launch maximized
This commit is contained in:
@@ -17,6 +17,11 @@ class AstrodataGUI(QtWidgets.QMainWindow):
|
||||
absUiFilePath = os.path.join(classFileDir, "astrodatagui.ui")
|
||||
uic.loadUi(absUiFilePath, self)
|
||||
|
||||
app = QtWidgets.QApplication.instance()
|
||||
primScreenGeo = app.primaryScreen().availableGeometry()
|
||||
if(primScreenGeo.height() <= 1080 and primScreenGeo.width() <= 1920):
|
||||
self.showMaximized()
|
||||
|
||||
self.actionExit.triggered.connect(self.actionExitTriggered)
|
||||
|
||||
self.btAddNew.clicked.connect(self.addNewClicked)
|
||||
|
||||
Reference in New Issue
Block a user