StackedPanel#

Import

from scenet import StackedPanel

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

Bases: Strict

One panel in a column.

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

Example

>>> from scenet import StackedPanel
>>> StackedPanel(use="top", height=2).height
2.0

See also

Column, whose panels holds them.

use: str#

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

height: float#

The panel’s share of its column’s height, relative to the others in it.

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.