Group#

macOS

GTK

Windows

iOS

Android

Web

y

y

y

y

y

Usage#

Reference#

class toga.command.Group(text=NOT_PROVIDED, order=None, section=None, parent=None, label=None)#
Parameters:
  • text

  • order

  • parent

APP = <Group text=* order=0 parent=None>#
COMMANDS = <Group text=Commands order=30 parent=None>#
EDIT = <Group text=Edit order=10 parent=None>#
FILE = <Group text=File order=1 parent=None>#
HELP = <Group text=Help order=100 parent=None>#
VIEW = <Group text=View order=20 parent=None>#
WINDOW = <Group text=Window order=90 parent=None>#
is_child_of(parent)#
is_parent_of(child)#
property key#

A unique tuple describing the path to this group

property label#

Group text.

DEPRECATED: renamed as text

Returns:

The button text as a str

property parent#
property path#

A list containing the chain of groups that contain this group

property root#