summaryrefslogtreecommitdiff
path: root/gr-qtgui/examples/pyqt_histogram_f.py
Commit message (Collapse)AuthorAgeFilesLines
* qtgui: pep8 formattingJosh Morman2021-11-241-10/+12
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* qtgui: Replace pyqwidget() with qwidget()David Winter2021-09-031-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 Kravchuk2020-08-031-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 Economos2020-07-221-1/+1
|
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-3/+5
|
* qtgui: fixed examples for Qt5 compatibility.Tom Rondeau2015-10-131-40/+33
|
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-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 Rondeau2013-10-291-0/+200