I have defined a StringProperty as:
StrParents = StringProperty(default='-1 ',update= GetParent),
prop to display the property in a panel as:
layout.prop(item, 'StrParents', text='parents').
I would like now to make some actions (i.e: call a function X()) if the StringProperty was changed from inside the code. And doing another action (i.e:call a function Y()) if the StringProperty was changed from the user via the panel.
How can I achieve such that requirement?