summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/params.py11
-rw-r--r--lib/extensions/simulate.py4
2 files changed, 7 insertions, 8 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index 6d1464a3..9bde2a66 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -440,19 +440,16 @@ class SettingsFrame(wx.Frame):
display = wx.Display(current_screen)
screen_rect = display.GetClientArea()
- max_width = screen_rect.GetWidth() - params_rect.GetWidth()
- max_height = screen_rect.GetHeight()
+ width = screen_rect.GetWidth() - params_rect.GetWidth()
+ height = screen_rect.GetHeight()
try:
self.simulate_window = EmbroiderySimulator(None, -1, _("Preview"),
simulator_pos,
- size=(300, 300),
- x_position=simulator_pos.x,
+ size=(width, height),
stitch_plan=stitch_plan,
on_close=self.simulate_window_closed,
- target_duration=5,
- max_width=max_width,
- max_height=max_height)
+ target_duration=5)
except:
error = traceback.format_exc()
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)