On Wed, 2004-11-17 at 11:59 -0700, Owen Densmore wrote:
> Looking in the archives, I did not see anything definitive about using
> VPython with the MacPython/TkAqua package. I did not succeed in doing
> so.
> First, I downloaded and installed vpython, and the demos ran fine,
> using the default x11 Tk windows. Great!
To be specific - VPython does not use Tk. There is one demo program
that uses TkInter from Python, but Visual itself is still using Gtk+.
You cannot change this behavior right now.
> I then installed TkAqua, then installed the MacPython "additional
> packages" which includes an IDE and package manager. I used the
> package manager to install tkinter, which successfully uses TkAqua.
>
> Thus I get to the point that I can run both TclTk and Python with Aqua
> windows rather than the X11 windows. Very sweet!
>
> However, when I modify the VPython script to use the above, by changing
> it to use /usr/bin/pythonw rather than /sw/bin/python (below), it dies
> because it cannot find the visual package.
Option #1: Build VPython from source against the MacPython package
yourself.
Option #2: Copy the components of Visual
from /sw/lib/python2.3/site-packages to the site-packages directory of
the MacPython build, and pray that the two are binary compatable. If
they are not, you will probably get one or more weird crashes.
Note that in either case, Visual will still need to build against the
Gtk package in /sw, since it uses that library for its own window(s).
Also, you may not be able to use the TkAqua package in conjunction with
Visual at all. It is known to be incompatible with PyGtk, for example.
HTH,
-Jonathan
|