diff options
author | Josh Blum | 2011-03-07 13:15:43 -0800 |
---|---|---|
committer | Josh Blum | 2011-03-07 13:15:43 -0800 |
commit | 0f9de85118b29f9cd5e832ea05e6438adf89e0fb (patch) | |
tree | b27afad70c4b9b1d004b611dae92e1dbd15fbff1 /gr-qtgui/grc/qtgui_chooser.xml | |
parent | d658659c4cb72385f921a03c37bb58b452190aab (diff) | |
download | gnuradio-0f9de85118b29f9cd5e832ea05e6438adf89e0fb.tar.gz gnuradio-0f9de85118b29f9cd5e832ea05e6438adf89e0fb.tar.bz2 gnuradio-0f9de85118b29f9cd5e832ea05e6438adf89e0fb.zip |
qtgui-grc: fix for list option working in chooser block
Diffstat (limited to 'gr-qtgui/grc/qtgui_chooser.xml')
-rw-r--r-- | gr-qtgui/grc/qtgui_chooser.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-qtgui/grc/qtgui_chooser.xml b/gr-qtgui/grc/qtgui_chooser.xml index d06a229b4..6f405d99d 100644 --- a/gr-qtgui/grc/qtgui_chooser.xml +++ b/gr-qtgui/grc/qtgui_chooser.xml @@ -20,7 +20,7 @@ ######################################################################## ## Create the options list ######################################################################## -#if $num_opts() +#if int($num_opts()) self._$(id)_options = (#slurp #for $ch in $all_options $ch, #slurp @@ -32,7 +32,7 @@ self._$(id)_options = $options ######################################################################## ## Create the labels list ######################################################################## -#if $num_opts() +#if int($num_opts()) self._$(id)_labels = (#slurp #for i, $lbl in enumerate($all_labels) #if $lbl() @@ -42,7 +42,7 @@ str(self._$(id)_options[$i]), #slurp #end if #end for ) -#elif $labels +#elif $labels() self._$(id)_labels = $labels #else self._$(id)_labels = map(str, self._$(id)_options) |