the main method of this class is .instantiate, which does the
following things:
1) check if the widget to be used as the wx parent widget for the
widget to be instantiated is something else than the logical (XML)
parent;
2) create the new instance;
3) update the widget information to carry a weak reference to
the widget instance and its wx id;
4) register the widget with the main gui singleton;
5) instantiate the children;
6) call onInstantiate and onPyInit callbacks of the
widget, if defined;
|