Coder Social home page Coder Social logo

menunavigator's Introduction

menuNavigator

A generic template application to generate command-line menus

Example of usage

For a toy example of the functionality of this module, run

python mainExample.py --p [project_folder] --source example_folder

where [project_folder] must be replaced by the path to the folder where the application is expected to store the result files.

The options of the navigation tree are defined in config/options_menu.yaml.

Integrating menuNavigator into your application

In order to integrate menuNavigator into your application, you do not need to modify the following files:

  • code/menu_navigator/menu_navigator.py: It contains the main class of the module, MenuNavigator, which manages the used interaction through the menus.

  • code/base_taskmanager.py: It contains the baseTaskManager class, which provides basic functionality to create, load or update an application project.

You should modify the following files:

  • config/options_menu.yaml: It defines the options to be shown through the navigation tree
  • code/task_manager.py: It contains the TaskManager class, which runs the methods selected through the navigation tree. For each option in options_menu.yaml, a method should exist in the TaskManagerclass executing it. It inherits from the baseTaskManager class.
  • config/parameters.default.yaml: It should contain the default values of the parameters required by your application. Some of these parameters can be specific of each application project. For this reason, each time a new project is created, a copy of this file is placed at the project folder, which can be modified by the user.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.