[Tutor] a question on the BLT plotting library
Mon, 4 Sep 2000 15:37:10 +0200 (MET DST)
I'm still completely new to Python, and I'm trying to figure out a =
simple method to produce some "decent looking" (scientific) plots.
Looking around on the web I have found Python megawidgets, that provide =
interface to the BLT plotting library.
I have installed the current verison of BLT (version 2.4u), to go along =
tcl/tk installation that is standard on my workstation (version 8.2), =
and I did=20
put in the lib/python1.5/site-packages/ directory the Pmw installation.
I'm working on a Sun worstation using Solaris 2.5.1, and I have =
Python and the BLT library in my private directories.
Now, I can use the BLT library (which means I can run succesfully the =
program provided with it), and the Pmw widgets (again, the self-test =
when I try to run any simple demo using the Pmw.Blt class I get error =
like this one:
>>> from Tkinter import *=20
>>> import Pmw
>>> root =3D Tk()
>>> g =3D Pmw.Blt.Graph(root)
Traceback (innermost last):
File "<pyshell#3>", line 1, in ?
g =3D Pmw.Blt.Graph(root)
lib/PmwBlt.py", line 260, in __init__
Tkinter.Widget.__init__(self, master, _graphCommand, cnf, kw)
line 1084, in __init__
TclError: invalid command name "::blt::graph"
Also the initialisation suggested by the Pmw folks
( >>> import Pmw
>>> root =3D Pmw.initialise() )
produces the same identical error message.
Along the same lines, when I run the Pmw demos program, if I try the BLT =
tests, I get the message=20
"Sorry, the BLT package has not been installed on this system. Please =
and try again"
Does anyone have any idea on what is happening ??? I presume Python =
the BLT installation, but how do I let it know about it ??
Your help on this would be much appreciated. Thanks a lot.