Inheritance diagram for wx.RadioBox:
A radio box item is used to select one of number of mutually exclusive choices. It is displayed as a vertical column or horizontal row of labelled buttons.
See also
Window Style | Description |
---|---|
wx.RA_SPECIFY_ROWS | The major dimension parameter refers to the maximum number of rows. |
wx.RA_SPECIFY_COLS | The major dimension parameter refers to the maximum number of columns. |
wx.RA_USE_CHECKBOX | Use of the checkbox controls instead of radio buttons (currently supported only on PalmOS) |
Event Name | Description |
---|---|
wx.EVT_RADIOBOX(id, func) | Process a wx.wxEVT_COMMAND_RADIOBOX_SELECTED event, when a radiobutton is clicked. |
Constructor.
Parameters:
Returns:
Enables or disables the entire radiobox.
Parameters:
See also
Enables or disables an individual button in the radiobox.
Parameters:
Finds a button matching the given string, returning the position if found, or -1 if not found.
Parameters:
Returns the number of columns in the radiobox.
Returns:
int
Returns the helptext associated with the specified item if any or "".
Parameters:
Returns:
string
See also
Enables or disables an individual button in the radiobox.
Parameters:
Returns:
string
Returns the tooltip associated with the specified item if any or None.
Parameters:
Returns:
See also
Returns the radiobox label.
Returns:
string
Parameters:
Returns:
int
Returns the number of rows in the radiobox.
Returns:
unsigned int
Returns the zero-based position of the selected button.
Returns:
int
Returns the selected string.
Returns:
string
Returns the label for the button at the given position.
Parameters:
Returns:
string
Returns True if the item is enabled or False if it was disabled using EnableItem.
Parameters:
Returns:
bool
Note
Platform note: Currently only implemented in wxMSW, wxGTK and wxUniversal and always returns True in the other ports.
Returns True if the item is currently shown or False if it was hidden using ShowItem.
Parameters:
Returns:
bool
Note
Note that this function returns True for an item which hadn’t been hidden even if the entire radiobox is not currently shown.
Note
Platform note: Currently only implemented in wxMSW, wxGTK and wxUniversal and always returns True in the other ports.
Sets the helptext for an item. Empty string erases any existing helptext.
Parameters:
See also
Sets the radiobox label.
Parameters:
Sets the tooltip text for the specified item in the radio group.
Parameters:
Note
Platform note: Currently only implemented in wxMSW and wxGTK2 and does nothing in the other ports.
See also
Sets the radiobox label.
Parameters:
Sets a button by passing the desired string position. This does not cause a wx.wxEVT_COMMAND_RADIOBOX_SELECTED event to get emitted.
Parameters:
Sets a button by passing the desired string. This does not cause a wx.wxEVT_COMMAND_RADIOBOX_SELECTED event to get emitted.
Parameters:
Shows or hides the radiobox.
Returns True if the box or item has been shown or hidden or False if nothing was done because it already was in the requested state.
Parameters:
Returns:
bool
See also
Shows or hides individual buttons.
Returns True if the box or item has been shown or hidden or False if nothing was done because it already was in the requested state
Parameters:
Returns:
bool