I want to learn how to develop Addons

Hi,
I have some simple Python background, I’ve checked Official addon manual but I found that are basic instructions, how can I learn to make advanced addons ? how can I learn inner anki structure ? is there an advanced documentation ?

Can you please share with me the journey I must take, step by step ?

Thanks.

1 Like

If you are not familiar with Python, start by learning at least the basics.

Then read the docs: https://addon-docs.ankiweb.net/

Referring to the Anki pylib folder is useful to know what you can do, especially anki/qt/tools/genhooks_gui.py at main · ankitects/anki · GitHub which lists the hooks (I don’t think they’re documented elsewhere but may be wrong).

Referring to existing Anki addon source code is also very useful to learn. Search on Github

If there is an existing similar add-on which you can change to do what you want, that is helpful as well.

5 Likes

If you want to create GUI, the Qt documentation is a good reference.

4 Likes

You have to consult the source code for advanced stuff. If you’re not doing so already, I highly recommend setting up your editor for code completion (some instructions here). This will allow you to find what you’re looking for more quickly and will make the experience a lot nicer.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.