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
FixedIntegersizes.- Parameters
numerator (int) – Numerator of the fraction.
denominator (int) – Denominator of the fraction.