737a8d934e
- add-ons can ship default config in a config.json file - users can edit the config in the add-ons dialog, easily syntax-check the json, and restore it to the defaults - an optional config.md contains instructions to the user in markdown format - config will be preserved when add-on is updated, instead of being overwritten as is the case when users are required to edit the source files A simple example: in config.json: {"myvar": 5} In your add-on's code: from aqt import mw config = mw.addonManager.getConfig(__name__) print("var is", config['myvar']) Add-ons that manage options in their own GUI can have that GUI displayed when the config button is clicked: mw.addonManager.setConfigAction(__name__, myOptionsFunc)
8 lines
60 B
Plaintext
8 lines
60 B
Plaintext
bs4
|
|
send2trash
|
|
httplib2
|
|
pyaudio
|
|
requests
|
|
decorator
|
|
markdown
|