spinetoolbox.project_items.exporter.list_utils¶
Contains list helper functions for list manipulation.
| author: |
|
|---|---|
| date: | 12.12.2019 |
Module Contents¶
Functions¶
move_list_elements(originals, first, last, target) |
Moves elements in a list. |
move_selected_elements_by(list_view, delta) |
Moves selected items in a QListView by given delta. |
-
spinetoolbox.project_items.exporter.list_utils.move_list_elements(originals, first, last, target)[source]¶ Moves elements in a list.
Parameters: - originals (list) – a list
- first (int) – index of the first element to move
- last (int) – index of the last element to move
- target (int) – index where the elements [first:last] should be inserted
Returns: a new list with the elements moved