mantidproject/mantid

Create python script to create template MVP files

Closed this issue · 0 comments

Description
We want to create a python script which can be run from the command line to generate a couple of template files that can be used for an Model-View-Presenter widget. The script will be used for training purposes, and can also be used in future by developers wanting to create a widget using the MVP pattern. A link to the script should be put in the MVP documentation.

Acceptance Criteria

  • A python script which generates a Model, View and Presenter files which contains the best MVP practises (interface classes, passing view and model to presenter as constructor arguments, no Qt in the presenter)
  • The python script should have a few arguments:
    - The name to use for the classes
    - The location to output the files to
    - Whether to generate python files, or cpp files for MVP
  • The script should be documented and a link provided to it