Skip to content

Commit b8966ba

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

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

construct_editor/main.py

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

5757
self.SetTitle("Construct Gallery")
58-
self.SetSize(1600, 1000)
58+
i_width, i_height = wx.GetDisplaySize()
59+
w_width = int(i_width * 90 / 100)
60+
w_height = int(i_height * 90 / 100)
61+
self.SetSize(w_width, w_height)
5962
self.SetIcon(icon.GetIcon())
6063
self.Center()
6164

0 commit comments

Comments
 (0)