HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
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