#NEWLINE# def __delitem__( self , index ) : #NEWLINE# #INDENT# if isinstance ( index , slice ) : #NEWLINE# #INDENT# indices = range ( * index . indices ( len ( self ) ) ) #NEWLINE# for i in indices : #NEWLINE# #INDENT# self [ i ] . _qtWidget ( ) . setParent ( None ) #NEWLINE# self [ i ] . _applyVisibility ( ) #NEWLINE# #UNINDENT# del self . __widgets [ index ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __widgets [ index ] . _qtWidget ( ) . setParent ( None ) #NEWLINE# self . __widgets [ index ] . _applyVisibility ( ) #NEWLINE# del self . __widgets [ index ]