aqt.clayout

Contents

aqt.clayout#

Classes#

Module Contents#

class aqt.clayout.CardLayout(mw: aqt.AnkiQt, note: anki.notes.Note, ord: int = 0, parent: QWidget | None = None, fill_empty: bool = False)#

Bases: QDialog

mw = None#
note#
ord = 0#
col#
mm#
model#
templates#
fill_empty_action_toggled = False#
night_mode_is_enabled = False#
mobile_emulation_enabled = False#
have_autoplayed = False#
change_tracker#
redraw_everything() None#
update_current_ordinal_and_redraw(idx: int) None#
setupTopArea() None#
updateTopArea() None#
updateCardNames() None#
setupShortcuts() None#
setupMainArea() None#
setup_edit_area() None#
setup_cloze_number_box() None#
on_change_cloze(idx: int) None#
on_editor_toggled() None#
on_search_changed(text: str) None#
on_search_next() None#
setup_preview() None#
on_fill_empty_action_toggled() None#
on_night_mode_action_toggled() None#
on_mobile_class_action_toggled() None#
on_preview_settings() None#
on_preview_toggled() None#
note_has_empty_field() bool#
setupButtons() None#
current_template() dict#
fill_fields_from_template() None#
write_edits_to_template_and_redraw() None#
renderPreview() None#
cancelPreviewTimer() None#
maybeTextInput(txt: str, type: str = 'q') str#
onRemove() None#
onRemoveInner(template: dict) None#
onRename() None#
onReorder() None#
onAddCard() None#
on_restore_to_default(force_kind: anki.notetypes_pb2.StockNotetype.Kind.V | None = None) None#
onFlip() None#
onCopyMarkdown() None#
onMore() None#
onBrowserDisplay() None#
onBrowserDisplayOk(f: aqt.forms.browserdisp.Ui_Dialog) None#
onTargetDeck() None#
onAddField() None#
accept() None#
reject() None#
cleanup() None#
onHelp() None#
class aqt.clayout.SelectStockNotetype(mw: aqt.AnkiQt, on_success: collections.abc.Callable[[anki.notetypes_pb2.StockNotetype.Kind.V], None], parent: QWidget)#

Bases: QDialog

mw#
dialog#
on_success#
reject() None#
accept() None#