phoenix_title 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.

styles Window Styles

This class supports the following styles:

  • 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.

events Events Emitted by this Class

Handlers bound for the following event types will receive a wx.CommandEvent parameter.

  • EVT_RADIOBOX: Process a wxEVT_RADIOBOX event, when a radiobutton is clicked.


class_hierarchy Class Hierarchy

Inheritance diagram for class RadioBox:

appearance Control Appearance


wxMSW

wxMSW

wxMAC

wxMAC

wxGTK

wxGTK


method_summary Methods Summary

__init__

Default constructor.

Create

Creates the radiobox for two-step construction.

EnableItem

Enables or disables an individual button in the radiobox.

FindString

Finds a button matching the given string, returning the position if found, or NOT_FOUND if not found.

GetClassDefaultAttributes

GetColumnCount

Returns the number of columns in the radiobox.

GetCount

Returns the number of items in the control.

GetItemFromPoint

Returns a radio box item under the point, a zero-based item index, or NOT_FOUND if no item is under the point.

GetItemHelpText

Returns the helptext associated with the specified item if any or "" .

GetItemLabel

GetItemLabel(self, n) . string

GetItemToolTip

Returns the tooltip associated with the specified item if any or None.

GetRowCount

Returns the number of rows in the radiobox.

GetSelection

Returns the index of the selected item.

GetString

Returns the label of the item with the given index.

IsItemEnabled

Returns True if the item is enabled or False if it was disabled using Enable .

IsItemShown

Returns True if the item is currently shown or False if it was hidden using Show .

SetItemHelpText

Sets the helptext for an item.

SetItemLabel

SetItemLabel(self, n, text)

SetItemToolTip

Sets the tooltip text for the specified item in the radio group.

SetSelection

Sets the selection to the given item.

SetString

Sets the label for the given item.

ShowItem

Shows or hides individual buttons.


property_summary Properties Summary

ColumnCount

See GetColumnCount

Count

See GetCount

RowCount

See GetRowCount

Selection

See GetSelection and SetSelection


api Class API

class wx.RadioBox(Control, ItemContainerImmutable)

Possible constructors:

RadioBox() -> None

RadioBox(parent, id=ID_ANY, label='', pos=DefaultPosition,
         size=DefaultSize, choices=[], majorDimension=0, style=RA_SPECIFY_COLS,
         validator=DefaultValidator, name=RadioBoxNameStr) -> None

A radio box item is used to select one of number of mutually exclusive choices.


Methods

__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default constructor.