/usr/lib/python3/dist-packages/twisted/internet/__pycache__
NameSizeModeActions
abstract.cpython-310.pyc176100644editdlrm
address.cpython-310.pyc56700644editdlrm
asyncioreactor.cpython-310.pyc99550644editdlrm
base.cpython-310.pyc408700644editdlrm
cfreactor.cpython-310.pyc156380644editdlrm
default.cpython-310.pyc11720644editdlrm
defer.cpython-310.pyc687400644editdlrm
endpoints.cpython-310.pyc733480644editdlrm
epollreactor.cpython-310.pyc69210644editdlrm
error.cpython-310.pyc150360644editdlrm
fdesc.cpython-310.pyc31730644editdlrm
gireactor.cpython-310.pyc40980644editdlrm
glib2reactor.cpython-310.pyc14680644editdlrm
gtk2reactor.cpython-310.pyc25890644editdlrm
gtk3reactor.cpython-310.pyc18690644editdlrm
inotify.cpython-310.pyc108480644editdlrm
interfaces.cpython-310.pyc1173770644editdlrm
kqreactor.cpython-310.pyc85820644editdlrm
main.cpython-310.pyc9750644editdlrm
pollreactor.cpython-310.pyc59600644editdlrm
posixbase.cpython-310.pyc234570644editdlrm
process.cpython-310.pyc286110644editdlrm
protocol.cpython-310.pyc306580644editdlrm
pyuisupport.cpython-310.pyc9730644editdlrm
reactor.cpython-310.pyc19200644editdlrm
selectreactor.cpython-310.pyc53030644editdlrm
serialport.cpython-310.pyc27780644editdlrm
ssl.cpython-310.pyc89290644editdlrm
stdio.cpython-310.pyc9840644editdlrm
task.cpython-310.pyc321410644editdlrm
tcp.cpython-310.pyc466840644editdlrm
testing.cpython-310.pyc333470644editdlrm
threads.cpython-310.pyc42080644editdlrm
tksupport.cpython-310.pyc21690644editdlrm
udp.cpython-310.pyc165840644editdlrm
unix.cpython-310.pyc195310644editdlrm
utils.cpython-310.pyc93270644editdlrm
win32eventreactor.cpython-310.pyc138810644editdlrm
wxreactor.cpython-310.pyc48970644editdlrm
wxsupport.cpython-310.pyc16930644editdlrm
_baseprocess.cpython-310.pyc22160644editdlrm
_dumbwin32proc.cpython-310.pyc116270644editdlrm
_glibbase.cpython-310.pyc117910644editdlrm
_idna.cpython-310.pyc14940644editdlrm
_newtls.cpython-310.pyc87140644editdlrm
_pollingfile.cpython-310.pyc84760644editdlrm
_posixserialport.cpython-310.pyc21910644editdlrm
_posixstdio.cpython-310.pyc53090644editdlrm
_producer_helpers.cpython-310.pyc38670644editdlrm
_resolver.cpython-310.pyc84020644editdlrm
_signals.cpython-310.pyc28240644editdlrm
_sslverify.cpython-310.pyc684120644editdlrm
_threadedselect.cpython-310.pyc117550644editdlrm
_win32serialport.cpython-310.pyc37070644editdlrm
_win32stdio.cpython-310.pyc40240644editdlrm
__init__.cpython-310.pyc6080644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/internet/__pycache__/wxreactor.cpython-310.pyc (4897B)
o b@sdZddlmZmZz ddlmZmZm Z Wne y)ddl mZmZm Z Ynwddl mZddlmZmZGddde ZGd d d ejZd d Zd gZd 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) CallAfter PySimpleAppTimer) wxPySimpleApp wxCallAfterwxTimer)_threadedselect)logruntimec@s eZdZdZddZddZdS)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. cCst|||_dSN)r __init__wxappselfrrzddl}||j|jWn tyYdSw|dS)zO wx sometimes removes our own signal handlers, so re-add them. rN)signalSIGINTdefault_int_handler ImportError_handleSignals)rrrrr_installSignalHandlersAgainLs  z%WxReactor._installSignalHandlersAgaincCs |jrdSd|_tj|dS)z# Stop the reactor. NT) _stoppingr ThreadedSelectReactorstoprrrrr&YszWxReactor.stopcCs&t|dr t|dS|j|dS)zm Schedule function to run in main wx/Twisted thread. Called by the select() thread. rN)hasattrr _postQueueput)rfrrr_runInMainThreadbs  zWxReactor._runInMainThreadcCst|dr |jdSdS)z Stop the wx event loop if it hasn't already been stopped. Called during Twisted event loop shutdown. rN)r'r ExitMainLooprrrr_stopWxns zWxReactor._stopWxTcst_tdstdtjj|d|r% dj  ddj  ddfddt jrGtj}|d jj}`js| z jjd d }Wn tyoYq\w|d urvd Sz|Wn tytYnwq]d S)z$ Start the reactor. rzMregisterWxApp() was not called on reactor, registering my own wxApp instance.)installSignalHandlersraftershutdowncs jdSr)r(r)rrrrs zWxReactor.run..g{Gz?)timeoutN)rr(r'r msgrr interleaver+ callLaterr#addSystemEventTriggerr-r platformisMacOSXr rStartMainLoopr$r&rgetr BaseExceptionerr)rr.trr*rrrrunwsN          z WxReactor.runN)T) rrrrr$rr#r&r+r-rArrrrr=s    rcCst}ddlm}|||S)zP Configure the twisted mainloop to be run inside the wxPython mainloop. r)installReactor)rtwisted.internet.mainrB)reactorrBrrrinstalls rEN)rqueuerrwxrrrrrr r! wxPython.wxtwisted.internetr twisted.pythonr r r r%rrE__all__rrrrs  t