aqt.addcards#

Classes#

Module Contents#

class aqt.addcards.NewAddCards(mw: aqt.addcards_legacy.AnkiQt)#

Bases: QMainWindow

mw#
col#
form#
set_note(note: aqt.addcards_legacy.Note, deck_id: aqt.addcards_legacy.DeckId | None = None) None#

Set tags, field contents and notetype according to note. Deck is set to deck_id or the deck last used with the notetype.

setupEditor() None#
reopen(mw: aqt.addcards_legacy.AnkiQt, deck_id: aqt.addcards_legacy.DeckId | None = None, notetype_id: aqt.addcards_legacy.NotetypeId | None = None) None#
helpRequested() None#
load_new_note(deck_id: aqt.addcards_legacy.DeckId | None = None, notetype_id: aqt.addcards_legacy.NotetypeId | None = None) None#
keyPressEvent(evt: QKeyEvent) None#
closeEvent(evt: QCloseEvent) None#
ifCanClose(onOk: aqt.addcards_legacy.Callable) None#
closeWithCallback(cb: aqt.addcards_legacy.Callable[[], None]) None#