commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10574 - gnuradio/trunk/gr-wxgui/src/python


From: jcorgan
Subject: [Commit-gnuradio] r10574 - gnuradio/trunk/gr-wxgui/src/python
Date: Sat, 7 Mar 2009 19:38:19 -0700 (MST)

Author: jcorgan
Date: 2009-03-07 19:38:18 -0700 (Sat, 07 Mar 2009)
New Revision: 10574

Modified:
   gnuradio/trunk/gr-wxgui/src/python/form.py
Log:
Fix radiobox label

Modified: gnuradio/trunk/gr-wxgui/src/python/form.py
===================================================================
--- gnuradio/trunk/gr-wxgui/src/python/form.py  2009-03-07 11:11:44 UTC (rev 
10573)
+++ gnuradio/trunk/gr-wxgui/src/python/form.py  2009-03-08 02:38:18 UTC (rev 
10574)
@@ -263,7 +263,7 @@
 
 
 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 @@
         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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]