Coverage for ppedit/_branding.py: 100.0%

4 statements  

« prev     ^ index     » next       coverage.py v7.18.0, created at 2026-11-30 17:40 +0000

1"""@private Name of the editor shown in the browser page 

2 

3Change `APP_NAME` to show another name wherever the page shows `ppedit`: 

4the window title, the top-bar title, tooltips, server status dialogs and 

5messages, and the About dialog heading. `APP_MARK` is the leading part of 

6the name drawn in the accent color in the top bar (`""` for none; it is 

7ignored when the name does not start with it). 

8 

9The name only changes what the page shows. The package, the `ppedit` 

10command (shown by the restart dialog as the command to run), `localStorage` 

11keys, and the copyright, license and funding acknowledgment in the About 

12dialog are not changed by it; when `APP_NAME` is not `ppedit`, the About 

13dialog also says that the editor is based on ppedit. 

14 

15Example: 

16 

17 APP_NAME = "GridEdit" 

18 APP_MARK = "Grid" 

19""" 

20 

21APP_NAME = "ppedit" 

22"""@private Name of the editor shown in the browser page""" 

23 

24APP_MARK = "pp" 

25"""Leading part of `APP_NAME` drawn in the accent color in the top bar"""