12. Examples¶
All modules with examples are located in the py-frontend/examples folder. They can be enabled in the files of the main Python modules of the API. In order to enable an example, you need to uncomment the string containing the example call in a main module.
Warning
If you are planning to use some code from examples as a base for your own extensions, you should copy this code to some other module, because default example files are re-written every time Cerebro updates.
12.1. Basic Examples¶
Basic examples show how to enable an extension, e.g., adding user’s custom menus or event handling, with no special meaning.
12.2. Real Examples¶
Real examples show API capabilities in a real life situation.