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
3 unresolved threads
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -39,8 +39,9 @@ def fix_relative_paths() -> None:
def resize_windows(main_window: MainWindow):
"""
Resize the pre-defined windows in the program so that they fit well on all
screen resolutions. Any windows that are created when they are shown will
have their parents handle their resizing or do it themselves.
screen resolutions. Any windows that cannot be reached from the main
window, including those that are created when they are shown, will
have to handle it themselves.
"""
screen_size = QtWidgets.QApplication.primaryScreen().size().toTuple()
screen_width, screen_height = screen_size
Loading