Skip to content

Commit b50fb49

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

construct_editor/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ 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.SetSize(int(width * 90 / 100), int(height * 90 / 100))
5960
self.SetIcon(icon.GetIcon())
6061
self.Center()
6162

0 commit comments

Comments
 (0)