[Pythonmac-SIG] Getting PiddleQD to work.

Chris Barker cbarker@jps.net
Mon, 18 Sep 2000 11:06:40 -0700


"Louis M. Pecora" wrote:
> Has anyone had any experience with the plotting package Piddle?  Almost got Piddle to work on my G3 running system 8.6, but have some problems.

I have very little experience, but I have got the tests running. NOTE:
I'm running 1.5.2c I have no idea if it works with 2.0

> After putting the QDRotate.ppc.slb in the Mac:Tools:Plugins folder and setting some paths I can get Piddle to run piddletest.  Tk seems to work (at least at first glance), but the QuickDraw backend of Piddle only runs in the IDE, so the docs say.

That appears to be true. I got the "import W" error when I try to use it
without the IDE. That is probably fixable, however.

>However, when I try to run the piddletest in the IDE, nothing happens.  Cmd-R or clicking on Run button does nothing.

I tried this, and it turns out to be an IDE/Python issue, and really
nothing to do with Piddle. If you look in piddletest, it has the classic
"if __name__ == "__main__" line at the end. When run in the IDE,
__name__ is not __main__ (the IDE itself is main, and the script you're
editing is in it's own namespace. Try going to the interactive window,
set the namespace to piddletest (click ont he little arrow on the top
right of the interactive window, over the scrollbar). then type
mainLoop() at the prompt. It works for me. (except PIL, I don't know
why)

NOTE to Just: Yet another reason why the IDE could benifit from a "run
as main" option.

>Anyone know more about this plotting package?  It really looks nice, but Joe Strout who headed the team that developed it, bowed out.  Is Piddle supported anymore?

Piddle is still being supported, but perhaps not the QD backend.

> If so, by whom?  Thanks for any pointers.

Look at the sourceforge site. There is an e-groups mailing list for
piddle. There should be a pointer to it on sourceforge.

http://piddle.sourceforge.net/


Good luck!!!

-- 
Christopher Barker,
Ph.D.                                                           
cbarker@jps.net                      ---           ---           ---
http://www.jps.net/cbarker          -----@@       -----@@       -----@@
                                   ------@@@     ------@@@     ------@@@
Water Resources Engineering       ------   @    ------   @   ------   @
Coastal and Fluvial Hydrodynamics -------      ---------     --------    
------------------------------------------------------------------------
------------------------------------------------------------------------