[WX] wxRadioBox and change choice

Michele Petrazzo michele.petrazzo at TOGLIunipex.it
Tue Sep 14 07:13:08 EDT 2004


I create a widget like this:
self.rb_method = wxRadioBox(choices=['choice1', 'choice2'], id=-1,
  label='Method', name='rb_method', parent=self, point=wxPoint(8, 320),
  size=wxSize(168, 72), style=wxRA_SPECIFY_COLS,)

I want to change choice (the choice' labels) in runtime use, so in my 
code, choice1 -> test1, choice2 -> test2
The wxRadioBox have Setlabel method, but it only change the "title", not 
the choices.
Is it possible to do it? Or I must destroy and recreate the widget?

Thanks,
Michele Petrazzo



More information about the Python-list mailing list