summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-02-27 16:01:37 +0100
committerGitHub <noreply@github.com>2023-02-27 16:01:37 +0100
commited4aa55a733986436853e2ee7ad22f757b09fcb1 (patch)
tree5a2fcb1159c855d412bd540763f3a627ee0f1266 /lib/extensions/params.py
parent1885deff350fc29e80afa292c899a824c90d0c23 (diff)
Circular fill (#2053)
Diffstat (limited to 'lib/extensions/params.py')
-rw-r--r--lib/extensions/params.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index e342c592..4b6780ee 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -24,8 +24,9 @@ from ..gui import PresetsPanel, SimulatorPreview, WarningPanel
from ..i18n import _
from ..svg.tags import SVG_POLYLINE_TAG
from ..utils import get_resource_dir
-from .base import InkstitchExtension
+from ..utils.param import ParamOption
from ..utils.threading import ExitThread, check_stop_flag
+from .base import InkstitchExtension
def grouper(iterable_obj, count, fillvalue=None):
@@ -404,6 +405,8 @@ class ParamsTab(ScrolledPanel):
input = wx.ComboBox(self, wx.ID_ANY, choices=[], style=wx.CB_READONLY)
for option in param.options:
input.Append(option.name, option)
+ if not param.options:
+ input.Append(_('No options available'), ParamOption('not_available'))
value = self.get_combo_value_index(param.values[0], param.options)
input.SetSelection(value)
input.Bind(wx.EVT_COMBOBOX, self.changed)