From: Christian B. <c.b...@qx...> - 2008-04-29 11:21:41
|
Hello, I have problems getting the layoutEditor or resourceEditor to work on my Mac (OS 10.5 Leopard). I have tried 0.8.2 and CVS. The examples work in both. But trying to start the layoutEditor, for example, results in no resource file for /Users/bibliograph/Programme/PythonCard/tools/ layoutEditor/multipropertyEditor Traceback (most recent call last): File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/Library/ Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac- unicode/wx/_core.py", line 14095, in <lambda> File "/Library/Python/2.5/site-packages/PythonCard/tools/ layoutEditor/layoutEditor.py", line 153, in on_initialize self.propertyEditorWindow = model.childWindow(self, PropertyEditor) File "/Library/Python/2.5/site-packages/PythonCard/model.py", line 213, in childWindow rsrc = resource.ResourceFile(filename).getResource() File "/Library/Python/2.5/site-packages/PythonCard/resource.py", line 45, in __init__ self.dictionary = util.readAndEvalFile(rsrcFileName) File "/Library/Python/2.5/site-packages/PythonCard/util.py", line 39, in readAndEvalFile f = open(filename) TypeError: coercing to Unicode: need string or buffer, NoneType found there is a file PythonCard/tools/layoutEditor/modules/ multipropertyEditor.rsrc.py When I resize the window, I get the following errors Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextConcatCTM: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSaveGState: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: doClip: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSaveGState: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSetBlendMode: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSetShouldAntialias: invalid context Traceback (most recent call last): File "/Library/Python/2.5/site-packages/PythonCard/model.py", line 884, in _dispatch handler(background, aWxEvent) File "/Library/Python/2.5/site-packages/PythonCard/tools/ layoutEditor/layoutEditor.py", line 560, in on_size self.createDC() File "/Library/Python/2.5/site-packages/PythonCard/tools/ layoutEditor/layoutEditor.py", line 556, in createDC dc.SetLogicalFunction(wx.INVERT) File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/Library/ Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac- unicode/wx/_gdi.py", line 4079, in SetLogicalFunction wx._core.PyAssertionError: C++ assertion "status == noErr" failed at ../src/mac/carbon/graphics.cpp(1324) in EnsureIsValid(): Cannot nest wxDCs on the same window Thanks for any pointers, Christian |