PanelPlacement#

Import

from scenet import PanelPlacement

Defined in

scenet.ir (source)

Install

pip install scenet

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.PanelPlacement[source]#

Bases: Strict

One panel in a tier.

Written as the panel’s name alone, or as {use: name, width: 2} to give it a larger share of the tier.

Example

>>> from scenet import PanelPlacement
>>> PanelPlacement(use="one", width=2).width
2.0

See also

Tier, whose panels holds them. Inset, a panel set into this one.

use: str#

The name of a panel under panels:. Writing the name alone means {use: name}.

width: float#

The panel’s share of its tier’s width, relative to its neighbours.

insets: tuple[Inset, ...]#

Panels set into its corners, and drawn over it.

bleed: bool | tuple[Side, ...]#

Run the frame past the trim to the bleed line, with no border there: true on every side that reaches the page’s margin, or a list of those sides.