i think there is a bug in current wxXmlNode wrapper: as far as i understand, methods GetChildren() and GetProperties() return a pointer to the first element of the list instead of complete list.
is it possible for wxXmlResourceHandler to create custom object, not wxWindow and not one of natively supported classes? i tried to inherit from wxObject, but it appears that wxObject is not instantiable in python...
i think there is a bug in current wxXmlNode wrapper: as far as i
understand, methods GetChildren() and GetProperties() return a
pointer to the first element of the list instead of complete list.
That's not a bug, that's what they are supposed to do.
i think there is a bug in current wxXmlNode wrapper: as far as i understand, methods GetChildren() and GetProperties() return a pointer to the first element of the list instead of complete list.
Use GetNext to iterate through the list.
is it possible for wxXmlResourceHandler to create custom object, not wxWindow and not one of natively supported classes? i tried to inherit from wxObject, but it appears that wxObject is not instantiable in python...
No, it would need to derive from wxWindow. There are other ways to store/retrieve arbitrary Python objects in XML if that is what you are trying to do. XRC and the XML classes it uses are really only designed with windows and layout info in mind.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!