BackgroundGroup¶
-
class
BackgroundGroup¶ -
-
property
name¶ The name of the group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
list_backgrounds()¶ List the backgrounds of this group.
- Returns
The list of backgrounds in the group.
- Return type
-
duplicate()¶ Duplicate this background group.
- Returns
The duplicated group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
remove(force = False)¶ Delete a background group
Note
By default, only empty groups can be deleted (
NotEmptyErroris raised otherwise), useforceto force deletion of non empty groups.- Parameters
force (bool) -- Force the deletion of the group even if it contains backgrounds.
- Raises
NotEmptyError -- If
forceisFalseand the group contains backgrounds.ReadOnlyError -- If
Databaseis in read only mode.
-
create_background(name)¶ Create a new background.
- Parameters
name (str) -- The name of the new background.
- Returns
The newly created background.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property