diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-08-26 15:02:51 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-08-26 15:02:51 -0400 |
| commit | a355af287484a62a021808b4ced20c4b85877759 (patch) | |
| tree | 39e6303a32615c372c99c87ccf5bfb670d3adecf /lib/extensions/simulate.py | |
| parent | 79e8ad5b31f18a622b8ce8ed9ee9563cca579a38 (diff) | |
handle window size and target duration
Diffstat (limited to 'lib/extensions/simulate.py')
| -rw-r--r-- | lib/extensions/simulate.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/extensions/simulate.py b/lib/extensions/simulate.py index 38f86156..2e414ac6 100644 --- a/lib/extensions/simulate.py +++ b/lib/extensions/simulate.py @@ -25,8 +25,10 @@ class Simulate(InkstitchExtension): screen_rect = display.GetClientArea() simulator_pos = (screen_rect[0], screen_rect[1]) + width = screen_rect[2] + height = screen_rect[3] - frame = EmbroiderySimulator(None, -1, _("Embroidery Simulation"), pos=simulator_pos, size=(1000, 1000), stitch_plan=stitch_plan) + frame = EmbroiderySimulator(None, -1, _("Embroidery Simulation"), pos=simulator_pos, size=(width, height), stitch_plan=stitch_plan) app.SetTopWindow(frame) frame.Show() wx.CallAfter(frame.go) |
