Go to file
Damien Elmes 737a8d934e persistent add-on configuration
- 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)
2017-08-28 20:51:43 +10:00
anki bump version 2017-08-26 15:25:10 +10:00
aqt persistent add-on configuration 2017-08-28 20:51:43 +10:00
designer persistent add-on configuration 2017-08-28 20:51:43 +10:00
tests remove dupeOnSchemaChange 2017-08-21 13:50:11 +10:00
tools fix make install for source 2017-01-17 11:25:55 +10:00
web allow templates and add-ons to hook into reviewer updated/shown 2017-08-28 14:54:22 +10:00
.gitignore fix i18n on linux install 2012-12-21 18:04:26 +09:00
.travis.yml drop 3.5 from travis 2017-08-25 16:43:01 +10:00
anki.1 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.desktop update anki.desktop (thanks to julian) 2017-01-24 18:29:31 +10:00
anki.png merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xml merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xpm merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
LICENSE elaborate on bsd license 2016-05-06 09:51:30 +10:00
LICENSE.logo update links in license.logo 2017-01-24 18:15:28 +10:00
Makefile fix make install for source 2017-01-17 11:25:55 +10:00
README.contributing new add-on handling 2017-08-26 15:14:20 +10:00
README.development Update required python version to 3.6+ 2017-08-25 08:24:38 +02:00
README.md readme tweak 2017-08-16 20:02:09 +10:00
requirements.txt persistent add-on configuration 2017-08-28 20:51:43 +10:00
runanki explicit python3 in runanki, remove /usr/share ref 2016-06-28 15:47:09 +10:00

Anki

This is the development branch of Anki.

For stable builds, please see https://apps.ankiweb.net.

For non-developers who want to try this development code, the easiest way is to use a binary package - please see https://anki.tenderapp.com/discussions/beta-testing

To run from source, please see README.development.

Build Status