HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/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