HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/internet/__pycache__/wxsupport.cpython-312.pyc
�

Ϫ�f��`�dZddlZejd�ddlmZGd�d�Zd�ZdgZy)	a�Old method of wxPython support for Twisted.

twisted.internet.wxreactor is probably a better choice.

To use::

    | # given a wxApp instance called myWxAppInstance:
    | from twisted.internet import wxsupport
    | wxsupport.install(myWxAppInstance)

Use Twisted's APIs for running and stopping the event loop, don't use
wxPython's methods.

On Windows the Twisted event loop might block when dialogs are open
or menus are selected.

Maintainer: Itamar Shtull-Trauring
�NzBwxsupport is not fully functional on Windows, wxreactor is better.)�reactorc��eZdZdZd�Zd�Zy)�wxRunnerz!Make sure GUI events are handled.c��||_y)N)�app)�selfrs  �</usr/lib/python3/dist-packages/twisted/internet/wxsupport.py�__init__zwxRunner.__init__"s	�����c��|jj�r5|jj�|jj�r�5|jj�t	j
d|j�y)z^
        Execute pending WX events followed by WX idle events and
        reschedule.
        �{�G�z�?N)r�Pending�Dispatch�ProcessIdler�	callLater�run)rs r	rzwxRunner.run%s\���h�h��� ��H�H�����h�h��� �	
���������$����)rN)�__name__�
__module__�__qualname__�__doc__r
r�rr	rrs��+��*rrc�Z�t|�}tjd|j�y)z4Install the wxPython support, given a wxApp instancer
N)rrrr)r�runners  r	�installr3s��
�c�]�F����d�F�J�J�'rr)r�warnings�warn�twisted.internetrrr�__all__rrr	�<module>rs9��
�&�
��
�
�R�S�$�*�*�((��+�r