diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2018-09-21 22:44:34 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-09-22 20:26:47 +0200 |
commit | 007923c64d2505b37dffb8e11cb1e3ecf4e489eb (patch) | |
tree | efe642a74bcb90fdee6ea6d65050dc28baf9bccf /grc/gui/canvas/param.py | |
parent | 78ba4b8794339f8efabf85123a2f249cdb787bfa (diff) |
Added switch button for bool types
Diffstat (limited to 'grc/gui/canvas/param.py')
-rw-r--r-- | grc/gui/canvas/param.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/grc/gui/canvas/param.py b/grc/gui/canvas/param.py index 5777423c68..2ff714c603 100644 --- a/grc/gui/canvas/param.py +++ b/grc/gui/canvas/param.py @@ -46,6 +46,9 @@ 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 |