ooodev.adapter.adapter_base module

class ooodev.adapter.adapter_base.AdapterBase(trigger_args)[source]

Bases: Base, EventsPartial

Base Class for Listeners in the adapter name space.

Changed in version 0.27.2: Now inherits from EventsPartial.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

Any

__init__(trigger_args)[source]

Constructor

Parameters:

trigger_args (GenericArgs, Optional) – Args that are passed to events when they are triggered.

Return type:

None

clear()[source]

Removes all listeners for all events

New in version 0.13.7.

Return type:

None

off(event_name, cb)[source]

Removes a listener for an event

Parameters:
  • event_name (str) – Event Name

  • cb (EventCallback) – Callback event

Return type:

None

on(event_name, cb)[source]

Adds a listener for an event

Parameters:
  • event_name (str) – Event name to add listener for. Usually the name of the method being listened to such as windowOpened

  • cb (EventCallback) – Callback event.

Return type:

None