glxaudio.EventBus module

class glxaudio.EventBus.EventBusClient[source]

Bases: object

Description:

The EventBusClient object is The bus it interconnect Widget Application is a special case where the Application.dispatch() rewrite the EventBusClient.dispatch().

connect(detailed_signal, handler, args=None)[source]

The connect() method adds a function or method (handler) to the end of the event list for the named detailed_signal but before the default class signal handler. An optional set of parameters may be specified after the handler parameter. These will all be passed to the signal handler when invoked.

Parameters:
  • detailed_signal (str) – a string containing the signal name
  • handler (handler) – a function handler
  • args (list) – additional parameters arg1, arg2
disconnect(detailed_signal, handler)[source]

The disconnect() method removes the signal handler with the specified handler from the list of signal handlers for the object.

Parameters:
  • detailed_signal (str) – a string containing the signal name
  • handler (handler) – a function handler
emit(detailed_signal, data=None)[source]

Every Object emit signal in direction to the Application.

Parameters:
  • detailed_signal (str) – a string containing the signal name
  • data (dict) – additional parameters arg1, arg2
events_dispatch(detailed_signal, args=None)[source]

Inform every children or child about a event and execute a eventual callback

Parameters:
  • detailed_signal (str) – a string containing the signal name
  • args (list) – additional parameters arg1, arg2
events_flush(detailed_signal, args=None)[source]
events_list
get_application()[source]

Get the Galaxie-Curses Application as set by set_application()

Returns:a Galaxie-Curses Application or None is not set
Return type:Galaxie-Curses Application or None
get_events_list()[source]

Return teh event list

Returns:the event list under a dictionary
Return type:dict
set_application(application=None)[source]

Set a Galaxie Curses Application

Parameters:application (GLXCurses.application) – a Galaxie-Curses Application