Hi guys. I’m trying to develop my first ever Anki addon, but I’m not super sure where to start. I’ve read the Addon docs from Anki and How to write addons by example, and I have a lot of experience with Python. But I still can’t quite figure some stuff out.
I don’t want to create anything complicated. All I’m trying to do is make a little progress bar that shows how many cards are learned, new, and how many untouched ones are remaining in the deck.
I tried looking at source code for some simple addons, but they usually don’t involve any gui elements, or only add stuff to the main window. I wan this bar thing to be visible only on the deck preview page (like in this image below)
So my precise question is this: How can I add a Qt Widget to a certain page in Anki? I tried looking up some tutorials on using qt with python, but obviously they all involved making one’s own app from scratch (often with qt designer), and not adding something to an existing application.
I’m sorry if this seems like a trivial question, but I’m seriously stuck. If you know any resources that would help answer it, please send me in the right direction.
Other questions I have (I don’t expect a response to these but I figured I’d shoot my shot anyway):
- How can I get cards from a certain deck instead of the whole collection?
- How can I determine the status [new/learning/review] of those cards?
Thank you in advance!!