403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/internet/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyc
ó
[³XMc@sbdZddlZyddlZejdƒWnek
rDZnXddlZddlmZddl	m
Z
mZmZm
Z
ddlmZddlmZmZe
jdd	d
dƒZdZd
ejfd„ƒYZdejfd„ƒYZd„Zejeeedƒd„ZejeeedƒejjƒdkrUeZndgZ dS(s>
This module provides support for Twisted to interact with the PyGTK mainloop.

In order to use this support, simply do the following::

    |  from twisted.internet import gtkreactor
    |  gtkreactor.install()

Then use twisted.internet APIs as usual.  The other methods here are not
intended to be called directly.
iÿÿÿÿNs1.2(t
implements(tlogtruntimet	deprecatetversions(t
IReactorFDSet(t	posixbaset
selectreactortTwistedi
iishAll new applications should be written with gtk 2.x, which is supported by twisted.internet.gtk2reactor.t
GtkReactorcBs¾eZdZeeƒejeeedƒd„Z	d„Z
d„Zd„Zd„Z
d„Zd„Zd	„ZdZd
„Zd„Zd„Zd
d„Zd„Zd„Zd„ZRS(sG
    GTK+ event loop reactor.

    @ivar _reads: A dictionary mapping L{FileDescriptor} instances to gtk INPUT_READ
        watch handles.

    @ivar _writes: A dictionary mapping L{FileDescriptor} instances to gtk
        INTPUT_WRITE watch handles.

    @ivar _simtag: A gtk timeout handle for the next L{simulate} call.
    R	cCs/d|_i|_i|_tjj|ƒdS(sb
        Initialize the file descriptor tracking dictionaries and the base
        class.
        N(tNonet_simtagt_readst_writesRtPosixReactorBaset__init__(tself((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyR:s			cCs;||jkr7tj|tjj|jƒ|j|<ndS(N(Rtgtkt	input_addtGDKt
INPUT_READtcallback(Rtreader((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyt	addReaderEscCs;||jkr7tj|tjj|jƒ|j|<ndS(N(R
RRRtINPUT_WRITER(Rtwriter((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyt	addWriterIscCs
|jjƒS(N(Rtkeys(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyt
getReadersNscCs
|jjƒS(N(R
R(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyt
getWritersRscCs|j|j|jƒS(N(t
_removeAllRR
(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyt	removeAllVscCs4||jkr0tj|j|ƒ|j|=ndS(N(RRtinput_remove(RR((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pytremoveReaderZscCs4||jkr0tj|j|ƒ|j|=ndS(N(R
RR (RR((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pytremoveWriter_scGs
d|_dS(Ni(R
tdoIterationTimer(Rtargs((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pytdoIterationTimeoutfs	cCs¡tjddddd|ƒtjƒr9tjdƒdS|dkrIdStjt|dƒ|jƒ|_tjdƒ|jrtj	|jƒd|_ndS(	Ntchanneltsystemteventt	iterationtreactoriièi(RtmsgRtevents_pendingt
mainiterationttimeout_addtintR%R#ttimeout_removeR
(Rtdelay((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pytdoIterationis

	cCstjj|ƒtjƒdS(N(RRtcrashRtmainquit(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyR3€sicCs1|jd|ƒtjd|jƒtjƒdS(NtinstallSignalHandlersi(tstartRunningRR.tsimulatetmainloop(RR5((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pytrun„scCsád}d}yw|tjj@r7|jƒ}|j}n|r‚|tjj@r‚|jr‚|j|kr‚|jƒ}|j}q‚nWn2tj	ƒd}t
jd|ƒt
jƒnX|rÝ|j
||||jkƒndS(NisError In %s(R
RRRtdoReadRtdisconnectedtdoWritetsystexc_infoRR+tdeferrt_disconnectSelectable(Rtsourcet	conditiontwhytdidRead((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyt
_readAndWrite‰s 
cCs'tj||j||ƒ|jƒdS(Ni(RtcallWithLoggerRER7(RRARB((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyR§s
cCs||jdk	r"tj|jƒn|jƒt|jƒdƒ}|dkrVd}ntjt|dƒ|j	ƒ|_dS(s7Run simulation loops and reschedule callbacks.
        gš™™™™™¹?iòN(
RR
RR0trunUntilCurrenttminttimeoutR.R/R7(RRI((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyR7¬s
	N(t__name__t
__module__t__doc__RRRtdeprecatedModuleAttributetdeprecatedSincetdeprecationMessageRRRRRRR!R"R
R#R%R2R3R9RERR7(((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyR	)s(

													tPortableGtkReactorcBsHeZdZdZejeeedƒd„Z	dd„Z
d„ZRS(sªReactor that works on Windows.

    input_add is not supported on GTK+ for Win32, apparently.

    @ivar _simtag: A gtk timeout handle for the next L{simulate} call.
    RPcCstjj|ƒtjƒdS(N(Rt
SelectReactorR3RR4(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyR3ÇsicCs(|jd|ƒ|jƒtjƒdS(NR5(R6R7RR8(RR5((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyR9Ës
cCsv|jdk	r"tj|jƒn|jƒt|jƒdƒ}|dkrVd}ntj|d|jƒ|_dS(s7Run simulation loops and reschedule callbacks.
        gš™™™™™¹?iòN(	RR
RR0titerateRHRIR.R7(RRI((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyR7Ðs
	N(RJRKRLR
RRRMRNROR3R9R7(((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyRP»s
	cCs'tƒ}ddlm}||ƒ|S(sFConfigure the twisted mainloop to be run inside the gtk mainloop.
    iÿÿÿÿ(tinstallReactor(R	ttwisted.internet.mainRS(R*RS((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pytinstallßs	
RUcCs'tƒ}ddlm}||ƒ|S(sFConfigure the twisted mainloop to be run inside the gtk mainloop.
    iÿÿÿÿ(RS(RPRTRS(R*RS((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pytportableInstallës	
RVtposix(!RLR=tpygtktrequiretImportErrortAttributeErrorRtzope.interfaceRttwisted.pythonRRRRttwisted.internet.interfacesRttwisted.internetRRtVersionRNRORR	RQRPRURMRJRVtplatformtgetTypet__all__(((s?/usr/lib/python2.7/dist-packages/twisted/internet/gtkreactor.pyt<module>s0"’$	
	
	

Youez - 2016 - github.com/yon3zu
LinuXploit