Class t.i.g.GtkReactor(posixbase.PosixReactorBase):

Part of twisted.internet.gtkreactor View Source View In Hierarchy

Implements interfaces: twisted.internet.interfaces.IReactorFDSet

GTK+ event loop reactor.
Instance Variables_readsA dictionary mapping FileDescriptor instances to gtk INPUT_READ watch handles.
_writesA dictionary mapping FileDescriptor instances to gtk INTPUT_WRITE watch handles.
_simtagA gtk timeout handle for the next simulate call.
Method __init__ Initialize the file descriptor tracking dictionaries and the base
Method addReader I add reader to the set of file descriptors to get read events for.
Method addWriter I add writer to the set of file descriptors to get write events for.
Method getReaders Return the list of file descriptors currently monitored for input
Method getWriters Return the list file descriptors currently monitored for output events
Method removeAll Remove all readers and writers.
Method removeReader Removes an object previously added with addReader.
Method removeWriter Removes an object previously added with addWriter.
Method doIterationTimeout Undocumented
Method doIteration Undocumented
Method crash Undocumented
Method run Undocumented
Method callback Undocumented
Method simulate Run simulation loops and reschedule callbacks.
Method _readAndWrite Undocumented
def __init__(self): (source)
Initialize the file descriptor tracking dictionaries and the base class.
def addReader(self, reader): (source)
I add reader to the set of file descriptors to get read events for.
ParametersreaderAn IReadDescriptor provider that will be checked for read events until it is removed from the reactor with removeReader.
ReturnsNone.
def addWriter(self, writer): (source)
I add writer to the set of file descriptors to get write events for.
ParameterswriterAn IWriteDescriptor provider that will be checked for read events until it is removed from the reactor with removeWriter.
ReturnsNone.
def getReaders(self): (source)
Return the list of file descriptors currently monitored for input events by the reactor.
Returnsthe list of file descriptors monitored for input events. (type: list of IReadDescriptor )
def getWriters(self): (source)
Return the list file descriptors currently monitored for output events by the reactor.
Returnsthe list of file descriptors monitored for output events. (type: list of IWriteDescriptor )
def removeAll(self): (source)
Remove all readers and writers.

Should not remove reactor internal reactor connections (like a waker).

ReturnsA list of IReadDescriptor and IWriteDescriptor providers which were removed.
def removeReader(self, reader): (source)
Removes an object previously added with addReader.
ReturnsNone.
def removeWriter(self, writer): (source)
Removes an object previously added with addWriter.
ReturnsNone.
def doIterationTimeout(self, *args): (source)
Undocumented
def doIteration(self, delay): (source)
Undocumented
def crash(self): (source)
Undocumented
def run(self, installSignalHandlers=1): (source)
Undocumented
def _readAndWrite(self, source, condition): (source)
Undocumented
def callback(self, source, condition): (source)
Undocumented
def simulate(self): (source)
Run simulation loops and reschedule callbacks.
API Documentation for Twisted, generated by pydoctor at 2009-11-24 22:07:21.