Ë /ïOýEiÐèãóH—ddlmZGd„de«ZGd„de«Zd„Zd„Zy) é)Ú_gicóv—eZdZdZGd„de«Zd d„Zddejdddddfd„Z d d„Z d „Z d d „Z d „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ó@—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z y ) úSignal.BoundSignalz‘ Temporary binding object which can be used for connecting signals without specifying the signal name string to connect. có.—tj||«S©N)ÚstrÚ__new__©ÚclsÚnameÚargsÚkargss ú5/usr/lib/python3.12/site-packages/gi/_signalhelper.pyr zSignal.BoundSignal.__new__Ns€Ü—;‘;˜s DÓ)Ð )ócóJ—tj|«||_||_yr )r Ú__init__ÚsignalÚgobj)Úselfrrs rrzSignal.BoundSignal.__init__Qs€Ü �L‰L˜Ô Ø ˆDŒK؈D�Ircó —d|zS)NzBoundSignal("%s")©©rs rÚ__repr__zSignal.BoundSignal.__repr__Vs €Ø&¨Ñ-Ð -rcóV—|jj|jg|¢­i|¤ŽS)zCall the signals closure.)rÚfuncr©rrrs rÚ__call__zSignal.BoundSignal.__call__Ys'€à#�4—;‘;×#Ñ# D§I¡IÐ>°Ò>¸Ñ>Ð >rcóD—|jj||g|¢­i|¤ŽS)z^Same as GObject.Object.connect except there is no need to specify the signal name.©rÚconnect)rÚcallbackrrs rr"zSignal.BoundSignal.connect]s'€ð%�4—9‘9×$Ñ$ T¨8ÐD°dÒD¸eÑDÐ DrcóP—|jj|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!)rr#Údetailrrs rÚconnect_detailedz#Signal.BoundSignal.connect_detailedbs0€ð %�4—9‘9×$Ñ$ T¨D¡[°6Ñ%9¸8ÐTÀdÒTÈeÑTÐ Trcó:—|jj|«y)z"Same as GObject.Object.disconnect.N)rÚ disconnect)rÚ handler_ids rr(zSignal.BoundSignal.disconnectjs€à �I‰I× Ñ  Õ ,rcóT—|jjt|«g|¢­i|¤ŽS)z[Same as GObject.Object.emit except there is no need to specify the signal name.)rÚemitr rs rr+zSignal.BoundSignal.emitns'€ð"�4—9‘9—>‘>¤# d£)Ð<¨dÒ<°eÑ<Ð Ø—=‘=ˆDÜ�{‰{˜3 Ó%Ð%rNc ó—|€ t|«r|}|r|s |j}tj|«|r|s|st |«\}}|€ t «}||_||_||_||_ ||_||_ ||_ yr ) r3r/r rÚget_signal_annotationsÚtuplerÚflagsÚ return_typeÚ arg_typesÚ accumulatorÚ accu_data) rrrr7r8r9Údocr:r;s rrzSignal.__init__xs‚€à ˆ<œH TœN؈Dá ™Ø—,‘,ˆCä � ‰ �TÔá ™© Ü%;¸DÓ%AÑ "ˆK˜Ø Ð Ü›ˆIàˆŒ ؈Œ Ø&ˆÔØ"ˆŒØˆŒ Ø&ˆÔØ"ˆ�rcó.—|€|S|j||«S)z:Returns a BoundSignal when accessed on an object instance.)r0)rÚinstanceÚowners rÚ__get__zSignal.__get__�s €à Р؈KØ×Ñ  hÓ/Ð/rc óT—t|tj«r|j|g|¢­i|¤Žyt |«r t |«}n |j }t |«|||j|j|j|j|j|j¬«S)zmAllows for instantiated Signals to be used as a decorator or calling of the underlying signal method.©rrr7r8r9r<r:r;N) Ú isinstancerÚGObjectrr r,Útyper7r8r9r/r:r;)rÚobjrrrs rrzSignal.__call__•s‹€ô �cœ3Ÿ;™;Ô 'Ø ˆD�I‰I�cÐ *˜DÒ * EÓ *ô�4Œyܘ4“y‘à—|‘|�à”4˜“: 4¨c¸¿¹Ø*.×*:Ñ*:ÀdÇnÁnØ"&§,¡,¸D×NÑ>NÐPT×P^ÑP^Ð_Ð_r)r1r )r,r-r.r/r r0r rÚSIGNAL_RUN_FIRSTrr@rrIrKrrrrrsQ„ñ0ôb(=�cô(=óT&ð  T°×1EÑ1EØ!¨T°rÀtÐW[ó#ó.0ò hó(dó`rrcó—eZdZdZd„Zy)ÚSignalOverridea&Specialized sub-class of Signal which can be used as a decorator for overriding existing signals on GObjects. :Example: .. code-block:: python class MyWidget(Gtk.Widget): @GObject.SignalOverride def configure_event(self): pass có—y)zReturns the string 'override'.Úoverriderrs rrKzSignalOverride.get_signal_argsÂs€àrN)r,r-r.r/rKrrrrNrNµs „ñ órrNcó܇—t«}d}t|d«rPddl}|j|«Štˆfd„‰jD««}d‰j vr‰j d}||fS)aAttempt pulling python 3 function annotations off of 'func' for use as a signals type information. Returns an ordered nested tuple of (return_type, (arg_type1, arg_type2, ...)). If the given function does not have annotations then (None, tuple()) is returned. NÚ__annotations__éc3óX•K—|]!}|‰jvr‰j|–—Œ#y­wr )Ú annotations)Ú.0ÚargÚspecs €rÚ z)get_signal_annotations..Ôs0øèø€ð6¹9°CØ  D×$4Ñ$4Ñ4ð×*Ñ*¨3Õ/¹9ùsƒ'*Úreturn)r6ÚhasattrÚinspectÚgetfullargspecrrU)rr9r8r\rXs @rr5r5Çsrø€ô “€IØ€KäˆtÐ&Ô'ãØ×%Ñ% dÓ+ˆÜó6¸4¿9º9ó6ó6ˆ à �t×'Ñ'Ñ 'Ø×*Ñ*¨8Ñ4ˆKà ˜ Ð !Ð!rcó—|jjdi«}i}|jj«D]m\}}t|t«sŒt |«}|s |}|j |«}t|||«||vrtd|z«‚|||<|j«||<Œo||_ |j«D]K\}}|j€Œd|jdd«z}t||«rŒ5t|||j«ŒMy)z”Adds Signal instances on a GObject derived class into the '__gsignals__' dictionary to be picked up and registered as real GObject signals. Ú __gsignals__z(Signal "%s" has already been registered.NÚdo_Ú-Ú_)Ú__dict__ÚgetÚitemsrCrr rIÚsetattrÚ ValueErrorrKr_rÚreplacer[)r ÚgsignalsÚ newsignalsrrÚ signalNameÚfuncNames rÚinstall_signalsrmÜs€ð�|‰|×Ñ °Ó3€HØ€JØŸ ™ ×*Ñ*Ö,‰ ˆˆfÜ �fœfÕ %ܘV›ˆJñØ!� ØŸ™ TÓ*�ܘ˜T 6Ô*ؘXÑ%Ü Ð!KÈdÑ!RÓSÐSØ%+ˆJ�zÑ "Ø#)×#9Ñ#9Ó#;ˆH�ZÒ ð-ð €CÔð#×(Ñ(Ö*‰ ˆˆfØ �;‰;Ñ "ؘtŸ|™|¨C°Ó5Ñ5ˆHܘ3 Õ)ܘ˜X v§{¡{Õ3ñ +rN)r1rr rrNr5rmrrrÚrns1ðõ(ô[`ˆSô[`ô|�Vôò$"ó*4r