pyleecan.GUI.Tools.WTreeEdit.TreeEditContextMenu module

class TreeEditContextMenu(obj_dict, parent)[source]

Bases: QMenu

setProp(value)[source]

Method to set the object, i.e. the respective parents property, list index or dict key respectively.

setNone()[source]

Set respective pyleecan class property to None.

getNewObject(ref_type=None)[source]

Get a new object from the user.

newObject()[source]

Get a new object from the user and set it to the respective property.

saveObject()[source]

Slot for saving the data.

loadObject()[source]

Load an object.

appendElement()[source]

Append an element to the list.

removeElement()[source]

Remove an element from the list.

insertElement()[source]

Insert an element in the list.

staticMetaObject = <PySide2.QtCore.QMetaObject object>