/usr/lib/python3/dist-packages/twisted/internet/__pycache__
Edit: /usr/lib/python3/dist-packages/twisted/internet/__pycache__/wxreactor.cpython-310.pyc (4897B)
o
b @ s d Z ddlmZmZ zddlmZmZm Z
W n ey) ddlmZmZm
Z
Y nw ddl
mZ ddlmZmZ G dd de
ZG d d
d
ejZdd ZdgZd
S )aa
This module provides wxPython event loop support for Twisted.
In order to use this support, simply do the following::
| from twisted.internet import wxreactor
| wxreactor.install()
Then, when your root wxApp has been created::
| from twisted.internet import reactor
| reactor.registerWxApp(yourApp)
| reactor.run()
Then use twisted.internet APIs as usual. Stop the event loop using
reactor.stop(), not yourApp.ExitMainLoop().
IMPORTANT: tests will fail when run under this reactor. This is
expected and probably does not reflect on the reactor's ability to run
real applications.
)EmptyQueue) CallAfterPySimpleAppTimer)
wxPySimpleAppwxCallAfterwxTimer)_threadedselect)logruntimec @ s e Zd ZdZdd Zdd ZdS )ProcessEventsTimerz
Timer that tells wx to process pending events.
This is necessary on macOS, probably due to a bug in wx, if we want
wxCallAfters to be handled when modal dialogs, menus, etc. are open.
c C s t | || _d S N)r __init__wxappselfr r