diplomat.wx_gui.point_edit.ColoredRadioButton

class diplomat.wx_gui.point_edit.ColoredRadioButton(*args: Any, **kwargs: Any)[source]

Bases: Panel

A colored radio button, used for displaying colors of each body part.

__init__(parent, button_idx: int, color: wx.Colour, shape: str, label: str, w_id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, name='ColoredRadioButton')[source]

Create a ColoredRadioButton.

Parameters:
  • parent – The parent wx.Window.

  • button_idx – The internal integer index of the button this index is emitted during a ColoredRadioEvent.

  • color – A wx.Colour, the color of the radio button.

  • shape – A string, the type of shape to draw. (circle, square, triangle, star, etc.)

  • label – A string, the text to set as the radio button’s label.

  • w_id – The wx ID.

  • pos – The position of the widget.

  • size – The size of the widget.

  • style – The style of the widget.

  • name – The name of the widget.

Methods

__init__(parent, button_idx, color, shape, label)

Create a ColoredRadioButton.

Attributes

ColoredRadioEvent

EVT_COLORED_RADIO

PADDING

button_index

_send_event(event)[source]

PRIVATE: Emits a colored radio event.