When you start using pyFormex for serious work, you will probably run into complex scripts built from simpler subtasks that are not necessarily always executed in the same order. While the pyFormex scripting language offers enough functions to ask the user which parts of the script should be executed, in some cases it might be better to extend the pyFormex GUI with custom menus to execute some parts of your script.
For this purpose, the gui.widgets module of pyFormex provides a Menu widget class. Its use is illustrated in the example Stl.py.