I haven’t tried it myself, but couldn’t you do a try/except? Not the most elegant solution, but as it is written in the Good Book: It is more blessed to ask forgiveness than to ask permission.
···
On Wed, Apr 23, 2008 at 8:36 AM, Paul Sijben sijben@eemvalley.com wrote:
Is there a way to find the class of a widget in XRC before trying to
Load it? (otherwise if you guess wrong the user is treated to an error
message)
–
www.fsrtechnologies.com
This exception can not be trapped. The user is confronted with a popup that tells that there is no wxFrame named FOO in the XRC file. The coder just finds the result to the call empty.
If I could trap it I would have no problems, I just don't want to have the user bing part of the exception handling 
Marc Tompkins wrote:
···
On Wed, Apr 23, 2008 at 10:21 AM, Paul Sijben <sijben@eemvalley.com > <mailto:sijben@eemvalley.com>> wrote:
Unfortunately the exception goes to the user not the coder
How so, if you trap it?
--
www.fsrtechnologies.com <http://www.fsrtechnologies.com>
------------------------------------------------------------------------
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users