Re: [Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Vitt Benv
Yes Marcus, I'm doing some experiments with this old but nice SDR receiver built by ja7tdo, just for fun or a little more! It's connected via sound card (Audiophile @192Ksps) and it's tuned (AD9850 + multiplier) via a FTDI USb chip used in bit-bang mode... quite complicated but very cheap. Tuning

Re: [Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Marcus Müller
Hi Victor, am I interpreting this correctly: You have a device that you want to control via a GUI slider? I think a relatively elegant way to have the control interface would be: 1. Making an OOT module; the Guided Tutorials[1], Chapter 3, explain how. 2. use gr_modtool add to add a python

Re: [Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Vitt Benv
... wrong click, I apologize! ..​ def set_base_fx(self, base_fx): self.base_fx = base_fx ​ ​ cmd_string = str(int(self.base_fx)) ​ #​ print cmd_string ​ ​ exit_code = subprocess.call(["soft66-control","-t",cmd_string])

Re: [Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Vitt Benv
Right Marcus I'd found it and it's what I was looking for, tnx! About "Python modules", yes, it's a nice features that I'll explore. At present I edit top_block.py to paste my code ( only 2 lines...) as: ​..​ def set_base_fx(self, base_fx): self.base_fx = base_fx ​ ​

Re: [Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Marcus Müller
Hi Victor, On 31.03.2016 14:57, Marcus Müller wrote: > I know there's the Qt Tab widget (look under "GUI widgets"), but I > haven't played around with that. I sent that and realized that typing that took me as long as it would have taken me to play around :) So, yeah, it's pretty simple: You add

Re: [Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Marcus Müller
I know there's the Qt Tab widget (look under "GUI widgets"), but I haven't played around with that. Regarding protected python code: Well, the problem is that the python code Generator class re-generates the python code from scratch each time and doesn't even try to read what's there already.

Re: [Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Vitt Benv
Tnx Marcus, you are right, I'm speaking about "graphical" properties. I was aware about "GUI Hint" and I tried this but only to put widgets in rows x columns positions but now I know about the subsequent parameter: I'll test those. Now I miss only Tabs as Notebook was used, but never mind,

Re: [Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Marcus Müller
Hi Victor, what specifically are you referring to when you say "dimension" of your graphical sinks; do you mean the "logical" size (in points of the FFT) or the "graphical" size (in pixels of the widget, or the window)? You can specify the heights of the widgets manually, but that would require

[Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Vitt Benv
...resent, my mistake! Good morning, I'm exploring QT graphical, to begin lo leave WX widget I'm looking for good infos about resizing / fix the dimensions of my two graphical sinks ( frequency / spectrogram), Googled around but no clear infos :-( Moreover in WX there's a

[Discuss-gnuradio] QT graphical sink: how set dimension?

2016-03-31 Thread Vitt Benv
Good morning, I'm exploring QT graphical, to begin lo leave WX widget I'm looking for good infos about resizing / fix the dimensions of my two graphical sinks ( frequency / spectrogram), Googled around but no clear infos :-( Moreover in WX there's a Notebook container, very useful with crowded