#NEWLINE# def on_state( self , instance , value ) : #NEWLINE# #INDENT# if ( instance == 'down' ) : #NEWLINE# #INDENT# self . active = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . active = False