disguise developers

Python API

Execute Python code in Designer sessions to control and query projects programmatically.

MultiLevelList

A hierarchical list where item’s can have sub-items, and those have sub-items to four levels

Methods

buildFromItems(self, items: List[MultiLevelListItem], allowSelect: bool)

Builds the widget hierarchy from data items
Parameters:

collapseAll(self)

Collapses the widget hierarchy so only the top level is displayed

expandAll(self)

Expands the widget hierarchy so all levels are displayed

getTextColorForItemType(self, itemLevel: int) -> Colour

Gets the colour a specific item type should be displayed in

Returns the colour

initialise(self)

Initialises the list view