ooodev.adapter.awt.radio_button_partial module

class ooodev.adapter.awt.radio_button_partial.RadioButtonPartial(component, interface=com.sun.star.awt.XRadioButton)[source]

Bases: object

Partial class for XRadioButton.

Parameters:
  • component (XRadioButton) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.awt.XRadioButton)[source]

Constructor

Parameters:
  • component (XRadioButton) – UNO Component that implements com.sun.star.awt.XRadioButton interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XRadioButton.

Return type:

None

add_item_listener(listener)[source]

Registers a listener for item events.

Return type:

None

Parameters:

listener (com.sun.star.awt.XItemListener) –

get_state()[source]

Returns True if the button is checked, False otherwise.

Return type:

bool

remove_item_listener(listener)[source]

Un-registers a listener for item events.

Return type:

None

Parameters:

listener (com.sun.star.awt.XItemListener) –

set_label(label)[source]

Sets the label of the radio button.

Return type:

None

Parameters:

label (str) –

set_state(state)[source]

Sets the state of the radio button.

Return type:

None

Parameters:

state (bool) –