From 1df84e329951c51ce7fedd5eb3a2bd1e4bb8ad3d Mon Sep 17 00:00:00 2001 From: jcorgan Date: Sun, 8 Mar 2009 02:38:18 +0000 Subject: Fix radiobox label git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10574 221aa14e-8319-0410-a670-987f0aec2ac5 --- gr-wxgui/src/python/form.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gr-wxgui/src/python') 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) -- cgit