Forum: GNU Radio Getting nodes and edges of flowgraph from python

Posted by wakjah ' (Guest)
on 2012-12-24 01:06
(Received via mailing list)
Hi,

Is there any way of retrieving the list of blocks and their edges from
python? This facility is exposed in the flowgraph classes, but I cannot 
see
a way to access these from my top_block in python.

Thanks,

Will
Posted by Tom Rondeau (Guest)
on 2012-12-31 20:19
(Received via mailing list)
On Sun, Dec 23, 2012 at 7:05 PM, wakjah ' <wakjah@gmail.com> wrote:

> Hi,
>
> Is there any way of retrieving the list of blocks and their edges from
> python? This facility is exposed in the flowgraph classes, but I cannot see
> a way to access these from my top_block in python.
>
> Thanks,
>
> Will
>


Will,

No, you can't do that right now. You'd have to somehow expose this up 
the
stack of ownership of the flowgraph into the top_block and then put that 
in
the SWIG interface file.

Tom
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.