From: Kevin A. <al...@se...> - 2004-08-20 16:56:02
|
On Aug 20, 2004, at 8:37 AM, 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. > Just a reminder to everyone that you absolutely have to read the PythonCard/docs/migration_guide.txt file and update your code and resources or you will run into problems like the one Bruce reported with his resource. Every PythonCard release until version 1.0 will likely contain API and/or resource file changes that aren't backwards-compatible, but the number of changes between 0.7.3.1 and 0.8 was comparatively large, which is why I wrote the migration guide. All of the samples and tools included with PythonCard are always updated as the framework changes, so you don't have to worry about those. > <snip> > <uringchat.py>{'stack':{'type':'Stack', from 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. ka |