XRC fits from the command line
Mike Driscoll
mdriscoll at co.marshall.ia.us
Tue May 1 14:41:29 PDT 2007
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:
Traceback (most recent call last):
File
"\\servername\netlogon\PythonPackages\Development\Timesheet\login.py",
line
152, in ?
app = LoginScreen(False)
File
"\\servername\netlogon\Python24\lib\site-packages\wx-2.6-msw-ansi\wx\_core
.p
y", line 7700, in __init__
self._BootstrapApp()
File
"\\servername\netlogon\Python24\lib\site-packages\wx-2.6-msw-ansi\wx\_core
.p
y", line 7352, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File
"\\servername\netlogon\PythonPackages\Development\Timesheet\login.py",
line
29, in OnInit
self.createWidgets()
File
"\\servername\netlogon\PythonPackages\Development\Timesheet\login.py",
line
34, in createWidgets
panel = xrc.XRCCTRL(self.frame, 'panel')
File
"\\servername\netlogon\Python24\lib\site-packages\wx-2.6-msw-ansi\wx\xrc.p
y"
, line 249, in XRCCTRL
return window.FindWindowById(XRCID(str_id))
AttributeError: 'NoneType' object has no attribute 'FindWindowById'
LoginScreen is subclassed from wx.App.
Any help is appreciated.
Mike Driscoll
Applications Specialist
MCIS - Technology Center
More information about the wxpython-users
mailing list