On 27/09/2014 at 06:10, xxxxxxxx wrote:
I have a tagplugin with userdata defined in Init(self, node).
Of course only when if (len(node.GetUserDataContainer()) == 0).
What I see happening is that for every change in the userdata Init(), Execute() and Message() are triggered.
So, what is the best place to process user input?
For example when a slider in Userdata is changed?
I guess it should be Execute(). But Execute() is called in a thread context. and thus not everything is possible. For example gui.RenameDialog() is not possible "invalid cross-thread call".
I can not use Message() because I do not know which message should I handle.
It is not MSG_DESCRIPTION_COMMAND or MSG_DESCRIPTION_EDIT_ENTRY.