toga/docs/reference/data/widgets_by_platform.csv

3.7 KiB

1ComponentTypeComponentDescriptionmacOSGTKWindowsiOSAndroidWebTerminal
2ApplicationCore Component:class:`~toga.App`The application itself|b||b||b||b||b||b||b|
3WindowCore Component:class:`~toga.Window`An operating system-managed container of widgets.|y||y||y||y||y||b||b|
4MainWindowCore Component:class:`~toga.MainWindow`The main window of the application.|y||y||y||y||y||b||b|
5ActivityIndicatorGeneral Widget:class:`~toga.ActivityIndicator`A spinning activity animation|y||y||b|
6ButtonGeneral Widget:class:`~toga.Button`Basic clickable Button|y||y||y||y||y||b||b|
7CanvasGeneral Widget:class:`~toga.Canvas`A drawing area for 2D vector graphics.|y||y||y||y||y|
8DateInputGeneral Widget:class:`~toga.DateInput`A widget to select a calendar date|y||y|
9DetailedListGeneral Widget:class:`~toga.DetailedList`An ordered list of content where each item has an icon, a main heading, and a line of supplementary text.|y||y||b||y||y|
10DividerGeneral Widget:class:`~toga.Divider`A horizontal or vertical line|y||y||y||b|
11ImageViewGeneral Widget:class:`~toga.ImageView`A widget that displays an image|y||y||y||y||y|
12LabelGeneral Widget:class:`~toga.Label`Text label|y||y||y||y||y||b||b|
13MultilineTextInputGeneral Widget:class:`~toga.MultilineTextInput`Multi-line Text Input field|y||y||y||y||y|
14NumberInputGeneral Widget:class:`~toga.NumberInput`A text input that is limited to numeric input|y||y||y||y||y|
15PasswordInputGeneral Widget:class:`~toga.PasswordInput`A text input that hides its input|y||y||y||y||y|
16ProgressBarGeneral Widget:class:`~toga.ProgressBar`Progress Bar|y||y||y||y||y||b|
17SelectionGeneral Widget:class:`~toga.Selection`A widget to select a single option from a list of alternatives.|y||y||y||y||y|
18SliderGeneral Widget:class:`~toga.Slider`Slider|y||y||y||y||y|
19SwitchGeneral Widget:class:`~toga.Switch`Switch|y||y||y||y||y||b|
20TableGeneral Widget:class:`~toga.Table`A widget for displaying columns of tabular data.|y||y||y||b|
21TextInputGeneral Widget:class:`~toga.TextInput`A widget for the display and editing of a single line of text.|y||y||y||y||y||b||b|
22TimeInputGeneral Widget:class:`~toga.TimeInput`A widget to select a clock time|y||y|
23TreeGeneral Widget:class:`~toga.Tree`A widget for displaying a hierarchical tree of tabular data.|y||y|
24WebViewGeneral Widget:class:`~toga.WebView`A panel for displaying HTML|y||y||y||y||y|
25WidgetGeneral Widget:class:`~toga.Widget`The base widget|y||y||y||y||y||b||b|
26BoxLayout Widget:class:`~toga.Box`Container for components|y||y||y||y||y||b||b|
27ScrollContainerLayout Widget:class:`~toga.ScrollContainer`A container that can display a layout larger than the area of the container|y||y||y||y||y|
28SplitContainerLayout Widget:class:`~toga.SplitContainer`A container that divides an area into two panels with a movable border|y||y||y|
29OptionContainerLayout Widget:class:`~toga.OptionContainer`A container that can display multiple labeled tabs of content|y||y||y|
30App PathsResource:class:`~toga.paths.Paths`A mechanism for obtaining platform-appropriate filesystem locations for an application.|y||y||y||y||y||b|
31FontResource:class:`~toga.Font`A text font|b||y||y||b||y|
32CommandResource:class:`~toga.Command`Command|b||b||b||b|
33GroupResource:class:`~toga.Group`Command group|b||b||b||b||b|
34IconResource:class:`~toga.Icon`A small, square image, used to provide easily identifiable visual context to a widget.|y||y||y||y||y||b|
35ImageResource:class:`~toga.Image`An image|y||y||y||y||y|