Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/wxreactor.pyc |
ó [³XMc @ sÍ d Z d d l Z y d d l m Z m Z m Z Wn- e k ra d d l m Z m Z m Z n Xd d l m Z m Z d d l m Z d e f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z d g Z d S( sa 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. iÿÿÿÿN( t PySimpleAppt CallAftert Timer( t wxPySimpleAppt wxCallAftert wxTimer( t logt runtime( t _threadedselectt ProcessEventsTimerc B s e Z d Z d „ Z d „ Z RS( sÊ Timer that tells wx to process pending events. This is necessary on OS X, 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 j | ƒ | | _ d S( N( R t __init__t wxapp( t selfR ( ( s>