glxeveloop.bus module

class glxeveloop.bus.Bus[source]

Bases: glxeveloop.properties.debug.DebugProperty

Description

The EventBusClient object is The bus it interconnect Widget

property subscriptions

Return the subscriptions list

Returns

event buffer

Return type

dict

connect(detailed_signal: object, handler: object, *args: object)[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 (tuple) – 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

static emit(detailed_signal, args)[source]

Emit signal in direction to the Mainloop.

Parameters
  • detailed_signal (str) – a string containing the signal name

  • args (dict) – additional parameters arg1, arg2

events_flush(detailed_signal, args)[source]
events_dispatch(detailed_signal, args)[source]

Flush Mainloop event to Child’s father’s for a Widget’s recursive event dispatch

Parameters
  • detailed_signal (str) – a string containing the signal name

  • args – additional parameters arg1, arg2