module documentation
Python Editor - Create and edit Python files.
| Function | run |
Run the app. |
| Function | start |
Start the app. |
| Function | stop |
Stop the app. |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Function | __callback |
Callback for when the filename is saved. |
| Function | __template |
Return a basic Picoware app template. |
| Function | _start |
Start the pye editor with the specified filename. |
| Function | _start |
Start the file browser for selecting an existing app. |
| Function | _start |
Start the file type menu. |
| Function | _start |
Start the initial menu to choose between new file or edit existing. |
| Variable | _file |
Undocumented |
| Variable | _file |
Undocumented |
| Variable | _filename |
Undocumented |
| Variable | _initial |
Undocumented |
| Variable | _keyboard |
Undocumented |
Run the app.
State 0 (INITIAL_MENU): Choose between creating new file or editing existing app State 1 (KEYBOARD): Get filename input from user via keyboard (for new files) State 2 (FILE_TYPE_MENU): Show menu to select file type (Picoware App or Python Script) State 3 (FILE_BROWSER): Show file browser to select existing app to edit State 4 (EDITOR): Launch pye editor with the specified filename
| Parameters | |
viewViewManager | The view manager context. |
Start the app.
| Parameters | |
viewViewManager | The view manager context. |
| Returns | |
bool | True on success. |
Return a basic Picoware app template.
| Parameters | |
filename:str | The app filename. |
| Returns | |
str | The template source. |
Start the pye editor with the specified filename.
| Parameters | |
viewViewManager | The view manager context. |
filename:str | The file to edit. Defaults to None. |
createbool | Create a template if the file is empty. Defaults to False. |
Start the file browser for selecting an existing app.
| Parameters | |
viewViewManager | The view manager context. |
Start the initial menu to choose between new file or edit existing.
| Parameters | |
viewViewManager | The view manager context. |