#NEWLINE# def attach( self , over ) : #NEWLINE# #INDENT# "attaches self to over frame if attaching would not create loop\n\n           detach from existing over\n           setting self.over to over\n           adding self to over.unders and\n           if no primary under for over make self overs's primary under\n\n        " #NEWLINE# if ( self . over == over ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if self . checkLoop ( over ) : #NEWLINE# #INDENT# raise excepting . ParameterError ( 'Attaching would create loop' , 'frame' , frame ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . detach ( ) #NEWLINE# over . unders . append ( over ) #NEWLINE# self . over = over