Skip to content

Commit aefdbd7

Browse files
committed
Autosize the app to 90% of the screen resolution geometry
1 parent b4c63dc commit aefdbd7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

construct_editor/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def __init__(self, *args, **kwargs):
5555
super().__init__(*args, **kwargs)
5656

5757
self.SetTitle("Construct Gallery")
58-
self.SetSize(1600, 1000)
58+
width, height = wx.GetDisplaySize()
59+
self.SetPosition((int(width * 5 / 100), int(height * 5 / 100)))
60+
self.SetSize(int(width * 90 / 100), int(height * 90 / 100))
5961
self.SetIcon(icon.GetIcon())
6062
self.Center()
6163

0 commit comments

Comments
 (0)