| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/internet/__pycache__/ |
Upload File : |
U
W[S � @ sR d Z ddlZe�d� ddlmZ ddlmZ eG dd� d��Zdd � Zd gZ dS )
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.)� _oldStyle)�reactorc @ s e Zd ZdZdd� Zdd� ZdS )�wxRunnerz!Make sure GUI events are handled.c C s
|| _ d S )N)�app)�selfr � r �</usr/lib/python3/dist-packages/twisted/internet/wxsupport.py�__init__$ s zwxRunner.__init__c C s2 | j �� r| j �� q | j �� t�d| j� dS )z^
Execute pending WX events followed by WX idle events and
reschedule.
�{�G�z�?N)r ZPendingZDispatchZProcessIdler � callLater�run)r r r r r '