diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-06-14 09:49:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-14 09:49:57 +0200 |
| commit | dbdba2cda3a66fc42b5bad05e88d33b845a85e2f (patch) | |
| tree | 6d50270e5d687a939ec75c661b1603bc43db1f4e /lib/extensions | |
| parent | 39d9defef4a6c813e40df9a8de254af422af6ccd (diff) | |
Add preferences button to simulator (#2992)
* split simulator panel files
* add view panel to position view options at the side
* fix single simulator start size (macOS)
Diffstat (limited to 'lib/extensions')
| -rw-r--r-- | lib/extensions/simulator.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/extensions/simulator.py b/lib/extensions/simulator.py index 57978b73..69f74b02 100644 --- a/lib/extensions/simulator.py +++ b/lib/extensions/simulator.py @@ -30,8 +30,9 @@ class Simulator(InkstitchExtension): current_screen = wx.Display.GetFromPoint(wx.GetMousePosition()) display = wx.Display(current_screen) screen_rect = display.GetClientArea() - height = int(screen_rect[3] * 0.8) - simulator = SimulatorWindow(size=(0, height), background_color=background_color) + width = int(screen_rect.width * 0.8) + height = int(screen_rect.height * 0.8) + simulator = SimulatorWindow(size=(width, height), background_color=background_color) wx.CallLater(100, simulator.Centre) app.SetTopWindow(simulator) simulator.Show() |
