mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
minor tweaks to doc
This commit is contained in:
parent
e728d49232
commit
b2f74b2591
3 changed files with 7 additions and 4 deletions
|
@ -15,12 +15,16 @@ Get a due card:
|
|||
|
||||
Show the card:
|
||||
|
||||
print card.q, card.a
|
||||
print card.q(), card.a()
|
||||
|
||||
Answer the card:
|
||||
|
||||
deck.sched.answerCard(card, ease)
|
||||
|
||||
Refresh after a change:
|
||||
|
||||
deck.reset()
|
||||
|
||||
Edit the card:
|
||||
|
||||
fact = card.fact()
|
||||
|
@ -33,5 +37,5 @@ Save & close:
|
|||
deck.close()
|
||||
"""
|
||||
|
||||
version = "1.2.6"
|
||||
version = "1.99"
|
||||
from anki.storage import Deck
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
Hooks - hook management and tools for extending Anki
|
||||
==============================================================================
|
||||
|
||||
To find available hooks, grep for runHook in the source code.
|
||||
To find available hooks, grep for runHook and runFilter in the source code.
|
||||
|
||||
Instrumenting allows you to modify functions that don't have hooks available.
|
||||
If you call wrap() with pos='around', the original function will not be called
|
||||
|
|
|
@ -8,7 +8,6 @@ from anki.lang import _
|
|||
|
||||
# Models
|
||||
##########################################################################
|
||||
# GUI code should ensure no two fields have the same name.
|
||||
|
||||
defaultConf = {
|
||||
'sortf': 0,
|
||||
|
|
Loading…
Reference in a new issue