Toolbar
Toolbar
- class Toolbar
-
- property location
The location of the Toolbar.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- find_action(name)
Find a button by name.
- Parameters
name (str) -- The button name to find.
- Returns
The button found or
None
if not found.- Return type
- Raises
NotFoundError -- If
name
is not matching with any button of the Toolbar.
- insert_default_button(name)
Insert action from name in the toolbar
Note
An action can only be added once in the whole interface.
- create_custom_button(name)
Create customisable button from name
Note
The button's name must be unique in the whole application.
- Parameters
name (str) -- The name of the button.
- Returns
The button created.
- Return type
- create_popup_button(name, execute_on_click=True, set_current_on_click=True)
Create popup button from name
Note
The button's name must be unique in the whole application.
- Parameters
- Returns
The button created.
- Return type
- create_tiny_popup_button(name, show_label=True)
Create tiny popup button from name
Note
The button's name must be unique in the whole application.
- Parameters
- Returns
The button created.
- Return type
- create_cycle_button(name)
Create cycle button from name
Note
The button's name must be unique in the whole application.
- Parameters
name (str) -- The name of the button.
- Returns
The button created.
- Return type
- insert_separator()
Insert separator in the toolbar.