diff options
author | jblum | 2009-06-25 22:48:04 +0000 |
---|---|---|
committer | jblum | 2009-06-25 22:48:04 +0000 |
commit | 80a5f5537dcc9a2344d9a127d7dcdee5e69e05cd (patch) | |
tree | 2efe25609e3682fa8b6d8ebcae1452634bac63aa /grc/blocks/variable_slider.xml | |
parent | deb7e98d2c413869e6615fb011f24c2a9944c6d3 (diff) | |
download | gnuradio-80a5f5537dcc9a2344d9a127d7dcdee5e69e05cd.tar.gz gnuradio-80a5f5537dcc9a2344d9a127d7dcdee5e69e05cd.tar.bz2 gnuradio-80a5f5537dcc9a2344d9a127d7dcdee5e69e05cd.zip |
Made the form instances in the gui variables "private", ie, added an underscore.
The generated code looks makes more sense, and it may avoid a possible variable collision.
Fixed up variable config to re-read the config file before writing,
so 2 or more variables using the same config file cant "fight".
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11284 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/blocks/variable_slider.xml')
-rw-r--r-- | grc/blocks/variable_slider.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/blocks/variable_slider.xml b/grc/blocks/variable_slider.xml index 6a7c400ea..875ae74af 100644 --- a/grc/blocks/variable_slider.xml +++ b/grc/blocks/variable_slider.xml @@ -11,7 +11,7 @@ <import>from gnuradio.wxgui import forms</import> <var_make>self.$(id) = $(id) = $value</var_make> <make>_$(id)_sizer = wx.BoxSizer(wx.VERTICAL) -self.$(id)_text_box = forms.text_box( +self._$(id)_text_box = forms.text_box( parent=self.GetWin(), sizer=_$(id)_sizer, value=self.$id, @@ -24,7 +24,7 @@ self.$(id)_text_box = forms.text_box( converter=forms.$(converver)(), proportion=0, ) -self.$(id)_slider = forms.slider( +self._$(id)_slider = forms.slider( parent=self.GetWin(), sizer=_$(id)_sizer, value=self.$id, @@ -43,8 +43,8 @@ self.Add(_$(id)_sizer) self.GridAdd(_$(id)_sizer, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3]) #end if</make> <callback>self.set_$(id)($value)</callback> - <callback>self.$(id)_slider.set_value($id)</callback> - <callback>self.$(id)_text_box.set_value($id)</callback> + <callback>self._$(id)_slider.set_value($id)</callback> + <callback>self._$(id)_text_box.set_value($id)</callback> <param> <name>Label</name> <key>label</key> |