boxes.context

class boxes.context.Context
system

The underlying System holding all equations constraining the layout.

is_solved

A bool indicating whether solve() has been called.

box(*args, **kwargs)

Construct a Box using this context.

equate(x, y)

Add a constraint setting x == y.

solve()

Solve the layout. This function raises an error if the layout is not fully defined.

sym()

Create an expression (of type symmath.expr.Expr) representing a fresh symbol unused in this context.