Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | qtgui: pep8 formatting | Josh Morman | 2021-11-24 | 1 | -10/+12 |
| | | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org> | ||||
* | qtgui: Replace pyqwidget() with qwidget() | David Winter | 2021-09-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously, two versions of the `qtwidget` functions existed, `qwidget()` and `pyqwidget()`, with the only difference being that `qwidget()` returned a pointer to the `QWidget` object managed by the corresponding block, while `pyqwidget()` returned that same pointer, but as an integer (Or `PyLong` in this case). While `qwidget()` is used by C++ code accessing the widgets, `pyqwidget()` is only used for the python interface. This makes these two methods redundant, thus this commit entirely removes `pyqwidget()`, and modifies the `qwidget()` python wrapper to behave like `pyqwidget()`. Note that we can be fairly confident that this change will not effect potential users of `qwidget()`, because any invocation on the objects previously returned by `qwidget()` would cause a segmentation fault. This commit also fixes a memory leak: Internally, the `pyqwidget()` functions were returning a PyLong `PyObject *`, which was then upwrapped in a pybind trampoline without decrementing the reference count of that python object. Signed-off-by: David Winter <david.winter@analog.com> | ||||
* | python: Remove unnecessary 'from __future__ import' | Oleksandr Kravchuk | 2020-08-03 | 1 | -2/+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 | ||||
* | gr-qtgui: Repair qtgui examples for pybind11. | Ron Economos | 2020-07-22 | 1 | -1/+1 |
| | |||||
* | Update license header to SPDX format | devnulling | 2020-01-27 | 1 | -13/+1 |
| | |||||
* | python3: update non-GRC components to use python2 or python3 | Douglas Anderson | 2017-02-26 | 1 | -3/+5 |
| | |||||
* | qtgui: fixed examples for Qt5 compatibility. | Tom Rondeau | 2015-10-13 | 1 | -40/+33 |
| | |||||
* | Removing trailing/extra whitespaces before release. | Tom Rondeau | 2014-07-07 | 1 | -1/+1 |
| | | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace). | ||||
* | qtgui: fixed histogram autoscaling features. Added example script. | Tom Rondeau | 2013-10-29 | 1 | -0/+200 |