From: Kevin A. <al...@se...> - 2001-11-22 04:24:03
|
wxURLDataObject is a wxPython 2.3.2 class for handling drag and drop of URLs from browsers. The problem is most likely that the initialization gets screwed up and so everything else breaks. I'm pretty sure Simon meant to add a 2.3.2 check in his code and do a sys.exit() if not found or disable the drag n drop, but I was rushing the update this morning, so it was overlooked. If you ugprade to 2.3.2b7 the problem will go away, otherwise just don't run that sample :) I'll wait until Simon has a chance to fix this before I do a 0.5.2 release. Almost everyone in the USA will be stuffing their faces with turkey tomorrow and shopping on Friday, so there is no hurry. ka > -----Original Message----- > From: pyt...@li... > [mailto:pyt...@li...]On Behalf Of Andy > Todd > Sent: Wednesday, November 21, 2001 8:18 PM > To: Pythoncard-Users > Subject: [Pythoncard-users] Problems with CVS samples > > > 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 |