ooodev.adapter.awt.button_partial module

class ooodev.adapter.awt.button_partial.ButtonPartial(component, interface=com.sun.star.awt.XButton)[source]

Bases: object

Partial class for XButton.

Parameters:
  • component (XButton) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

add_action_listener(listener)[source]

Registers an event handler for button action events.

Return type:

None

Parameters:

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

remove_action_listener(listener)[source]

Un-registers an event handler for button action events.

Return type:

None

Parameters:

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

set_action_command(cmd)[source]

Sets a command string for pushing the button.

Return type:

None

Parameters:

cmd (str) –

set_label(label)[source]

Sets the label of the button.

Return type:

None

Parameters:

label (str) –