- rb = wxRadioBox(self, RBOX2, "", wxDefaultPosition, wxDefaultSize,
- sampleList, 3, wxRA_SPECIFY_COLS | wxNO_BORDER)
- EVT_RADIOBOX(self, RBOX2, self.EvtRadioBox)
- rb.SetToolTip(wxToolTip("This box has no label"))
- sizer.Add(rb, 0, wxLEFT|wxRIGHT|wxBOTTOM, 20)
+ sizer.Add(rb, 0, wx.ALL, 20)
+
+ rb = wx.RadioBox(
+ self, -1, "", wx.DefaultPosition, wx.DefaultSize,
+ sampleList, 3, wx.RA_SPECIFY_COLS | wx.NO_BORDER
+ )
+
+ self.Bind(wx.EVT_RADIOBOX, self.EvtRadioBox, rb)
+ rb.SetToolTip(wx.ToolTip("This box has no label"))
+
+ sizer.Add(rb, 0, wx.LEFT|wx.RIGHT|wx.BOTTOM, 20)