Skip to content

Modules

3Axes edited this page Jul 13, 2018 · 5 revisions

ProgramMaker uses modules to create code.


A Module is an external .py file imported into ProgramMaker and added into a menu iteration. This module would:

  • Have a menu function (if it contains more than one option)
  • Use a function and some input statements to create properly formatted code
  • Return this code in a string so that it is added to ProgramMaker's final save string

Yes, you can create your own modules. If you want to contribute to the official release, check out the contributing guide.

You can do this by:

  1. Creating your module (of course) with all of the required elements listed above
  2. Adding import <module name> into the beginning of programMaker.py
  3. Adding your module to the list of options inside the main menu iteration
  4. Extending the if/elif/else in order to incorporate your module into your desired number choice

Modules

  • Interactions
  • Logic
  • Loops
  • Variables
Clone this wiki locally