diff options
author | karel <5636152+karel@users.noreply.github.com> | 2019-09-26 09:22:01 +0300 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-11-01 15:00:04 +0100 |
commit | 3411bf55fac0e17fa80d12a0fd2b288346b2724e (patch) | |
tree | 37c6ba09d39b8b94fcc36843004b4c65ab0fe17e /grc | |
parent | 611f571122e496790df7bd9989b72ad7e5e21ad8 (diff) |
Revert "Added switch button for bool types"
This reverts commit 007923c64d2505b37dffb8e11cb1e3ecf4e489eb.
Diffstat (limited to 'grc')
-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 |