size

Classes used for calculating widget size.

Size

class tanmatsu.size.Size

FixedInteger

class tanmatsu.size.FixedInteger(size: int)

Resolve to a fixed size.

Parameters

size (int) – A size, in rows/columns.

Fraction

class tanmatsu.size.Fraction(numerator, denominator)

Resolve to a fraction of the parent’s available space, after subtracting space taken up by any FixedInteger sizes.

Parameters
  • numerator (int) – Numerator of the fraction.

  • denominator (int) – Denominator of the fraction.

Auto

class tanmatsu.size.Auto

Resolve to a proportion of the parent’s available space, divided up equally amongst all Autos.