Skip to content
Snippets Groups Projects

Fix program not fitting on low resolution screens

Merged Kien Le requested to merge bug-#180-program_does_not_fit_low_resolution_screens into master
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -6,6 +6,7 @@ import traceback
from pathlib import Path
from PySide2 import QtWidgets
from PySide2.QtGui import QGuiApplication
from PySide2.QtWidgets import QMessageBox
from sohstationviewer.view.main_window import MainWindow
@@ -67,6 +68,10 @@ def main():
QMessageBox.Close)
sys.exit(1)
config.apply_config(wnd)
screen_width, screen_height = app.primaryScreen().size().toTuple()
wnd.resize(screen_width, screen_height)
wnd.show()
sys.exit(app.exec_())
Loading