PlotDataDict
Last update: 16.07.2026class compolyx.plot_data.PlotDataDict(name, label=None, obj=None, list=[], item_type=<class 'object'>, parent=None, key_attr='name')
Attributes
| Name | Description |
|---|---|
PlotDataDict.enabled |
Indicates whether the object is enabled. |
PlotDataDict.is_dict_item |
Indicates whether the object is an item in a dictionary. |
PlotDataDict.is_list_item |
Indicates whether the object is an item of a list. |
PlotDataDict.item_type |
Type of items stored in this UIDict. |
PlotDataDict.key_attr |
Name of attribute of item objects which is mapped to the key of the UIDict. |
PlotDataDict.label |
|
PlotDataDict.link_path |
Root path of the current node in the tree for links to this object. |
PlotDataDict.name |
Name of the object. |
PlotDataDict.parent |
Parent object in the tree. |
PlotDataDict.root_path |
Root path of the current node in the tree. |
Methods
| Name | Description |
|---|---|
PlotDataDict.append(value) |
Append a new item to the UIDict. |
PlotDataDict.clear() |
|
PlotDataDict.copy_plot(source) |
Copy a plot object. |
PlotDataDict.extend(values) |
Extend the UIDict with multiple items at once. |
PlotDataDict.find(func) |
Return the value of the first value in dict where func(value) == True. |
PlotDataDict.find_key(func) |
Return the key of the first value in dict where func(value) == True. |
PlotDataDict.find_parent(type) |
Steps up the tree and returns the first parent with given type. |
PlotDataDict.get(key[, default]) |
|
PlotDataDict.index(key) |
|
PlotDataDict.items() |
Return ordered list with (key,value) pairs. |
PlotDataDict.iteritems() |
|
PlotDataDict.iterkeys() |
|
PlotDataDict.itervalues() |
|
PlotDataDict.keys() |
|
PlotDataDict.new(name[, type]) |
|
PlotDataDict.rename(old_name, new_name) |
Rename function which updates the name of the object by calling obj._update_name(new_name). |
PlotDataDict.sort([cmp, key, reverse]) |
|
PlotDataDict.update_key(old) |
Update old key of object to the current value of the key_attr attribute of this object. |
PlotDataDict.values() |
|
PlotDataDict.visit(visitor) |
Walk through the tree and let the visitor perform action on every descendant node. |