aqt.flags#

Classes#

Flag

A container class for flag related data.

FlagManager

Module Contents#

class aqt.flags.Flag#

A container class for flag related data.

index – The integer by which the flag is represented internally (1-7). label – The text by which the flag is described in the GUI. icon – The icon by which the flag is represented in the GUI. search_node – The node to build a search string for finding cards with the flag. action – The name of the action to assign the flag in the browser form.

index: int#
label: str#
icon: aqt.theme.ColoredIcon#
search_node: anki.collection.SearchNode#
action: str#
class aqt.flags.FlagManager(mw: aqt.main.AnkiQt)#
mw#
all() list[Flag]#

Return a list of all flags.

get_flag(flag_index: int) Flag#
rename_flag(flag_index: int, new_name: str) None#
restore_default_flag_name(flag_index: int) None#
require_refresh() None#

Discard cached labels.