|
From: Owen D. <ow...@ba...> - 2004-11-17 18:59:32
|
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! 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. Now, I'm a newbie to python, so am not aware of how to import packages etc for a program like vpython. I know the MacPython package manager can download and install the Numeric package, but it does not have a pointer to the visual package. Is there a simple way for me to modify my startup script to use the /sw/../visual package? Is this the right approach? I suspect not, because there are likely built-in x11 dependencies in the visual package itself. Thanks -- Owen Owen Densmore 908 Camino Santander Santa Fe, NM 87505 Cell: 505-570-0168 Home: 505-988-3787 http://backspaces.net #! /bin/sh PYTHON=/usr/bin/pythonw visualdemodir=/sw/lib/python2.3/site-packages/visual/demos visualidledir=/sw/lib/python2.3/idlelib cd $visualdemodir $PYTHON $visualidledir/idle |