mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-23 14:06:28 +02:00
[graph] expose Attribute's description type as a property
This commit is contained in:
parent
05be8932ca
commit
75ddea0329
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,9 @@ class Attribute(BaseObject):
|
||||||
""" Attribute name """
|
""" Attribute name """
|
||||||
return self._name
|
return self._name
|
||||||
|
|
||||||
|
def getType(self):
|
||||||
|
return self.attributeDesc.__class__.__name__
|
||||||
|
|
||||||
def getLabel(self):
|
def getLabel(self):
|
||||||
return self._label
|
return self._label
|
||||||
|
|
||||||
|
@ -177,6 +180,7 @@ class Attribute(BaseObject):
|
||||||
|
|
||||||
name = Property(str, getName, constant=True)
|
name = Property(str, getName, constant=True)
|
||||||
label = Property(str, getLabel, constant=True)
|
label = Property(str, getLabel, constant=True)
|
||||||
|
type = Property(str, getType, constant=True)
|
||||||
desc = Property(desc.Attribute, lambda self: self.attributeDesc, constant=True)
|
desc = Property(desc.Attribute, lambda self: self.attributeDesc, constant=True)
|
||||||
valueChanged = Signal()
|
valueChanged = Signal()
|
||||||
value = Property(Variant, _get_value, _set_value, notify=valueChanged)
|
value = Property(Variant, _get_value, _set_value, notify=valueChanged)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue