Re: Re: Update QT GUI Label from Embedded Python Block

2021-07-08 Thread Phil Wiggum
I sort of got this peak detecting working. Expect one problem which I will address in a separate thread > Sent: Thursday, July 08, 2021 at 2:44 PM > From: "Phil Wiggum" > To: discuss-gnuradio@gnu.org > Subject: Re: Update QT GUI Label from Embedded Python Block > >

Re: Update QT GUI Label from Embedded Python Block

2021-07-08 Thread Phil Wiggum
Hi Marcus, I solved my Label issue with a 'Python Snippet' as follows: Properties of Python Snippet: - Section of Flowgraph: Main - After Init - Code Snipet: self.epy_block_0.set_parent(self) And in my 'Python Block' added set_parent function. 'Python Block' code: class blk(gr.sync_block): d

Re: Update QT GUI Label from Embedded Python Block

2021-07-08 Thread Marcus Müller
Hi Phil, can't do that! The label can only be changed by calling setters in Python that are not in the namespace you (directly) have access to in your block (you can hack together things where you just hard-code the top_block's name, but uhh ugliness). Also, sounds like the right job, but t

Update QT GUI Label from Embedded Python Block

2021-07-07 Thread Phil Wiggum
Hi! How do I do when I need to update 'QT GUI Label' block from inside of 'Embedded Python Block'. I like to take a calculated value from _work and update a GUI label on screen with the result. Any Example I'm running gnuradio.3-10 master. /Thanks Phil