|
From: Andy T. <an...@ha...> - 2001-11-22 04:12:23
|
After I had a look at my sample from the latest CVS I started to look at
some of the others as well. I am getting some errors running textRouter.
Since I'm not sure what is causing these errors I am just firing them to
the list for information. I've got the latest CVS of PythonCard
running on Python 2.1 on Windows 98 with wxPython 2.3.1.
When I start the sample the console window shows;
"""
Traceback (most recent call last):
File "c:\work\python\PythonCardPrototype\wxPython_binding.py", line
566, in dispatchOpenBackground
self.dispatch.eventOccurred( event.OpenBackgroundEvent(
self.scriptable ) )
File "c:\work\python\PythonCardPrototype\dispatch.py", line 71, in
eventOccurred
handler.getFunction()( self._scriptable, aEvent.getSource(), aEvent )
File
"C:\Work\Python\PythonCardPrototype\samples\textRouter\textRouter.py",
line 74, in on_openBackground
myURLDropTarget = trURLDropTarget(self)
File
"C:\Work\Python\PythonCardPrototype\samples\textRouter\trDragDrop.py",
line 8, in __init__
self.data = wxURLDataObject();
NameError: global name 'wxURLDataObject' is not defined
"""
When I tried to access File|Preferences, I got;
"""
Traceback (most recent call last):
File "c:\work\python\PythonCardPrototype\menu.py", line 300, in doMenu
item.notifyEventListeners( evt )
File "c:\work\python\PythonCardPrototype\event.py", line 310, in
notifyEventListeners
listener.eventOccurred( event )
File "c:\work\python\PythonCardPrototype\dispatch.py", line 71, in
eventOccurred
handler.getFunction()( self._scriptable, aEvent.getSource(), aEvent )
File
"C:\Work\Python\PythonCardPrototype\samples\textRouter\textRouter.py",
line 304, in on_menuFilePreferences_select
inputDetails = [["defaultDirectory", self.strs["genPrefs"]["defDirP"],\
AttributeError: TextRouter instance has no attribute 'strs'
"""
and the real deal breaker comes when I try and exit the application by
either selecting File|Exit from the menu or by pressing the 'Close'
button at the top right hand of the window;
"""
Traceback (most recent call last):
File
"C:\Work\Python\PythonCardPrototype\samples\textRouter\textRouter.py",
line 350, in OnCloseWindow
self.doExit()
File
"C:\Work\Python\PythonCardPrototype\samples\textRouter\textRouter.py",
line 356, in doExit
if self.generalPrefs["autoSaveConfig"] == 'Yes':
AttributeError: TextRouter instance has no attribute 'generalPrefs'
"""
I'm also getting a strange layout in the window (screenshots available
on request), but I think that is because this sample uses sizers which
are not rendering very nicely on Windows98.
Regards,
Andy
--
-----------------------------------------------------------------------
From the desk of Andrew J Todd esq.
"Another year older, still no wiser." - Me, on my birthday
|