[wxPython-users] XRC fits from the command line
Robin Dunn
robin at alldunn.com
Wed May 2 13:55:02 PDT 2007
Mike Driscoll wrote:
> Hi,
>
> I am having a weird issue with XRC in my wxPython app. I am using Python
> 2.4, wxPython 2.8 on Windows XP. I can run it fine by double-clicking the
> file and from just running the file from within IDLE. However, if I run it
> from the command line, the application locks up and if I run it from a
> batch file, I get the following traceback:
>
[...]
> , line 249, in XRCCTRL
> return window.FindWindowById(XRCID(str_id))
> AttributeError: 'NoneType' object has no attribute 'FindWindowById'
I expect that it is failing to load the xrc data. How are you doing
that? Is a full pathname used? Or is it assuming that the xrc file is
in the current directory but your current directory is somewhere else?
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list