#NEWLINE# def __init__( self , iotype = '' ) : #NEWLINE# #INDENT# self . _parent_ref = None #NEWLINE# super ( VariableTree , self ) . __init__ ( ) #NEWLINE# self . _iotype = iotype #NEWLINE# for ( name , obj ) in self . __class__ . __dict__ . items ( ) : #NEWLINE# #INDENT# if isinstance ( obj , VariableTree ) : #NEWLINE# #INDENT# raise TypeError ( ( 'Nested VariableTrees are not supported, please wrap %s.%s in a VarTree' % ( self . __class__ . __name__ , name ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . install_callbacks ( ) #NEWLINE# for ( name , trait ) in self . class_traits ( ) . items ( ) : #NEWLINE# #INDENT# if ( not name . startswith ( '_' ) ) : #NEWLINE# #INDENT# self . on_trait_change ( self . _trait_modified , name )