Robin,
could you let us know the current state of resource files and wxPython?
wxDesigner can import and export XML for layout info. I've included the
output from the minimal sample below. In addition, Roman Rolinsky posted
about XRCed back in August
http://aspn.activestate.com/ASPN/Mail/Message/757596
and it looks like XRCed is now included in the tools directory for wxPython.
XRCed home page
http://www.mema.ucl.ac.be/~rolinsky/xrced/
What I was wondering is whether this is the new standard for resources in
wxWindows/wxPython? If so, does it support menus, the output below didn't
include the menu definitions. Finally, do you have any code snippets or are
there new handlers in the latest wxPython beta to load and create windows,
frames, controls, etc. from the XML resource definitions? wxDesigner appears
to be generating code for layout (like Boa) and the XML is just for
import/export.
Riaan if your reading this, do you have any plans for supporting the XML xrc
files?
ka
···
---
<?xml version="1.0"?>
<!-- XML resource generated by wxDesigner from file: minimal.wdr -->
<!-- Do not modify this file, all changes will be lost! -->
<resource>
<object class="wxPanel" name="MyDialogFunc">
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>5</border>
<object class="wxStaticBoxSizer">
<orient>wxVERTICAL</orient>
<label>Copyright</label>
<object class="sizeritem">
<flag>wxALIGN_CENTRE|wxALL</flag>
<border>5</border>
<object class="wxStaticText" name="ID_TEXT">
<fg>#0000FF</fg>
<label>Minimal app
(C)opyright 2000 Robert Roebling</label>
</object>
</object>
</object>
</object>
<object class="sizeritem">
<flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>5</border>
<object class="wxStaticLine" name="ID_LINE">
<size>20,-1</size>
<style>wxLI_HORIZONTAL</style>
</object>
</object>
<object class="sizeritem">
<flag>wxALIGN_CENTRE|wxALL</flag>
<border>5</border>
<object class="wxButton" name="wxID_OK">
<label>OK</label>
</object>
</object>
</object>
</object>
</resource>