⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
gi
/
__pycache__
/
View File Name :
_signalhelper.cpython-312.pyc
fW$ H d dl mZ G d de Z G d de Zd Zd Zy) )_gic v e Zd ZdZ G d de ZddZddej dddddfdZ d dZ d Zd d Zd Z y)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 @ e Zd ZdZd Zd Zd Zd Zd Zd Z d Z d Zy )Signal.BoundSignalz Temporary binding object which can be used for connecting signals without specifying the signal name string to connect. c . t j | | S N)str__new__clsnameargskargss 2/usr/lib/python3/dist-packages/gi/_signalhelper.pyr zSignal.BoundSignal.__new__N s ;;sD)) c J t j | || _ || _ y r )r __init__signalgobj)selfr r s r r zSignal.BoundSignal.__init__Q s LL DKDIr c d| z S )NzBoundSignal("%s") r s r __repr__zSignal.BoundSignal.__repr__V s &--r c V | j j | j g|i |S )zCall the signals closure.)r funcr r r r s r __call__zSignal.BoundSignal.__call__Y s' #4;;##DII>>>>r c D | j j | |g|i |S )z^Same as GObject.Object.connect except there is no need to specify the signal name.r connect)r callbackr r s r r" zSignal.BoundSignal.connect] s' %499$$T8DdDeDDr c P | j j | dz |z |g|i |S )a Same as GObject.Object.connect except there is no need to specify the signal name. In addition concats "::
" to the signal name when connecting; for use with notifications like "notify" when a property changes. z::r! )r r# detailr r s r connect_detailedz#Signal.BoundSignal.connect_detailedb s0 %499$$TD[6%98TdTeTTr c : | j j | y)z"Same as GObject.Object.disconnect.N)r disconnect)r handler_ids r r( zSignal.BoundSignal.disconnectj s II ,r c T | j j t | g|i |S )z[Same as GObject.Object.emit except there is no need to specify the signal name.)r emitr r s r r+ zSignal.BoundSignal.emitn s' "499>>#d)