On 28/01/2013 at 11:51, xxxxxxxx wrote:
Still wondering about the difference between dialogs en descriptions.
I have a plugin tag with some UI.
When I try to Enable a UI field I get the message:
AttributeError: 'c4.Basecontainer' object has no attribute 'Enable'.
I guess this is because I'm referring a description ('basecontainer') and not a dialog.
For other sort of plugins this is no problem.
Here some code:
class ECHOS(plugins.TagData) :
def Init(self, node) :
tag = node
data = tag.GetDataInstance()
data.SetLong(ECHOSMODE, ECHOSMANUAL)
data.Enable(ECHOSstartframe, False) <== error
Is there another way to enable / disable UI fields?