Aaron Brady wrote:
From: Aaron Brady [mailto:castironpi@comcast.net]
Sent: Tuesday, January 08, 2008 7:01 PM
Subject: [wxPython-users] XMLResource.LoadFromString expansionHi, Wrote a little add-on (or two) to LoadFromString in Python. (Should
generalize to C++.) Looking for feedback, offer to contribute.drawnread() loads a Window from an XRC file. Returns a container of
controls. Can be used:conts= drawnread( filen, "MyFrame1" )
conts.MyFrame1.Show()
conts.m_button11.SetDefault()
conts['m_button11'].SetDefault()
...Any thoughts so far? Time delay is understandable; this is non-trivial.
Help me to see the value of this over and above what we already have. The child widgets can already be fetched by name using XRCCTRL, and using the pywxrc tool you can generate a class that not only loads the XRC for an object but also makes attributes for all the child widgets.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!