API

lpyout Package

Functions

frac_coords(v1, v2)

Compute the fractional (percentage) coords of one viewport in the other.

raw_coords(v1, v2)

Compute the relative coords of one viewport in the other.

Classes

Anchor(*values)

Some common anchor points to operator from.

Cell(x, y, w, h[, p, px, py, pl, pr, pt, ...])

A 1x1 grid

Enum(new_class_name, /, names, *[, module, ...])

Create a collection of name/value pairs.

Grid(x, y, w, h, row_count, col_count[, ...])

HBox(x, y, w, h, row_count, col_count[, ...])

A nx1 grid

Screen([x, y, w, h, update_method])

Mostly for keeping track of the size of the screen and making media queries

ScreenSize(*values)

Based on TailwindCSS.

VBox(x, y, w, h, row_count, col_count[, ...])

A 1xn grid

pairwise(iterable, /)

Return an iterator of overlapping pairs taken from the input iterator.