Module signalslot :: Class Signal
[hide private]
[frames] | no frames]

Class Signal

source code

object --+
         |
        Signal

Simple class to emit signals to connected callable receivers.

Instance Methods [hide private]
 
__init__(self)
Instantiate a new object
source code
 
connect(self, c)
Connect a callable as receiver for the signal
source code
 
disconnect(self, c)
Disconnect the callable from receiving the signal
source code
 
disconnectAll(self)
Disconnects all signal receivers
source code
 
emit(self, *args, **kwargs)
Fires the signal to all connected receivers
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Instantiate a new object

Overrides: object.__init__

connect(self, c)

source code 

Connect a callable as receiver for the signal

Parameters:
  • c (Callable) - signal receiver

disconnect(self, c)

source code 

Disconnect the callable from receiving the signal

Parameters:
  • c (Callable) - signal receiver