Constants#

class toga.constants.Direction(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

The direction a given property should act

HORIZONTAL = 0#
VERTICAL = 1#
class toga.constants.Baseline(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

The meaning of a Y coordinate when drawing text.

ALPHABETIC = 1#

Alphabetic baseline of the first line

TOP = 2#

Top of text

MIDDLE = 3#

Middle of text

BOTTOM = 4#

Bottom of text

class toga.constants.FillRule(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

The rule to use when filling paths.

EVENODD = 0#
NONZERO = 1#
class toga.constants.FlashMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

The flash mode to use when capturing photos or videos.

AUTO = -1#
OFF = 0#
ON = 1#