diff options
author | jcorgan | 2009-03-08 02:38:18 +0000 |
---|---|---|
committer | jcorgan | 2009-03-08 02:38:18 +0000 |
commit | 1df84e329951c51ce7fedd5eb3a2bd1e4bb8ad3d (patch) | |
tree | b5173908f58750b5d5ecdb0f1a79b93807e0a5ca | |
parent | 96cb773ed47079d47f6d4bf75fd8fdb60cb17e27 (diff) | |
download | gnuradio-1df84e329951c51ce7fedd5eb3a2bd1e4bb8ad3d.tar.gz gnuradio-1df84e329951c51ce7fedd5eb3a2bd1e4bb8ad3d.tar.bz2 gnuradio-1df84e329951c51ce7fedd5eb3a2bd1e4bb8ad3d.zip |
Fix radiobox label
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10574 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r-- | gr-wxgui/src/python/form.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-wxgui/src/python/form.py b/gr-wxgui/src/python/form.py index e635c5461..b55b04d73 100644 --- a/gr-wxgui/src/python/form.py +++ b/gr-wxgui/src/python/form.py @@ -263,7 +263,7 @@ class checkbox_field(field): class radiobox_field(field): - def __init__(self, parent=None, sizer=None, label="", value=None, + def __init__(self, parent=None, sizer=None, label=None, value=None, converter=identity_converter(), callback=None, weight=1, choices=None, major_dimension=1, specify_rows=False): new_id = wx.NewId() @@ -273,9 +273,9 @@ class radiobox_field(field): else: style=wx.RA_SPECIFY_COLS | wx.RA_HORIZONTAL - w = wx.RadioBox(parent, new_id, label="", style=style, majorDimension=major_dimension, + w = wx.RadioBox(parent, new_id, label=label, style=style, majorDimension=major_dimension, choices=choices) - self.f = self._pair_with_label(w, parent=parent, sizer=sizer, label=label, weight=weight) + self.f = self._pair_with_label(w, parent=parent, sizer=sizer, label=None, weight=weight) if callback: wx.EVT_RADIOBOX(w, new_id, lambda evt: callback(evt.GetString())) field.__init__(self, converter, value) |