johngrayson at home.com
Tue May 30 19:40:09 EDT 2000
In article <ajXY4.133227$MB.2566779 at news6.giganews.com>,
Brian Fritz <brianfr at grace.speakeasy.org> wrote:
> I just downloaded and installed the pmw tarball on my NT box.
> looked pretty straight forward so I'm a bit mystified by the error I'm
> getting. The "import" seems to be finding the library but I can't call
> the "initialise" function which seems to be a common call in all the
> examples I've looked at.
> > PythonWin 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on
> > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> > Portions Copyright 1994-2000 Mark Hammond
(MHammond at skippinet.com.au)
> > >>> import Pmw
> > >>> root = Pmw.initialise()
> > Traceback (innermost last):
> > File "<interactive input>", line 1, in ?
> > AttributeError: initialise
> The version of Pmw is 0.8.4.
> I had the same problem using the console shell and I have added the
> to the directory I installed Pmw into to the PYTHONPATH registry
> Maybe it was the long weekend... Am I missing something here?
You can't use Tkinter with PythonWin (Pmw is pure Tkinter).
If you want to use Tkinter, you'll have to run the Win32 version
of Python, not PythonWin... Sorry!
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list