t.i.g.Gtk2Reactor(posixbase.PosixReactorBase) : class documentation

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

Known subclasses: twisted.internet.glib2reactor.Glib2Reactor, twisted.manhole.gladereactor.GladeReactor

Implements interfaces: twisted.internet.interfaces.IReactorFDSet

GTK+-2 event loop reactor.
Instance Variables_sourcesA dictionary mapping FileDescriptor instances to gtk watch handles.
_readsA set of FileDescriptor instances currently monitored for reading.
_writesA set of FileDescriptor instances currently monitored for writing.
_simtagA gtk timeout handle for the next simulate call.
Method __init__ Undocumented
Method input_add Undocumented
Method addReader Add a FileDescriptor for monitoring of data available to read.
Method addWriter Add a FileDescriptor for monitoring ability to write data.
Method getReaders Retrieve the list of current FileDescriptor monitored for reading.
Method getWriters Retrieve the list of current FileDescriptor monitored for writing.
Method removeAll Remove monitoring for all registered FileDescriptors.
Method removeReader Stop monitoring the given FileDescriptor for reading.
Method removeWriter Stop monitoring the given FileDescriptor for writing.
Method doIterationTimeout Undocumented
Method doIteration Undocumented
Method crash Undocumented
Method run Undocumented
Method callback Undocumented
Method simulate Run simulation loops and reschedule callbacks.
Method _handleSignals Undocumented
Method _add Add the given FileDescriptor for monitoring either for reading or
Method _remove Remove monitoring the given FileDescriptor for either reading or
Method _doReadOrWrite Undocumented
def __init__(self, useGtk=True): (source)
Undocumented
def _handleSignals(self): (source)
Undocumented
def input_add(self, source, condition, callback): (source)
Undocumented
def _add(self, source, primary, other, primaryFlag, otherFlag): (source)
Add the given FileDescriptor for monitoring either for reading or writing. If the file is already monitored for the other operation, we delete the previous registration and re-register it for both reading and writing.
def addReader(self, reader): (source)
Add a FileDescriptor for monitoring of data available to read.
def addWriter(self, writer): (source)
Add a FileDescriptor for monitoring ability to write data.
def getReaders(self): (source)
Retrieve the list of current FileDescriptor monitored for reading.
def getWriters(self): (source)
Retrieve the list of current FileDescriptor monitored for writing.
def removeAll(self): (source)
Remove monitoring for all registered FileDescriptors.
def _remove(self, source, primary, other, flags): (source)
Remove monitoring the given FileDescriptor for either reading or writing. If it's still monitored for the other operation, we re-register the FileDescriptor for only that operation.
def removeReader(self, reader): (source)
Stop monitoring the given FileDescriptor for reading.
def removeWriter(self, writer): (source)
Stop monitoring the given FileDescriptor for writing.
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 _doReadOrWrite(self, source, condition, faildict={error.ConnectionDone:failure.Failure(error.ConnectionDone()),error.ConnectionLost:failure.Failure(error.ConnectionLost()),}): (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 2011-04-03 00:32:03.