cursesmenu/curses_menu.py
def select(self):
        """
        Select the current item and run it
        """
        self.selected_option = self.current_option
        self.selected_item.set_up()
        self.selected_item.action()
        self.selected_item.clean_up()
        self.returned_value = self.selected_item.get_return()
        self.should_exit = self.selected_item.should_exit

        if not self.should_exit:
            self.draw()
def select(self):
        self.selected_option = self.current_option
        self.selected_item.set_up()
        self.selected_item.action()
        self.selected_item.clean_up()
        self.returned_value = self.selected_item.get_return()
        self.should_exit = self.selected_item.should_exit

        if not self.should_exit:
            self.draw()
def select ( self ) : self . selected_option = self . current_option self . selected_item . set_up ( ) self . selected_item . action ( ) self . selected_item . clean_up ( ) self . returned_value = self . selected_item . get_return ( ) self . should_exit = self . selected_item . should_exit if not self . should_exit : self . draw ( )
Select the current item and run it
Select the current item and run it