balabit / signal-slot

Connecting mixin and superclass methods

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Signal-slot framework in Python

Overview

The signal-slot framework can be used to statically create method callbacks without using interface superclasses in all mixin classes in the class hierarchy.

Slots can be registered to be called when a signal is called. Only the slots belonging to the actual instance will be called.

Slots will be called

  • with the same arguments as the arguments of the signal;
  • at the end of the call of the signal;

The execution order of the slots is not defined.

Usage

There is a detailed example in the python module. Test it by python -m doctest -v.

Note

The framework is publicated "AS IS", further development is not guaranteed.

About

Connecting mixin and superclass methods

License:GNU Lesser General Public License v3.0


Languages

Language:Python 100.0%