PageLayout#
Import |
|
Defined in |
|
Install |
|
Since |
0.10 |
Stability |
Public: follows semantic versioning. Below 1.0, a minor release may change it, and the CHANGELOG says how. |
- class scenet.ir.PageLayout[source]#
Bases:
StrictEvery page of a scene, and the format they share.
The panels themselves are not part of it: a page names them, and
check_placementschecks the names against the panels the document defines.Example
>>> from scenet import PageLayout, parse_scene_document >>> document = parse_scene_document( ... "cast: {a: {reference: alice}}\npanels: {one: {}}\n" ... "pages: [{tiers: [{panels: [one]}]}]" ... ) >>> isinstance(document.layout, PageLayout), len(document.layout.pages) (True, 1)
See also
PageSpec, one page.PageFormat, the page’s size and margins.- page: PageFormat#
The format every page shares: its size, margin, gutters and bleed.