diff options
-rw-r--r-- | grc/gui/ParamWidgets.py | 17 | ||||
-rw-r--r-- | grc/gui/canvas/param.py | 3 |
2 files changed, 0 insertions, 20 deletions
diff --git a/grc/gui/ParamWidgets.py b/grc/gui/ParamWidgets.py index 3701a7181c..d168b62d74 100644 --- a/grc/gui/ParamWidgets.py +++ b/grc/gui/ParamWidgets.py @@ -230,23 +230,6 @@ class EnumParam(InputParam): def set_tooltip_text(self, text): self._input.set_tooltip_text(text) -class BoolParam(InputParam): - """Provide a switch button for Bool types.""" - - def __init__(self, *args, **kwargs): - InputParam.__init__(self, *args, **kwargs) - self._input = Gtk.Switch() - self._input.connect('state-set', self._apply_change) - self._input.connect('state-set', self._editing_callback) - self.pack_start(self._input, False, False, 0) - value = self.param.get_value() - self._input.set_active(eval(value)) - - def get_text(self): - return self._input.get_active() - - def set_tooltip_text(self, text): - self._input.set_tooltip_text(text) class EnumEntryParam(InputParam): """Provide an entry box and drop down menu for Raw Enum types.""" diff --git a/grc/gui/canvas/param.py b/grc/gui/canvas/param.py index 2ff714c603..5777423c68 100644 --- a/grc/gui/canvas/param.py +++ b/grc/gui/canvas/param.py @@ -46,9 +46,6 @@ class Param(CoreParam): elif dtype == 'enum': input_widget_cls = ParamWidgets.EnumParam - elif dtype == 'bool': - input_widget_cls = ParamWidgets.BoolParam - elif self.options: input_widget_cls = ParamWidgets.EnumEntryParam |