Galaxie EveLoop 0.1.5 documentation


Navigation:   | Index   | Search   | Top   | Up   | Prev   | Next   |
Table of Content: |glxeveloop.bus module |Bus |Bus.connect() |Bus.disconnect() |Bus.emit() |Bus.events_dispatch() |Bus.events_flush() |Bus.subscriptions |

© Copyright 2021-2024, Galaxie EveLoop Team all right reserved.

Top » glxeveloop » glxeveloop package » glxeveloop.bus module

glxeveloop.bus module

class glxeveloop.bus.Bus[source]

Bases: DebugProperty

Description:

The EventBusClient object is The bus it interconnects Widget

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_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 (list) – additional parameters arg1, arg2

events_flush(detailed_signal, args)[source]
property subscriptions: dict

Return the subscriptions list

Returns:

event buffer

Return type:

dict

Top » glxeveloop » glxeveloop package » glxeveloop.bus module

© Copyright 2021-2024, Galaxie EveLoop Team all right reserved.
This page is licensed under the GNU General Public License v3 or later (GPLv3+).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 7.3.7.