summaryrefslogtreecommitdiff
path: root/grc/core/generator/flow_graph.py.mako
Commit message (Collapse)AuthorAgeFilesLines
* cmake: replace deprecated distutilsVolker Schroer2021-12-201-1/+1
| | | | | | | | | | | * gnuradio: replace deprecated distutils Check if python packaging is available Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> * Add packaging requirement Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* grc: modify and cleanup bokeh server loopNotou2021-12-071-48/+10
| | | | | Remake of the commits proposed to maint-3.8 to support the latest versions of bokeh. Signed-off-by: Cyrille Morin <barthy42@laposte.net>
* grc: In flowgraph, use closeEvent() to stop flow graph and not aboutToQuitSylvain Munaut2021-01-121-5/+6
| | | | | | | | | | | | | | | | | | | | | So originally I introduced the aboutToQuit() stuff in the hope to cleanly shutdown the flow graph, including the Qt widgets blocks before the Qt stuff is torn down. Turns out that in aboutToQuit some stuff is already invalid, especially in OpenGL and so causes SegFault on exit. Instead this patch modify the logic so that we stop the flow graph before Qt even begin disabling things. The two shutdown path that exits are : - The sig_handler in case we get TERM or INT signals - The closeEvent() of the main window This makes sure that both path call tb.stop() tb.wait() and also any snippet 'main_after_stop'. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* grc: Move snippets prep earlier in the fileSylvain Munaut2021-01-121-24/+28
| | | | | | | They are going to be needed in the closeEvent() Qt stuff and this is earlier in the file ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* grc: indent multiline connections in py flowgraphMike Walters2020-12-181-1/+1
| | | | | | | | This fixes flowgraph generation when using connection templates with multiple lines. Previously it would only indent the first line and subsequent lines would have no indentation, causing a python error. Signed-off-by: Mike Walters <mike@flomp.net>
* grc: Fix hier block io_signature generationJohannes Demel2020-06-251-2/+2
| | | | | | GRC used `gr.io_signaturev` to generate hierarchical block signatures. This was only a SWIG alias to `gr.io_signature.makev`. Now, the generator calls `gr.io_signature.makev` directly.
* grc: Remove unused template definitionIgor Freire2020-02-151-7/+0
|
* grc: Fix eng_float default on argparse templateIgor Freire2020-02-151-1/+1
| | | | | | | | | The import of eng_notation was removed in 678a7c2ad, and so float parameter blocks were leading to flowgraph compilation error. Since eng_notation is still imported in the generated python script, we can put the call to num_to_str in the generated script, instead of calling it during script generation.
* grc: add python snippets to GRCJosh Morman2020-02-101-2/+41
| | | | | | | | | | | This feature adds the ability to insert arbitrary code into the python flowgraph. It gives a little more low-level flexibility for quickly modifying flowgraphs and adding custom bits of code rather than having to go and edit the generated py file One example is synchronizing multiple USRP objects - sometimes you want different sync than what is offered in the multi-usrp object, so you can put a bit of code in the snippet block to do the custom synchronization
* grc: Add handling of catch_exceptions top_block paramScott Torborg2020-01-051-3/+3
| | | | | | Adds an additional option to the flowgraph's "Generate Options" in GRC called "Catch block exceptions", under the Advanced tab. This parameter controls the catch_exceptions flag passed to top block instantiation.
* Disable Python 2kMarcus Müller2020-01-041-9/+0
| | | | | | | | | | - Update SWIG settings - Update CMake - Remove Python2 references Note: This does not touch a lot of Python files, and many Python files will still work with Python 2 after this commit. However, we won't allow that in our CMake, and the support will be gone too.
* Module name correction for bokehgui Notou2019-11-011-3/+3
|
* grc: enable advanced parametersBastian Bloessl2019-09-191-12/+12
| | | | cpu affinity, max/min out buf size
* grc: better qt flowgraph shutdownBastian Bloessl2019-06-191-1/+30
|
* runtime: port ctrlport monitor to 3.8 and qt5Bastian Bloessl2019-06-191-7/+9
|
* Add missing quotes in themes parameter of option blockVolker Schroer2019-04-191-1/+1
|
* Remove generated_time from GRC-generated filesHåkon Vågsether2019-01-141-1/+0
|
* grc: Fix rendering of eng_float paramsMartin Braun2019-01-051-2/+3
| | | | | | | eng_float params, e.g. "2.45G", are not recognized by Python and need to be rendered as strings (with additional quotes). This is not true for string types, which already have quotes, or regular floats and ints, which do not need them.
* Fix Python2-style printsHåkon Vågsether2018-08-181-2/+2
|
* Completed switch from XML to YAML for hier blocksHåkon Vågsether2018-08-071-7/+8
|
* Additional YML forward port fixesHåkon Vågsether2018-07-301-8/+14
|
* [grc] additional fixes from merging bokeh-gui (#1434)Sebastian Koslowski2017-09-301-12/+12
|
* Merge remote-tracking branch 'skoslowski/python3' into python3Johnathan Corgan2017-09-251-0/+55
|\
| * Merge branch 'next' into python3Sebastian Koslowski2017-09-061-0/+55
| |
* | Small Python 3 fixes in the Mako Python templateHåkon Vågsether2017-09-181-2/+10
|/
* grc: added yaml/mako supportSebastian Koslowski2017-06-291-0/+352
Includes basic converter from XML/Cheetah to YAML/Mako based block format.