Managing editor themes¶
Theme(name: str, data: str)¶
An editor theme. There’s no way to create a theme programatically but it can be returned by
editor_themes()and be shared to other devices.
A base 64 encoded string containing the theme’s data.
The theme’s name.
Sets the current editor’s theme. This will not install the theme, so if it was created by another device, the theme will disappear after choosing another one. To install it just go to the settings and create a new theme, that will copy the current one.
Parameters: theme – The theme to be set.
current_editor_theme() → pyto_core.Theme¶
Returns the current editor theme.
Return type: Theme