Functions¶
src.layouts.assign_layout(filename: Path) -> str | ForwardRef(CardLayout)
¶
Assign layout object to a card.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
Path
|
Path to the art file, filename supports optional tags. |
required |
Returns:
| Type | Description |
|---|---|
str | ForwardRef(CardLayout)
|
str | CardLayout: Layout object for this card. |
Source code in src\layouts.py
src.layouts.join_dual_card_layouts(layouts: list[Union[str, CardLayout]])
¶
Join any layout objects that are dual sides of the same card, i.e. Split cards.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layouts
|
list[str | CardLayout]
|
List of layout objects (or strings which are skipped). |
required |
Returns:
| Type | Description |
|---|---|
|
List of layouts, with split layouts joined. |