pyleecan.GUI.Tools.ClassTreeWidget module

class ClassTreeWidget(keys=None, expand=True)[source]

Bases: QDialog

TreeView widget to show pyleecan classes structured by their inheritance together with the selected class description.

onClassSelected(index)[source]

Method to accept the selection if a class was double clicked.

onSelectionChanged(itSelection)[source]
getSelectedClass()[source]

Get the currently selected class by its name.

setupUi()[source]

Init. the UI.

generate()[source]

Method to (recursively) build the tree (view) of the data object.

genTreeDict(key, parent)[source]

Generate a dict structure of the classes recursively on the parent dict.

genTreeView(tree, parent=None)[source]

Generate the view item structure on the parent item.

addRow(parent, name='', desc='')[source]

Add a new row to the parent item.

staticMetaObject = <PySide2.QtCore.QMetaObject object>