Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
[Share] get a list of themes
-
This is a little pathetic in a way. But I did not take advantage of the themes dict already defined in the editor.py before. I have a static text item stored as a snippet for the theme names.
I was just looking at editor.py for something else, then realised I can get a list of themes from the editor module.
Anyway, it's simple. Here it is.
import editor theme_list = list(editor.theme_filenames.keys()) print(theme_list)
-
Well, I guess the bigger issue here is that it's worth reading though the modules that @omz has provided in Python. Some other useful stuff can be found.