From 2196c13b147536ea546fb10c92f0dc63fae320e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sat, 3 Apr 2021 01:47:58 +0200 Subject: [PATCH] Try to find a reasonable size when starting application. --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 418546c..7128930 100755 --- a/main.py +++ b/main.py @@ -33,6 +33,9 @@ class Dialog(QDialog): super(Dialog, self).__init__() self.setWindowTitle("OrgEditor") + scrSize = self.screen().size() + self.resize(scrSize.width() / 1.5, + scrSize.height() / 1.5) self.loader = None self.manager = doc_manager.DocumentManager(DOCS_PATH)