[Pythonmac-SIG] Running Piddle on Interpreter with QD??

Jack Jansen Jack.Jansen@oratrix.com
Wed, 3 Apr 2002 00:08:34 +0200


On dinsdag, april 2, 2002, at 11:23 , Louis M. Pecora wrote:

> When I run a program that uses the Quickdraw backend of Piddle=20
> on the Interpreter I get a resource error:
>
> Traceback (most recent call last):
>   File "Drive:Code =9F:python =9F:plotwindow:plotwindow.py", line=20
> 2, in ?
>     from piddleQD import *          # The graphics engine
>   File "Drive:Applications =9F:Python 2.2:Lib:site-
> packages:piddle:piddleQD.py", line 45, in ?
>     import W
>   File "Drive:Applications =9F:Python 2.2:Mac:Tools:IDE:W.py",=20
> line 5, in ?
>     from Wbase import *
>   File "Drive:Applications =9F:Python=20
> 2.2:Mac:Tools:IDE:Wbase.py", line 698, in ?
>     _cursors =3D {
> MacOS.Error: (-192, 'Resource not found')

If you use W outside of the IDE you must make sure that you have=20
it's resource file (:Mac:Tools:IDE:Widgets.rsrc) open.

Hmm, coming to think of it: W can take care of this itself since=20
we have the macresource module. Just?
--
- Jack Jansen        <Jack.Jansen@oratrix.com>       =20
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution --=20
Emma Goldman -