[wxPython-users] Enumerating XML resource names
Christian Kristukat
ckkart at hoc.net
Sat Jun 3 07:23:58 PDT 2006
Eli Golovinsky wrote:
> You don't need to create the instances yourself unless you're using
> Unknown widgets in your XRC.
>
> XRC should do that for you provided you supply the name of the derived
> class you want to use in Subclass (right click on a widget in XRCed and
> choose Subclass).
Ok, I guess I did not express myself very well. Here's another try.
Currently I'm successfully using xrc and I have built a complex tree with some
subclassed nodes. Doing so, xrc is instantiating the subclassed controls
automatically when the xrc tree is loaded. Now, reading about your recent
developments of pywxrc I wanted to give it a try. Pywxrc is creating a class for
every subclassed node in the tree. Robin already explained me that the xrc tree
is loaded when I create an instance of the toplevel frame class (or every other
I guess). But how about any other subclassed node somewhere down the tree? I
can't imagine how it will be added to the gui just by instantiating such a class.
Regards, Christian
More information about the wxpython-users
mailing list