%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.9/site-packages/dasbus/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.9/site-packages/dasbus/__pycache__/signal.cpython-39.pyc

a

F
�`o�@sdgZGdd�de�ZdS)�Signalc@sBeZdZdZddgZdd�Zdd�Zdd	�Zd
d�Zdd
d�Z	dS)rz#Default representation of a signal.�
_callbacks�__weakref__cCs
g|_dS)zCreate a new signal.N)r)�self�r�1/usr/lib/python3.9/site-packages/dasbus/signal.py�__init__!szSignal.__init__cCs|j�|�dS)zNConnect to a signal.

        :param callback: a function to register
        N)r�append�r�callbackrrr�connect%szSignal.connectcOs|j|i|��dS�z'Emit a signal with the given arguments.N)�emit)r�args�kwargsrrr�__call__,szSignal.__call__cOs"|j��D]}||i|��q
dSr)r�copy)rrrr
rrrr
0szSignal.emitNcCs>|dur|j��dSz|j�|�Wnty8Yn0dS)aDisconnect from a signal.

        If no callback is specified, then all functions will
        be unregistered from the signal.

        If the specified callback isn't registered, do nothing.

        :param callback: a function to unregister or None
        N)r�clear�remove�
ValueErrorr	rrr�
disconnect7s

zSignal.disconnect)N)
�__name__�
__module__�__qualname__�__doc__�	__slots__rrrr
rrrrrrs�N)�__all__�objectrrrrr�<module>s

Zerion Mini Shell 1.0