summaryrefslogtreecommitdiff
path: root/gr-qtgui/examples/pyqt_freq_c.py
Commit message (Collapse)AuthorAgeFilesLines
* qtgui: pep8 formattingJosh Morman2021-11-241-14/+15
| | | | 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>
* filter: update python binding hashesJosh Morman2020-12-181-1/+2
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.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-4/+6
|
* qtgui: fixed examples for Qt5 compatibility.Tom Rondeau2015-10-131-32/+27
|
* qtgui: fixed examples using qss theme.Tom Rondeau2015-04-141-2/+1
| | | | | Look at installation prefix/share/gnuradio/themes for the location of the dark.qss, which was moved from being in the examples directory.
* blocks: removing throttle, threshold, stretch from gnuradio-core.Tom Rondeau2013-02-241-1/+1
|
* blocks: removes blocks moved to gr-blocks from gnuradio-core.Tom Rondeau2012-12-211-1/+2
| | | | Also fixes up some other missing moves.
* qtgui: Fixed some build issues and made sure all qtgui examples work.Tom Rondeau2012-11-121-2/+8
| | | | analog: also fixed having a default arg for noise_source seed in Python.
* Merge branch 'qtgui_stylesheets' into nextTom Rondeau2012-11-121-0/+4
|\ | | | | | | | | | | | | | | | | Conflicts: gr-qtgui/lib/DisplayPlot.cc gr-qtgui/lib/DisplayPlot.h gr-qtgui/lib/displayform.cc Fixed some function name issues and updated qtgui examples.
| * qtgui: Adding hooks to allow appearance customization with stylesheets.Ben Reynwar2012-10-161-0/+4
| |
* | analog: Removing reference to gr.sig_source_X and gr.noise_source_X where ↵Tom Rondeau2012-11-061-4/+10
|/ | | | | | | | possible. Passing make and make test. Examples and apps need testing. gr-filter relies on sig_source and noise_source, so can't remove them from core.
* Examples: Fixed minor bugs in examples and blks2impl from namespace changes.Ben Reynwar2012-09-041-2/+2
|
* qtgui: wip: moving qtgui over to new pimpl style.Tom Rondeau2012-07-171-1/+1
| | | | Everything but full sink has been converted.
* qtgui: added qtgui_freq sink for reals and GRC files for freq sinks.Tom Rondeau2012-06-291-2/+3
|
* qtgui: stand-alone FFT plot can handle multiple signals.Tom Rondeau2012-06-251-1/+2
|
* qtgui: adding a stand-alone frequency domain plot form.Tom Rondeau2012-06-251-0/+175