ApplicationStage

class ApplicationStage
property id

The id of the stage.

Type

str, read-only

property name

The name of the stage.

Type

str, read-only

show()

Show the stage in the application.

list_toolbars()

List Toolbars of the stage.

Returns

The list of Toolbars.

Return type

list(Toolbar)

find_toolbar(name)

Find a Toolbar by name.

Parameters

name (str) -- Toolbar name to find.

Returns

The Toolbar found or None if not found.

Return type

Toolbar or None

Raises

NotFoundError -- If name is not matching with any Toolbar of the stage.

find_action(name)

Find an button by name.

Parameters

name (str) -- Button name to find.

Returns

The button found or None if not found.

Return type

Button

Raises

NotFoundError -- If name is not matching with any button of the stage.

clean_toolbar(location, force=False)

Empty stage toolbar by removing spacer and hiding toolbars

Note

By default, the workspace wait for update method call to be executed, use force to force the update of the app's toolbar.

Parameters
  • location (Location) -- Location of the toolbar.

  • force (bool) -- Force the update of the toolbar.

create_toolbar(location)

Create custom Toolbar on location in stage.

Parameters

location (Location) -- The Toolbar's location on the stage.

Returns

The Toolbar created.

Return type

Toolbar