On Apr 29, 1:57 am, Panyasan <[EMAIL PROTECTED]> wrote: > Hi, > > I am one of the two developers working on the xml-to-javascript > converter (qxtransformer) John has mentioned and we are thrilled that > our project has found a use in the PythonCard community. > > However, we have a problem getting PythonCard to work on our Macs (Mac > OS 10.5 Leopard). We should probably be asking this on the PythonCard > help list, but since the list seems to be somewhat deserted (very few > posts) and John is active here and people seem to be using PythonCard, > maybe someone has an idea. It might be very simple and stupid - I have > never worked with python before. > > I am using > - PythonCard 0.8.2 release on Leopard, which is copied by setup.py to / > Library/Python/2.5/site-packages > - John's layoutEditor package, (http://qxtransformer.googlegroups.com/ > web/layoutEditor.zip) > > PythonCard email list says that Leopard and PythonCard 0.8.2 seem to > like each other generally: > > http://sourceforge.net/mailarchive/forum.php?thread_name=EE5213D5-A00... > > and I can get the examples working. However, when I start John's > modified layoutEditor.py, I get an empty window and the following > error is thrown: > > 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
Christian, It appears you're missing a file. Where did you placed my program? I see that there are two places being mentioned: > no resource file for /Users/bibliograph/Programme/PythonCard/tools/ > layoutEditor/multipropertyEditor and > File "/Library/Python/2.5/site-packages/PythonCard/tools/ > layoutEditor/layoutEditor.py", line 556, in createDC -- http://mail.python.org/mailman/listinfo/python-list