Enumerating XML resource names
Hubbard, Gary
ghubbar at sandia.gov
Thu Jun 1 10:38:24 PDT 2006
Hi,
I am just starting out trying to use xrced, rather than constructing
frames and dialog boxes directly in the __init__ method.
I find it awkward to need code like
dlg.Item = xrc.XRCCTRL(dlg,'Item')
to all accessing the values with
dlg.Item.SetValue(...)
before showing the dialog box.
Is there a way to get all the resource names, so that could be done
automatically?
In fact it seems to me that it would be better to have this done
automagically, perhaps populating a dictionary so that one could either
do
dlg.rc = dlg.GetResources()
dlg.rc['Item'].SetValue(...)
or per perhaps even adding the members like Item to the class itself,
with appropriate helpers.
I looked through the source first, and don't see any way to walk the
resource nodes.
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20060601/0f850746/attachment.htm
More information about the wxpython-users
mailing list