[Pythonmac-SIG] Problem with Piddle plotting with Python 2.1

Louis M. Pecora pecora@anvil.nrl.navy.mil
Tue, 8 May 2001 16:15:10 -0400


I have installed Python 2.1 and its own self tests are fine (running MacO=
S 9.1 on a G4).  I am now testing the drawing routines in the package Pid=
dle by running piddletest.py .  This worked under Python 1.52, but I now =
get the error message:

Traceback (most recent call last):
  File "Drive:Applications =9F:Python 2.1 =9F:*piddle:piddletest.py", lin=
e 395, in ?
    mainLoop()
  File "Drive:Applications =9F:Python 2.1 =9F:*piddle:piddletest.py", lin=
e 372, in mainLoop
    docstr =3D __import__(backends[backend]).__doc__
  File "Drive:Applications =9F:Python 2.1 =9F:*piddle:piddleQD.py", line =
45, in ?
    import W
  File "drive:applications =9F:python 2.1 =9F:mac:tools:ide:W.py", line 5=
, in ?
    from Wbase import *
  File "drive:applications =9F:python 2.1 =9F:mac:tools:ide:Wbase.py", li=
ne 706, in ?
    _cursors =3D {
Mac OS Error: (-192, 'Resource not found')


The offending code is in Wbase.py :

_cursors =3D {
	"watch"	: Qd.GetCursor(QuickDraw.watchCursor).data,
	"arrow"	: Qd.qd.arrow,
	"iBeam"	: Qd.GetCursor(QuickDraw.iBeamCursor).data,
	"cross"	: Qd.GetCursor(QuickDraw.crossCursor).data,
	"plus"		: Qd.GetCursor(QuickDraw.plusCursor).data,
	"hand"	: Qd.GetCursor(468).data,
	"fist"		: Qd.GetCursor(469).data,
	"hmover"	: Qd.GetCursor(470).data,
	"vmover"	: Qd.GetCursor(471).data,
	"zoomin"	: Qd.GetCursor(472).data,
	"zoomout"	: Qd.GetCursor(473).data,
	"zoom"	: Qd.GetCursor(474).data,
}


I'm guessing one of the Qd. calls is the problem, but I have no idea whic=
h one.  Does anyone know what the trouble is?  Is there a fix?  Thanks fo=
r any help.



Cheers,

Lou Pecora