|
From: Kevin A. <al...@se...> - 2001-08-21 03:48:04
|
The .rsrc.py files are just dictionaries and only provide the descriptions
of the application components, so they can't be run by themselves.
The minimal.rsrc.py file that you included looks fine. If you renamed one
file, you must rename the corresponding file as well. Eventually, we'll
probably make this more flexible, but for now since you have:
minimal.rsrc.py
You must be using a corresponding file named 'minimal.py' or 'minimal.pyw'
which is defined in your 'minimal.rsrc.py' here:
{ 'type':'Background',
'file':'minimal.py',
'classname':'Minimal',
'name':'bgMin',
'components':
In addition, the classname should match the main class in your minimal.py
file. This is the line:
class Minimal(PythonCardPrototype.model.Background):
If you look at the other samples, you'll see how these elements match up.
ka
> -----Original Message-----
> From: pyt...@li...
> [mailto:pyt...@li...]On Behalf Of Ronald
> D Stephens
> Sent: Monday, August 20, 2001 8:36 PM
> To: pyt...@li...
> Subject: Re: [Pythoncard-users] IDLE and the PythonCardPrototype
>
>
> If you use the above minimal.rsrc file, you will run my first
> PythonCard program. However, when I rename the program and rename the
> appropriate parts of teh rsrc file, it fails to run. Guess I'll
> have to study the codse a littel more...
>
> By hte way, teh demos do run for me launched form IDLE, most of
> the time, but I hgues stht's why I often get genral protecdtion
> faults ;-)))0000
>
> I must say, they do run now I see, at your suggestion, by just
> double clicking on 'em in windows explorere....
>
> well, well
>
|