From b50fb49d70e2518fa7bde577f6c725f17bd682e9 Mon Sep 17 00:00:00 2001 From: Ircama Date: Thu, 14 Dec 2023 20:25:21 +0100 Subject: [PATCH] Autosize the app to 90% of the screen resolution geometry --- construct_editor/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/construct_editor/main.py b/construct_editor/main.py index 1184d75..109feae 100644 --- a/construct_editor/main.py +++ b/construct_editor/main.py @@ -55,7 +55,8 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.SetTitle("Construct Gallery") - self.SetSize(1600, 1000) + width, height = wx.GetDisplaySize() + self.SetSize(int(width * 90 / 100), int(height * 90 / 100)) self.SetIcon(icon.GetIcon()) self.Center()