summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-26 15:02:51 -0400
committerLex Neva <github.com@lexneva.name>2018-08-26 15:02:51 -0400
commita355af287484a62a021808b4ced20c4b85877759 (patch)
tree39e6303a32615c372c99c87ccf5bfb670d3adecf /lib/extensions/params.py
parent79e8ad5b31f18a622b8ce8ed9ee9563cca579a38 (diff)
handle window size and target duration
Diffstat (limited to 'lib/extensions/params.py')
-rw-r--r--lib/extensions/params.py11
1 files changed, 4 insertions, 7 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()