Inheritance diagram for wx.RadioButton:
A radio button item is a button which usually denotes one of several mutually exclusive options. It has a text label next to a (usually) round button.
You can create a group of mutually-exclusive radio buttons by specifying wx.RB_GROUP for the first in the group. The group ends when another radio button group is created, or there are no more radio buttons.
See also
Window Style | Description |
---|---|
wx.RB_GROUP | Marks the beginning of a new group of radio buttons. |
wx.RB_SINGLE | In some circumstances, radio buttons that are not consecutive siblings trigger a hang bug in Windows (only). If this happens, add this style to mark the button as not belonging to a group, and implement the mutually-exclusive group behaviour yourself. |
wx.RB_USE_CHECKBOX | Use a checkbox button instead of radio button (currently supported only on PalmOS). |
Event Name | Description |
---|---|
wx.EVT_RADIOBUTTON(id, func) | Process a wx.wxEVT_COMMAND_RADIOBUTTON_SELECTED event, when the radiobutton is clicked. |
Constructor.
Parameters:
Returns:
Returns True if the radio button is depressed, False otherwise.
Returns:
bool
Sets the radio button to selected or deselected status. This does not cause a wx.wxEVT_COMMAND_RADIOBUTTON_SELECTED event to get emitted.
Parameters: