#NEWLINE# def menuhandler( self , action ) : #NEWLINE# #INDENT# if ( action == 'Toggle' ) : #NEWLINE# #INDENT# self . toggle_selection ( 0 ) #NEWLINE# #UNINDENT# if ( action == 'Include' ) : #NEWLINE# #INDENT# self . toggle_selection ( 1 ) #NEWLINE# #UNINDENT# if ( action == 'Exclude' ) : #NEWLINE# #INDENT# self . toggle_selection ( 2 ) #NEWLINE# #UNINDENT# if ( action == 'Recursive Include' ) : #NEWLINE# #INDENT# self . toggle_selection ( 3 ) #NEWLINE# #UNINDENT# if ( action == 'Recursive Exclude' ) : #NEWLINE# #INDENT# self . toggle_selection ( 4 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( action == 'Clear Includes' ) : #NEWLINE# #INDENT# self . fileops . includes . clear ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( action == 'Clear Excludes' ) : #NEWLINE# #INDENT# self . fileops . excludes . clear ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( action == 'Clear Both' ) : #NEWLINE# #INDENT# self . fileops . includes . clear ( ) #NEWLINE# self . fileops . excludes . clear ( ) #NEWLINE# self . update ( 2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( action == 'Set/Unset CWD' ) : #NEWLINE# #INDENT# self . set_cwd ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( action == 'Edit' ) : #NEWLINE# #INDENT# self . dirview . edit ( self . get_index ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( action == 'Delete' ) : #NEWLINE# #INDENT# self . delete_index ( )