From 1dd76646cc5379e686a1c8785a4dc38b6e24c931 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Mon, 29 Jan 2018 20:09:34 -0500 Subject: add margin around simulator (#46) This adds a 10px margin around the design in the simulator view (both the Simulate plugin and the Params preview window). This is useful because otherwise stitches at the edges weren't very visible. Also, because we're using anti-aliased lines, parts of the drawing did actually extend beyond the canvas previously. All in all, with the margin it just feels more comfortable. --- embroider_params.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'embroider_params.py') diff --git a/embroider_params.py b/embroider_params.py index 33ec4f18..3725a39d 100644 --- a/embroider_params.py +++ b/embroider_params.py @@ -335,8 +335,7 @@ class SettingsFrame(wx.Frame): self.tabs_factory = kwargs.pop('tabs_factory', []) self.cancel_hook = kwargs.pop('on_cancel', None) wx.Frame.__init__(self, None, wx.ID_ANY, - "Embroidery Params", - pos=wx.Point(0,0) + "Embroidery Params" ) self.notebook = wx.Notebook(self, wx.ID_ANY) self.tabs = self.tabs_factory(self.notebook) @@ -598,7 +597,7 @@ class SettingsFrame(wx.Frame): def __set_properties(self): # begin wxGlade: MyFrame.__set_properties self.SetTitle("Embroidery Parameters") - self.notebook.SetMinSize((800, 400)) + self.notebook.SetMinSize((800, 600)) self.preset_chooser.SetSelection(-1) # end wxGlade @@ -668,7 +667,7 @@ class EmbroiderParams(inkex.Effect): getter = 'get_param' values = filter(lambda item: item is not None, - (getattr(node, getter)(param.name, param.default) for node in nodes)) + (getattr(node, getter)(param.name, str(param.default)) for node in nodes)) return values -- cgit v1.2.3