Seite 1 von 1

Radiobutton Group

Verfasst: Sonntag 23. Oktober 2005, 20:02
von leobm
Mit dem style wxRB_Group leite ich eine neue Radiobutton Group ein.
Aber wie kann ich wx sagen das standardmässig noch kein RadioButton vorgewählt/selektiert wird ?

Gruß, Felix

Re: Radiobutton Group

Verfasst: Montag 24. Oktober 2005, 14:23
von Francesco
leobm hat geschrieben:Mit dem style wxRB_Group leite ich eine neue Radiobutton Group ein.
Aber wie kann ich wx sagen das standardmässig noch kein RadioButton vorgewählt/selektiert wird ?

Gruß, Felix
Soeben ausprobiert:

Code: Alles auswählen

 
self.radio1 = wx.RadioButton(self, wx.NewId(), 'normal', (640, 60), wx.DefaultSize, wx.RB_GROUP)
self.radio2 = wx.RadioButton(self, wx.NewId(), 'light', (710, 60), wx.DefaultSize)
self.radio3 = wx.RadioButton(self, wx.NewId(), 'bold', (780, 60), wx.DefaultSize)
self.radio1.SetValue(False)