Try to find a reasonable size when starting application.
This commit is contained in:
parent
f3e1573677
commit
2196c13b14
3
main.py
3
main.py
@ -33,6 +33,9 @@ class Dialog(QDialog):
|
|||||||
super(Dialog, self).__init__()
|
super(Dialog, self).__init__()
|
||||||
|
|
||||||
self.setWindowTitle("OrgEditor")
|
self.setWindowTitle("OrgEditor")
|
||||||
|
scrSize = self.screen().size()
|
||||||
|
self.resize(scrSize.width() / 1.5,
|
||||||
|
scrSize.height() / 1.5)
|
||||||
self.loader = None
|
self.loader = None
|
||||||
self.manager = doc_manager.DocumentManager(DOCS_PATH)
|
self.manager = doc_manager.DocumentManager(DOCS_PATH)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user