diff options
author | Yamakaja <dastw@gmx.net> | 2020-07-19 16:18:38 +0200 |
---|---|---|
committer | Sebastian Koslowski <sebastian.koslowski@gmail.com> | 2020-07-23 08:27:30 +0200 |
commit | b9eff3f5e61ae2443f85549bcf60f1fae4ff0447 (patch) | |
tree | b4413369331f18015366fac5c2514fdf7ad5b694 /grc/gui/canvas/param.py | |
parent | c2f42238032e2315371aaec8a64687d99028ccd2 (diff) |
grc: Add dir_select parameter type
This commit adds a new parameter type to GNURadio Companion that allows
you to select directories using a gui. This functionality is
very similar to that of the previously available "file_open" and
"file_save" parameter types, and mainly differs by calling GTKs file
chooser with FileChooserAction.SELECT_FOLDER.
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 b612902928..462bcee86f 100644 --- a/grc/gui/canvas/param.py +++ b/grc/gui/canvas/param.py @@ -32,6 +32,9 @@ class Param(CoreParam): if dtype in ('file_open', 'file_save'): input_widget_cls = ParamWidgets.FileParam + elif dtype == 'dir_select': + input_widget_cls = ParamWidgets.DirectoryParam + elif dtype == 'enum': input_widget_cls = ParamWidgets.EnumParam |