Constants¶
Reference¶
toga.constants.Direction
¶
toga.constants.Baseline
¶
Bases: Enum
The meaning of a Y coordinate when drawing text.
Source code in core/src/toga/constants/__init__.py
13 14 15 16 17 18 19 20 21 22 23 | |
toga.constants.FillRule
¶
toga.constants.FlashMode
¶
Bases: Enum
The flash mode to use when capturing photos or videos.
Source code in core/src/toga/constants/__init__.py
38 39 40 41 42 43 44 45 46 47 | |
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.
Source code in core/src/toga/constants/__init__.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
NORMAL = 0
¶
The NORMAL state represents the default state of the window or app when it is
not in any other specific window state.
MINIMIZED = 1
¶
MINIMIZED state is when the window isn't currently visible, although it will
appear in any operating system's list of active windows.
MAXIMIZED = 2
¶
The window is the largest size it can be on the screen with title bar and window chrome still visible.
FULLSCREEN = 3
¶
FULLSCREEN state is when the window title bar and window chrome remain
hidden; But app menu and toolbars remain visible.
PRESENTATION = 4
¶
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.