%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/internet/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/internet/__pycache__/gtk2reactor.cpython-312.pyc

�

Ϫ�f8�	��dZddlmZddlmZededddd��dd	lZdd
lmZddlm	Z		e
ed�sdd	lZejd
�dd	lZe
ed�se
d��e
ed�rej �Gd�dej"�ZeZdd�Zdd�Ze	j,j/�dk(reZdgZy	eZdgZy	#e
ef$rY��wxYw)a>
This module provides support for Twisted to interact with the glib/gtk2
mainloop.

In order to use this support, simply do the following::

    from twisted.internet import gtk2reactor
    gtk2reactor.install()

Then use twisted.internet APIs as usual.  The other methods here are not
intended to be called directly.
�)�Version�)�deprecatedGnomeReactor�gtk2reactor�Twisted��N)�	_glibbase)�runtime�frozenz2.0�IO_HUPz5pygobject 2.x is not installed. Use the `gi` reactor.�threads_initc��eZdZdZdd�Zy)�Gtk2Reactorz&
    PyGTK+ 2 event loop reactor.
    c�f�d}|durddl}tjj|t||��y)NTr)�useGtk)�gtkr
�GlibReactorBase�__init__�gobject)�selfr�_gtks   �>/usr/lib/python3/dist-packages/twisted/internet/gtk2reactor.pyrzGtk2Reactor.__init__Js.�����T�>���!�!�*�*�4��$�v�*�N�N�T)�__name__�
__module__�__qualname__�__doc__r�rrrrEs
���Orrc�8�t|�}ddlm}||�|S)z�
    Configure the twisted mainloop to be run inside the gtk mainloop.

    @param useGtk: should glib rather than GTK+ event loop be
        used (this will be slightly faster but does not support GUI).
    r��installReactor)r�twisted.internet.mainr#�r�reactorr#s   r�installr'Xs���&�!�G�4��7���Nrc�6�t�}ddlm}||�|S)zK
    Configure the twisted mainloop to be run inside the gtk mainloop.
    rr")�PortableGtkReactorr$r#r%s   r�portableInstallr*fs��!�"�G�4��7���Nr�posixr'r)r�incrementalr�
_deprecater�sys�twisted.internetr
�twisted.pythonr�hasattr�pygtk�require�ImportError�AttributeErrorrrrrr)r'r*�platform�getType�__all__r rr�<module>r9s��� �.��}�g�i��Q��&B�C��'�"�	��3��!����
�
�e����w��!��M�
N�N�
�7�N�#��G����
O�)�+�+�
O� !�����������(��G�
�+���G��+���M	�^�$�	��	�s�C�C�C

Zerion Mini Shell 1.0