On Oct 21, 12:13 pm, Robert Kern <robert.k...@gmail.com> wrote: > On 2009-10-21 10:50 AM, Yang Yang wrote: > > > > > Hello, > > > I tried to follow the following code demonstrating the use of Pmw.BLT: > > > >>> from Tkinter import * > > >>> import Pmw > > >>> master = Tk() > > >>> g = Pmw.Blt.Graph( master ) > > > I got the following error message after I typed the last line: > > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > File "C:\Python26\lib\site- > > packages\Pmw\Pmw_1_3\lib\PmwBlt.py", line > > 260, in _ > > _init__ > > Tkinter.Widget.__init__(self, master, _graphCommand, cnf, kw) > > File "C:\Python26\lib\lib-tk\Tkinter.py", line 1932, in __init__ > > (widgetName, self._w) + extra + self._options(cnf)) > > _tkinter.TclError: invalid command name "::blt::graph > > > I am a newbie in python. Does anybody know what causes this error? I > > am running python 2.6.3 under windows xp. > > You need to install BLT for Tcl. It is not a standard part of Tcl, and it is > not > included in the version of Tcl that comes bundled with Python. > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless enigma > that is made terrible by our own mad attempt to interpret it as though it > had > an underlying truth." > -- Umberto Eco
Thanks, Robert! Here is another question on this. I am running Python 2.6.3 which uses Tcl 8.5. I could not find the BLT binary source for Tcl 8.5. The latest version is for Tcl 8.4. How could I install BLT? For example, can I change the default Tcl version that Python has access to to some older version? Thanks! -- http://mail.python.org/mailman/listinfo/python-list