Re: PythonCard layoutEditor /resourceEditor on Mac OS 10.5 (leopard) problems

"Christian Boulanger" <[email protected]> Tue, 29 Apr 2008 22:48:40 +0200
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
Ok, here is how it works for me: copy all the *.rsrc.py from the
modules subdirectory to the parent directory. But it is strange and
should not be necessary.

2008/4/29 Christian Boulanger <[email protected]>:

> 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
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Pythoncard-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pythoncard-users