From: Alex T. <al...@tw...> - 2004-08-20 16:52:49
|
At 08:37 20/08/2004 -0700, Bruce Landon wrote: >I am having some errors on moving an enhanced chat sample from the >prototype to >the pythonCard 0.8. The program actually runs in python fine but when I >try to >open the resource file in the resourceEditor I get the following error. (the >program and the resoruce files are attached). Suggestions appreciated as I >have grow attached to pythonCard and would like to continue with it. Resource files in 0.8 use "Application" in place of "stack". You need to edit this by hand. Here's the relevant section from the migration guide (site-packages/PythonCard/docs/migration_guide.txt) >Resource File Changes > >The Stack class was removed, so the first line of your .rsrc.py file needs >to have the 'stack' and 'Stack' strings replaced with 'application' and >'Application' as shown below. > >{ 'stack':{ 'type':'Stack', > >to > >{ 'application':{ 'type':'Application', > >In addition, in your source, self.stack.app references are now just >self.application. I don't know for sure that will solve your problem 100%, but it'll be a good start ... -- Alex Tweedly. |