Set value of variable slider


#1

Hi Gnuradio People,

i tried to set a value for a variable slider without succes:
self._variable_chooser_filter = grc_wxgui.drop_down_control(
window=self.GetWin(),
callback=self.change_filter,
label=‘Choose Filter’,
index=0,
choices=[1, 2, 3, 4, 5],
labels=[‘No Filter’,
‘FIR frequency translating LP’,
‘FIR frequency translating BP’,
‘Analysis Filterbank+LP’,
‘Analysis Filterbank+BP’],
)
self._variable_chooser_filter.set_value(1)

But this doesn’t work, so how to set this ?

Regards Markus