summaryrefslogtreecommitdiff
path: root/grc/gui/canvas/param.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-6/+6
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: optionally show variable names in graph #4109 (#4279)Jason Uher2021-03-161-18/+44
| | | | | | | | 1. Add option to show variable name only 2. Add option to show variable name and value 3. default to traditional behavior Signed-off-by: Jason Uher <jason.uher@jhuapl.edu>
* grc: ensure that strings are valid utf8 when evaluating parametersDaniel Estévez2021-01-291-0/+6
| | | | | | | | | | | | | | | | | | | | | Some objects, notably PMTs can produce non-UTF-8 strings when their __str__() method is called. For instance >>> str(pmt.init_u8vector(1, [203])) '#[\udccb]' These kinds of strings eventually give a UnicodeEncodeError, for instance when calling print() or displaying them with GTK. Python3 strings are supposed to be valid UTF-8. When these objects are used inside block parameters in GRC, it will produce several tracebacks and hang up. This commit fixes the problem by sanitizing the strings to convert them to valid UTF-8. The sanitization uses the 'backslashreplace' error response from Python. Issue #3398 is caused by this problem. Signed-off-by: Martin Braun <martin@gnuradio.org>
* grc: fix pylint C0330: wrong hanging indentationClayton Smith2020-10-201-2/+1
|
* grc: fix pylint C0326: wrong number of spacesClayton Smith2020-10-201-1/+1
|
* grc: fix pylint C0303: Trailing whitespaceClayton Smith2020-10-201-1/+1
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-1/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* grc: Add dir_select parameter typeYamakaja2020-07-231-0/+3
| | | | | | | | 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.
* grc: add length to tooltip for variable with lenewxl2020-05-031-1/+4
| | | | Improving the module grc.gui.canvas.param to add length to tooltip of attributes of a block in grc.
* Update license header to SPDX formatdevnulling2020-01-271-13/+2
|
* Revert "Added switch button for bool types"karel2019-11-011-3/+0
| | | | This reverts commit 007923c64d2505b37dffb8e11cb1e3ecf4e489eb.
* Added switch button for bool typesHåkon Vågsether2018-09-221-0/+3
|
* grc: move some of the param checkers to separate fileSebastian Koslowski2017-11-091-1/+3
|
* grc: refactor: move Param cls to core.paramsSebastian Koslowski2017-11-081-3/+1
|
* grc: added yaml/mako supportSebastian Koslowski2017-06-291-10/+10
| | | | Includes basic converter from XML/Cheetah to YAML/Mako based block format.
* grc: gtk3: Converted actions to Gio.Action instead of Gtk.ActionSeth Hitefield2017-05-031-1/+1
|
* grc: refactor: move drawables in subpackageSebastian Koslowski2016-09-131-0/+162