diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-01-29 20:09:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-29 20:09:34 -0500 |
| commit | 1dd76646cc5379e686a1c8785a4dc38b6e24c931 (patch) | |
| tree | 9d4dc74b4d72234c83f8941f05585c592fe5f8fa /embroider_params.py | |
| parent | 99c6b5f0723fc01acabee1d5acb12553e85ce6d0 (diff) | |
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.
Diffstat (limited to 'embroider_params.py')
| -rw-r--r-- | embroider_params.py | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
