#NEWLINE# def on_key_press( self , k , m ) : #NEWLINE# #INDENT# global current_transition , control_p #NEWLINE# if ( k == key . LEFT ) : #NEWLINE# #INDENT# current_transition = ( ( current_transition - 1 ) % len ( transition_list ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( k == key . RIGHT ) : #NEWLINE# #INDENT# current_transition = ( ( current_transition + 1 ) % len ( transition_list ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( k == key . ENTER ) : #NEWLINE# #INDENT# director . replace ( transition_list [ current_transition ] ( control_list [ ( ( control_p + 1 ) % len ( control_list ) ) ] , 1.25 ) ) #NEWLINE# control_p = ( ( control_p + 1 ) % len ( control_list ) ) #NEWLINE# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( k in ( key . LEFT , key . RIGHT ) ) : #NEWLINE# #INDENT# self . text_subtitle . text = transition_list [ current_transition ] . __name__