| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/gi/__pycache__/ |
Upload File : |
�
�� ^W$ � �V � d dl mZ G d� de� � Z G d� de� � Zd� Zd� ZdS ) � )�_gic �t � e Zd ZdZ G d� de� � Zdd�Zddej dddddfd�Z d
d�Z
d � Zd
d
�Zd� Z
dS )�Signala� Object which gives a nice API for creating and binding signals.
:param name:
Name of signal or callable closure when used as a decorator.
:type name: str or callable
:param callable func:
Callable closure method.
:param GObject.SignalFlags flags:
Flags specifying when to run closure.
:param type return_type:
Return type of the Signal.
:param list arg_types:
List of argument types specifying the signals function signature
:param str doc:
Documentation of signal object.
:param callable accumulator:
Accumulator method with the signature:
func(ihint, return_accu, handler_return, accu_data) -> boolean
:param object accu_data:
User data passed to the accumulator.
:Example:
.. code-block:: python
class Spam(GObject.Object):
velocity = 0
@GObject.Signal
def pushed(self):
self.velocity += 1
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST)
def pulled(self):
self.velocity -= 1
stomped = GObject.Signal('stomped', arg_types=(int,))
@GObject.Signal
def annotated_signal(self, a:int, b:str):
"Python3 annotation support for parameter types.
def on_pushed(obj):
print(obj)
spam = Spam()
spam.pushed.connect(on_pushed)
spam.pushed.emit()
c �B � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
S )�Signal.BoundSignalz�
Temporary binding object which can be used for connecting signals
without specifying the signal name string to connect.
c �8 � t � | |� � S �N)�str�__new__��cls�name�args�kargss �2/usr/lib/python3/dist-packages/gi/_signalhelper.pyr zSignal.BoundSignal.__new__N s � ��;�;�s�D�)�)�)� c �V � t � | � � || _ || _ d S r )r
�__init__�signal�gobj)�selfr r s r r zSignal.BoundSignal.__init__Q s&