aqt.browser.table#

Submodules#

Attributes#

Classes#

Functions#

backend_elide_mode_to_aqt_elide_mode(...)

backend_color_to_aqt_color(→ dict[str, str] | None)

adjusted_bg_color(→ dict[str, str] | None)

Package Contents#

aqt.browser.table.Column#
aqt.browser.table.ItemId#
aqt.browser.table.ItemList#
class aqt.browser.table.SearchContext#
search: str#
browser: aqt.browser.Browser#
order: bool | str | Column = True#
reverse: bool = False#
addon_metadata: dict | None = None#
ids: collections.abc.Sequence[ItemId] | None = None#
class aqt.browser.table.Cell(text: str, is_rtl: bool, elide_mode: anki.collection.BrowserRow.Cell.TextElideMode.V)#
text: str#
is_rtl: bool#
elide_mode: aqt.Qt.TextElideMode#
class aqt.browser.table.CellRow(cells: collections.abc.Generator[tuple[str, bool, anki.collection.BrowserRow.Cell.TextElideMode.V], None, None], color: anki.collection.BrowserRow.Color.V, font_name: str, font_size: int)#
is_disabled: bool = False#
refreshed_at: float#
cells: tuple[Cell, Ellipsis]#
color: dict[str, str] | None#
font_name: str#
font_size: int#
is_stale(threshold: float) bool#
static generic(length: int, cell_text: str) CellRow#
static placeholder(length: int) CellRow#
static disabled(length: int, cell_text: str) CellRow#
aqt.browser.table.backend_elide_mode_to_aqt_elide_mode(elide_mode: anki.collection.BrowserRow.Cell.TextElideMode.V) aqt.Qt.TextElideMode#
aqt.browser.table.backend_color_to_aqt_color(color: anki.collection.BrowserRow.Color.V) dict[str, str] | None#
aqt.browser.table.adjusted_bg_color(color: dict[str, str] | None) dict[str, str] | None#