HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/internet/__pycache__/wxsupport.cpython-310.pyc
o

�b�@sBdZddlZe�d�ddlmZGdd�d�Zdd�ZdgZdS)	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@s eZdZdZdd�Zdd�ZdS)�wxRunnerz!Make sure GUI events are handled.cCs
||_dS)N)�app)�selfr�r�</usr/lib/python3/dist-packages/twisted/internet/wxsupport.py�__init__"s
zwxRunner.__init__cCs:|j��r|j��|j��s|j��t�d|j�dS)z^
        Execute pending WX events followed by WX idle events and
        reschedule.
        �{�G�z�?N)r�Pending�Dispatch�ProcessIdler�	callLater�run)rrrrr%s



�
zwxRunner.runN)�__name__�
__module__�__qualname__�__doc__rrrrrrrsrcCst|�}t�d|j�dS)z4Install the wxPython support, given a wxApp instancer	N)rrr
r)r�runnerrrr�install3sr)r�warnings�warn�twisted.internetrrr�__all__rrrr�<module>s