summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui
Commit message (Collapse)AuthorAgeFilesLines
* cmake: change how test files are build when cross compilingPhilip Balister2021-12-031-1/+4
| | | | | | | | | | | | | | | | | | | | * When cross compiling gnuradio, change how the test files are built. Normally, the gnuradio QA code expects to run in the build tree. For the cross compilng case, we cannot run the QA code during the build process. The changes here allow the creation of an additional package that can be installed on a target that will run the QA code against the installed libraries. Major changes are not using full paths to test files (since they include paths that only exist on the build machine) and not setting environment variables in the shell files to force the QA code to use code in the build tree. This patch disables the C++ only tests, these need some work and then they can be added back for the cross compile case. Signed-off-by: Philip Balister <philip@balister.org>
* qtgui: pep8 formattingJosh Morman2021-11-2418-274/+385
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* qtgui range: setRange() requires intJeff Long2021-11-221-4/+4
| | | | | | Author: Chris Vine <vine35792468@gmail.com> Signed-off-by: Jeff Long <willcode4@gmail.com>
* ber_sink_b: Make qwidget() part of the APIDavid Winter2021-10-122-0/+9
| | | | | | | The qwidget() method of ber_sink_b had previously not been declared part of the public API, thus preventing its use from python. Signed-off-by: David Winter <david.winter@analog.com>
* qtgui: Replace pyqwidget() with qwidget()David Winter2021-09-0337-282/+68
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* qtgui: Use pmt.from_double() instead of pmt.from_float()Jeff Long2021-05-136-10/+10
| | | | | | | Messages should be constructed using double values instead of float to avoid loss of precision. Signed-off-by: Jeff Long <willcode4@gmail.com>
* qtgui:Added Time Raster Sink Control Axis ConfigurationJeff Long2021-01-174-0/+75
| | | | | | | | | | | This update allows a time raster sink's axis minimum, maximum, and label to now be specified in the block configuration options. This allows the block to be formatted to match a waterfall plot in terms of having frequency on the lower axis. Based on PR from ghostop14 <ghostop14@gmail.com> Signed-off-by: Jeff Long <willcode4@gmail.com>
* qtgui: toggle switch was reverseJeff Long2021-01-041-4/+4
| | | | | | | Fixes #3939. Toggle switch was left==on, now right==on. Signed-off-by: Jeff Long <willcode4@gmail.com>
* add import fft to python files that reference fft.windowJosh Morman2020-12-181-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* global replace of filter.firdes.WIN_ with fft.window.WIN_Josh Morman2020-12-181-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* more qt4 qt5 updatesA. Maitland Bottoms2020-12-181-1/+1
| | | | Have additional apps, examples, and tools use Qt5 instead of Qt4.
* qa: run autopep8 formatting on qa python filesmormj2020-10-301-3/+5
| | | | | | find ./ -iname qa*.py | xargs autopep8 --in-place -a -a mostly formats whitespace and gets rid of trailing semicolons
* qa: remove xml file parameter causing deprecation warningsmormj2020-10-301-1/+1
|
* Fix typos throughout the codeluzpaz2020-10-292-3/+3
| | | | | | | * Fix various typos Found via `codespell v2.0.dev` `codespell -q 3 -L ans,fo,hist,inout,ist,ith,nd,sinc,uint -S ./volk`
* pybind: add implicit conversion from int to enummormj2020-10-282-4/+10
| | | | | | | | | | | | | * dtv: add implicit conversion from int to enum * analog: add implicit conversion from int to enum * blocks: add implicit conversion from int to enum * digital: add implicit conversion from int to enum * fec: add implicit conversion from int to enum * fft: add implicit conversion from int to enum * filter: add implicit conversion from int to enum * qtgui: add implicit conversion from int to enum * trellis: add implicit conversion from int to enum * vocoder: add implicit conversion from int to enum * bindtool: add implicitly_convertible to all enums
* Update qa_qtgui.pyVolker Schroer2020-10-231-3/+3
| | | | | | | | | Test fails with File "/home/schroer/gnuradiocomponents/gnuradio-volker/gr-qtgui/python/qtgui/qa_qtgui.py", line 78, in test13 self.qtsnk = qtgui.eye_sink_c(1024, 1, "Test", 1, None) TypeError: __init__(): incompatible constructor arguments. The following argument types are supported: 1. gnuradio.qtgui.qtgui_python.eye_sink_c(size: int, samp_rate: float, nconnections: int = 1, parent: gnuradio.qtgui.qtgui_python.QWidget = None) Invoked with: 1024, 1, 'Test', 1, None
* gr-qtgui: Remove unused set_title() method in QT GUI Eye Sink.Ron Economos2020-10-204-20/+0
|
* qa: Run qtgui tests with xvfb-run when neededVasil Velichkov2020-10-161-1/+8
| | | | | | If running on Linux, the DISPLAY environment variable is not set and xvfb-run is present then run the Qt tests with xvfb-run. This would allows running the Qt test in the gnuradio's CI.
* qtgui: python: bindings: Use nullptr instead of nonstandard __null.Ryan Volz2020-10-0517-17/+17
| | | | This fixes compilation with MSVC.
* qtgui: freq_sink: Allow normalization of window functionsMartin Braun2020-08-174-0/+16
| | | | | | | | | | | | | | | | | | | | When switching between window functions in a live FFT GUI session, the difference in power of the window functions is notable. This allows asserting the 'normalize' argument of fft::window::build() by setting a bit in the window type during construction,, or by calling a new API call: set_fft_window_normalized(). Note: The choice to use an unused bit to set the normalization comes from an attempt to keep the API backward compatible. Adding a new argument to the make call would require reordering the make arguments. This feature allows changing window types without signal power varying due to window power differences. Note that this does not affect scalloping loss, or processing loss from the window. For example, the peak value of a sine tone will still vary for different windows, because different windows distribute the power differently, and most window functions move power to the sidelobes.
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-032-3/+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 Message Edit Box block for pybind11.Ron Economos2020-07-302-1/+13
|
* gr-qtgui: Repair qtgui examples for pybind11.Ron Economos2020-07-227-6/+37
|
* gr-qtgui: Replace PyLong_AsLong with PyLong_AsLongLong for 32-bit systems.Ron Economos2020-06-2917-34/+52
|
* qtgui: add pybind bindings for eye_sinkJosh Morman2020-06-047-2/+847
|
* qtgui: add pybind11 bindingsJosh Morman2020-06-0466-18/+6213
|
* qtgui: Add eye sink widgetChristophe Seguinot2020-05-191-0/+6
|
* qtgui: add vertical slider supportJosh Morman2020-05-141-12/+19
|
* Fixed UI Issue Where Mouse Clicks Did Not Change Frequencyghostop142020-05-111-4/+27
| | | | | | Clicking on the upper or lower parts of numbers is supposed to change the frequency when not in read-only mode. A bug in mousePressEvent was preventing the updates from being detected.
* Fixed typo in azeplot in gr_qtguisidkapoor972020-04-111-1/+1
|
* qtgui: RangeWidget - implement Eng & EngSlider (#3163)Sec2020-04-091-0/+120
| | | | | | | * RangeWidget: implement Eng & EngSlider * add requested whitespace changes * remove unneeded semicolon
* #3281 remove extra line of whitespacesidkapoor972020-04-091-1/+0
|
* Changes for #3281 qtgui:matplotlib dependencysidkapoor972020-04-092-9/+12
|
* #3281 qtgui: matplotlib dependencysidkapoor972020-04-091-2/+1
|
* RangeWidget: avoid double-changesStefan `Sec` Zehl2020-03-291-2/+10
|
* gr-qtgui: Incorporate new GUI controlsghostop142020-02-1918-4/+2618
| | | | | | These updates expand the user interface capabilities of GNU Radio. This PR includes all of the controls more fully documented here: https://github.com/ghostop14/gr-guiextra
* Update license header to SPDX formatdevnulling2020-01-275-65/+5
|
* qtgui: Replace "is not" with "!=" to get rid of warningHåkon Vågsether2020-01-111-1/+1
|
* QT: Add margin around QT widgetsdevnulling2020-01-041-0/+3
|
* Fix for misc. documentation + trivial typosluz.paz2019-07-171-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -L ans,sinc,hist,ist,ith,uint,fo -S ./volk` Fix typos in gnuradio-runtime/ Fix typos in gr-digital/ Fix typos in gr-qtgui/ Fix typos in gr-channels/ Fix typos in grc/ Fix typos gr-filter/ Fix typos in gr-uhd/ Fix typos in gr-blocks/ Fix typos in gr-fec/
* qtgui: Disallow use of Qt4Martin Braun2018-11-151-6/+2
| | | | | | Qt5 is now required. Note that many applications and examples requiring Qt are currently broken, this does not fix any of them, it just sets up our CMake environment so we can start fixing them.
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-315-27/+39
|\
| * Fix call to check_set_qss() in range.pyHåkon Vågsether2017-09-181-2/+2
| |
| * Merge branch 'next' into python3Johnathan Corgan2017-08-141-1/+1
| |\ | | | | | | | | | | | | Conflicts: gr-fft/python/fft/logpwrfft.py
| | * Merge branch 'master' into nextJohnathan Corgan2017-08-141-1/+1
| | |\
| * | | python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-264-6/+11
| |/ /
| * | qtgui: fix stylesheet for qt5Bastian Bloessl2016-11-111-1/+1
| | |
| * | Merge branch 'master' into nextJohnathan Corgan2016-10-174-0/+39
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gr-qtgui/python/qtgui/CMakeLists.txt gr-qtgui/python/qtgui/range.py.cmakein grc/core/generator/flow_graph.tmpl
| * \ \ Merge branch 'next' into next-qt5Johnathan Corgan2016-08-031-1/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: gr-qtgui/grc/CMakeLists.txt
| | * | | cmake: nuke cpack from existenceJohnathan Corgan2016-08-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.