klumhru
12-02-2009 14:55:34
Hi
Is there a simple way to access the Property list of a widget, i.e. the properties defined in the Events list in the Editor?
I'm using python to act on events raised in the GUI, and I'm defining the script function/object called on events in the Editor. I'm using the UserData list now but I'd prefer to use the Event list if possible for clarity in GUI design.
Something along the lines of:
Is there a simple way to access the Property list of a widget, i.e. the properties defined in the Events list in the Editor?
I'm using python to act on events raised in the GUI, and I'm defining the script function/object called on events in the Editor. I'm using the UserData list now but I'd prefer to use the Event list if possible for clarity in GUI design.
Something along the lines of:
void btnPress(WidgetPtr sender)
{
scriptManager->callFunc(((ButtonPtr)sender)->getProperty("Widget_eventMouseButtonClick"));
}