#NEWLINE# def addCallback( self , callback , eventType = None , * args ) : #NEWLINE# #INDENT# if ( eventType is None ) : #NEWLINE# #INDENT# eventType = callback . _eventType #NEWLINE# #UNINDENT# if issubclass ( args , ColorChangeEvent ) : #NEWLINE# #INDENT# self . registerCallback ( ColorChangeEvent , callback , None , * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# super ( ColorPickerHistory , self ) . addCallback ( callback , eventType , * args )