Skip to content
Toga
0.5.3.dev143+gabcc6cdb6

Constants

toga.constants.Direction

Bases: Enum

The direction a given property should act.

HORIZONTAL

VERTICAL

toga.constants.Baseline

Bases: Enum

The meaning of a Y coordinate when drawing text.

ALPHABETIC

Alphabetic baseline of the first line

TOP

Top of text

MIDDLE

Middle of text

BOTTOM

Bottom of text

toga.constants.FillRule

Bases: Enum

The rule to use when filling paths.

EVENODD

NONZERO

toga.constants.FlashMode

Bases: Enum

The flash mode to use when capturing photos or videos.

AUTO

OFF

ON

__str__()

toga.constants.WindowState

Bases: Enum

The possible window states of an app.

NOTE: Some platforms do not fully support all states; see the toga.Window's platform notes for details.

NORMAL

The NORMAL state represents the default state of the window or app when it is not in any other specific window state.

MINIMIZED

MINIMIZED state is when the window isn't currently visible, although it will appear in any operating system's list of active windows.

MAXIMIZED

The window is the largest size it can be on the screen with title bar and window chrome still visible.

FULLSCREEN

FULLSCREEN state is when the window title bar and window chrome remain hidden; But app menu and toolbars remain visible.

PRESENTATION

PRESENTATION state is when the window title bar, window chrome, app menu and toolbars all remain hidden.

A good example is a slideshow app in presentation mode - the only visible content is the slide.