mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Clarify docstring
This commit is contained in:
parent
67e3f25ad1
commit
fe6144ff61
1 changed files with 6 additions and 4 deletions
|
@ -2165,12 +2165,14 @@ reviewer_will_end = _ReviewerWillEndHook()
|
||||||
class _ReviewerWillInitAnswerButtonsFilter:
|
class _ReviewerWillInitAnswerButtonsFilter:
|
||||||
"""Used to modify list of answer buttons
|
"""Used to modify list of answer buttons
|
||||||
|
|
||||||
buttons_tuple is a tuple of buttons, with each button represented by a tuple
|
buttons_tuple is a tuple of buttons, with each button represented by a
|
||||||
containing an int for the button's number and a string for the button's label.
|
tuple containing an int for the button's ease and a string for the
|
||||||
|
button's label.
|
||||||
|
|
||||||
Return a tuple of the form ((1, "Label1"), (2, "Label2"), ...)
|
Return a tuple of the form ((int, str), ...), e.g.:
|
||||||
|
((1, "Label1"), (2, "Label2"), ...)
|
||||||
|
|
||||||
Note: import _ from anki.lang to support automatic translation, using, e.g.,
|
Note: import _ from anki.lang to support translation, using, e.g.,
|
||||||
((1, _("Label1")), ...)
|
((1, _("Label1")), ...)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue