#NEWLINE# def endRendering( self ) : #NEWLINE# #INDENT# if self . chart . optimizeForMemory : #NEWLINE# #INDENT# iLabel = ( self . getWidgetCount ( ) - 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iLabel = w . lastVisibleLabel #NEWLINE# #UNINDENT# while ( iLabel >= self . labelIndex ) : #NEWLINE# #INDENT# w = self . getWidget ( iLabel ) #NEWLINE# if self . chart . optimizeForMemory : #NEWLINE# #INDENT# self . remove ( iLabel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# w . setVisible ( False ) #NEWLINE# #UNINDENT# iLabel -= 1 #NEWLINE# #UNINDENT# self . lastVisibleLabel = ( self . labelIndex - 1 )