View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016134||Scribus||Scripter||public||2020-06-10 08:43||2020-06-14 14:03|
|Summary||0016134: Provide config API for scripter|
|Description||Provide a config API for scripts|
It should cover
- Creation and use of config dialogs
- Saving as "Document settings" or as "Application Preferences" (or as separate config files ?)
- Loading values
>> Creation and use of config dialogs
I'm not sure this can work given the object lifetime management in Python. As the objects are destroyed when script exits, the dialogs would be accessible only while the script is running. Which is certainly not what we want. A script would have anyway to build the dialog mostly by itself using PyQt5 or something similar.
i think it would technically be possible.
but, as i had the chance to write in the ML, i still think that scripts should manage their own preferences if they do want (in different way depending on the type of script).
on top of it, i see very little interest in having sections for scripts in the settings/preferences before it's possible to create parts of the scribus UI through scripting.
imo, giving the current architecture, scripts are good for small features, and only in some corner cases can provide more complex features.