#NEWLINE# def __init__( self , useGtk = True ) : #NEWLINE# #INDENT# self . _simtag = None #NEWLINE# self . _reads = set ( ) #NEWLINE# self . _writes = set ( ) #NEWLINE# self . _sources = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# posixbase . PosixReactorBase . __init__ ( self ) #NEWLINE# if ( ( getattr ( gobject , 'pygtk_version' , ( ) ) >= ( 2 , 3 , 91 ) ) and ( not useGtk ) ) : #NEWLINE# #INDENT# self . context = gobject . main_context_default ( ) #NEWLINE# self . __pending = useGtk . context . pending #NEWLINE# self . __iteration = self . context . iteration #NEWLINE# self . loop = gobject . MainLoop ( ) #NEWLINE# self . __crash = self . loop . quit #NEWLINE# self . __run = self . loop . run #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# import gtk #NEWLINE# self . __pending = gtk . events_pending #NEWLINE# self . __iteration = gtk . main_iteration #NEWLINE# self . __crash = _our_mainquit #NEWLINE# self . __run = gtk . main