summaryrefslogtreecommitdiff
path: root/lib/gui
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-05-21 20:26:22 +0200
committerGitHub <noreply@github.com>2024-05-21 20:26:22 +0200
commitbd53e413c72a00d9e8999df2b057929855a6151f (patch)
treeb0586e4dbe321ec10644282d5f23d94bfafc4526 /lib/gui
parent92f5c4a956346ff72aba504e9f47eb0ccc9e6dbd (diff)
Tartan stroke distance (#2931)
Diffstat (limited to 'lib/gui')
-rw-r--r--lib/gui/tartan/customize_panel.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gui/tartan/customize_panel.py b/lib/gui/tartan/customize_panel.py
index 16d73416..a966bad1 100644
--- a/lib/gui/tartan/customize_panel.py
+++ b/lib/gui/tartan/customize_panel.py
@@ -121,9 +121,9 @@ class CustomizePanel(ScrolledPanel):
position.Bind(wx.EVT_LEFT_DOWN, self._move_stripe_start)
position.Bind(wx.EVT_LEFT_UP, self._move_stripe_end)
- visibility = wx.CheckBox(self)
- visibility.SetToolTip(_("Stitch this stripe"))
- visibility.SetValue(True)
+ visibility = wx.CheckBox(self, style=wx.CHK_3STATE | wx.CHK_ALLOW_3RD_STATE_FOR_USER)
+ visibility.SetToolTip(_("Checked: stitch this stripe | Minus: spacer for strokes only | Disabled: spacer for fill and stroke"))
+ visibility.Set3StateValue(1)
visibility.Bind(wx.EVT_CHECKBOX, self._update_stripes_event)
# hidden label used for linked colors
@@ -135,7 +135,7 @@ class CustomizePanel(ScrolledPanel):
colorpicker.SetToolTip(_("Select stripe color"))
colorpicker.Bind(wx.EVT_COLOURPICKER_CHANGED, self._update_color)
- stripe_width = wx.SpinCtrlDouble(self, min=0.01, max=500, initial=5, style=wx.SP_WRAP)
+ stripe_width = wx.SpinCtrlDouble(self, min=0.0, max=500, initial=5, style=wx.SP_WRAP)
stripe_width.SetDigits(2)
stripe_width.SetToolTip(_("Set stripe width (mm)"))
stripe_width.Bind(wx.EVT_SPINCTRLDOUBLE, self._update_stripes_event)
@@ -152,7 +152,7 @@ class CustomizePanel(ScrolledPanel):
stripesizer.Add(remove_button, 0, wx.CENTER | wx.TOP, 5)
if stripe is not None:
- visibility.SetValue(stripe['render'])
+ visibility.Set3StateValue(stripe['render'])
colorinfo.SetLabel(wx.Colour(stripe['color']).GetAsString(wx.C2S_HTML_SYNTAX))
colorpicker.SetColour(wx.Colour(stripe['color']))
stripe_width.SetValue(stripe['width'])