#NEWLINE# def mode_set_cb( self , bm , mode , mtype , fitsimage ) : #NEWLINE# #INDENT# if ( self . active is None ) : #NEWLINE# #INDENT# ( self . active , bd ) = self . _get_view ( ) #NEWLINE# #UNINDENT# if ( mode != self . active ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# self . _update_toolbar_state ( fitsimage ) #NEWLINE# return True