Quoting Paul McNett <p@ulmcnett.com>:
Paul Sijben wrote:
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.
I don't know anything about XRC in wxPython, but this smells like a
bug. If foo can't be found in the xrc file, an exception should
certainly be raised. The library choosing to prompt the user is just
wrong.
It's probably done as a wxLog message instead of a wxCHECK, which
would have been converted to a Python exception. You can supress
wxLog messages by creating an instance of wx.LogNull. Then you can
just check the return value without bothering the user.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!