two questions about XRC

John Salerno johnjsal at NOSPAMgmail.com
Sun Oct 1 16:18:49 PDT 2006


Ok, I finally did some testing on my own after finding an example to 
follow. Eventually it worked to create a menu, but I ran into two issues 
I'm confused about:

1. Why does "from wx import xrc" work, but you can't just call the 
method as "wx.xrc.XmlResource"?

2. Why do the classes in the XRC file have to be specified as 
"wxMenuBar" instead of "wx.MenuBar"? Does XRC not support the new format 
of the class names (with the period)? Or is this something different 
that is only used in the actual program to find the names in a module?

Thanks!




More information about the wxpython-users mailing list