[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Question about GNU Radio Companion - Calling an exter

From: Vladimir Marinov
Subject: [Discuss-gnuradio] Question about GNU Radio Companion - Calling an external function from a QT GUI Push Button
Date: Mon, 15 Jul 2019 19:34:46 +0300


I'm working on a project with GNU Radio Companion and I have a question about how calling an external function ( defined in a separate .py file ) might be achieved.

My goal is to be able to create a QT Push Button, which when pressed would call the function.
I was initially hoping to use the QT Push Button Block from GNU Radio Companion and somehow set its callback function to be the desired one. Now, after reading through the docs and looking through the settings for the block in GNU Radio Companion, as I understand it the Push Button Block is essentially a variable with two different values depending on if the button is pressed or not. Am I missing something or is it not possible for the block to call some other external function of my own. 

I know that this could be fixed by creating an Out-Of-Tree block, or by modifying the python file that GNU Radio Companion generates, but as this project is going to be used for educational purposes, I would prefer to keep it as simple as possible ( if possible only within the standard blocks from GNU Radio Companion).

Any tips would be very appreciated. Thanks for your time!

Best Regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]