mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-19 01:27:31 +02:00
[desc] Attribute inherits BaseObject and expose members as properties
* also expose graph.Attribute's desc as a property * introduce Variant in data structure backend API
This commit is contained in:
parent
74e4089c68
commit
9c7d0c1b1c
5 changed files with 38 additions and 19 deletions
|
@ -151,6 +151,7 @@ class Attribute(BaseObject):
|
|||
|
||||
name = Property(str, getName, constant=True)
|
||||
label = Property(str, getLabel, constant=True)
|
||||
desc = Property(desc.Attribute, lambda self: self.attributeDesc, constant=True)
|
||||
valueChanged = Signal()
|
||||
value = Property("QVariant", value.fget, value.fset, notify=valueChanged)
|
||||
isOutput = Property(bool, isOutput.fget, constant=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue