Hi Sam,
Thanks for your reply. I must warn you, that I’m a complete beginner…
I have tried this;
class Form1(wxPanel):
def init(self, parent, id):
wxPanel.init(self, parent, id=-1,)
# Generate
self.button =wxButton(self, 10, "Generate", wxPoint(200, 300))
EVT_BUTTON(self, 10, self.OnGenerate)
# Name_Number
self.radioList = ['1', '2', '3', '4', '5']
rb = wxRadioBox(self, 50, “How many names ?”, wxPoint(20, 250), wxDefaultSize,
self.radioList, 3, wxRA_SPECIFY_COLS)
EVT_RADIOBOX(self, 50, self.EvtRadioBox)
def OnButton(self, event):
Name_Number=int(rb.GetString())
But I get the following error message;
OnGenerate
Name_Number=int(wxRadioBox.GetString())
TypeError: unbound method GetString() must be called with RadioBox instance as first argument (got nothing instead).
Thanks for any help you can offer
Maclolm