ReviewController

class mnemosyne.libmnemosyne.review_controller.ReviewController(component_manager)

Controls the behaviour of a widget which implements the ReviewWidget interface.

get_counters()
Returns tuple (scheduled_count, non_memorised_count, active_count).
grade_answer(grade)
All the code that needs to run after the user grades the answer. Note that this also incluse pulling in a new question.
heartbeat()
For code that needs to run periodically, e.g. to react to a change of date.
is_answer_showing()
is_question_showing()
new_question(learn_ahead=False)
reload_counters()
To be called when counters need to be reloaded from the database.
reset()
reset_but_try_to_keep_current_card()
This is typically called after activities which invalidate the current queue, like ‘Activate cards’ or ‘Configure’. For the best user experience, we try to keep the card that is currently being asked if possible.
show_answer()
update_dialog()
update_statusbar(message=None)

Previous topic

Controller

Next topic

Configuration

This Page

Quick search