From: <Art...@rs...> - 2001-04-06 22:00:24
|
>> Now if I can get the plane to rotate interactively with the mouse. Not sure its relevant to where you are going, but in the geometry stuff I'm playing with, I have a plane defined by three "points" and manipulate the plane position with the mouse by picking and moving any of the points which define it. You could constrain it by only having only one or two of the points pickable, visible. ART |
From: Andrew M. <mo...@tb...> - 2001-04-10 17:01:12
|
I have gone back to the Windows version of Vpython, in an effort to better understand how it works. When I install on Windows, I get a shortcut to idle.bat which is in my C:\Python20\Tools\idle directory. Looking at the file, I see that it calls the "start" program from \Windows\Command to execute the idle.pyw file in the same directory. Am I correct so far? Because now, I don't really know what is going on. I have never used this "start" program, so I don't know what it does. The reason I am curious, is that I would like to know what IDLE is, as far as Windows is concerned. Is there a way to get into IDLE by calling an executable program that is in the \Python20 directory? If there is, I haven't figured out how to do it, and I'd be curious to know if it is possible or not. Thanks! Andrew |
From: Bruce S. <ba...@an...> - 2001-04-10 18:19:00
|
I don't recognize these behaviors. The VPython installer (used after installing Python 2.0 on Windows) creates an icon on the desktop which when doubled-clicked invokes C:\Python20\Tools\idle\idle.pyw, not idle.bat (I don't know under what circumstances idle.bat would be of any use). A similar shortcut to idle.pyw is listed on the Start menu under Python 2.0 as "IDLE (Python GUI)". The puzzle is, where did you find a shortcut to idle.bat? Invoking idle.pyw brings up an editing environment, "IDLE", which was modified by Dave Scherer from the standard one distributed with Python 2.0. This modified version has many nice features for rapid edit/run cycles. Press F5 to run, and your file is automatically saved and a (safe) separate process is spawned to run your program. Print output goes to a separate scrolling window which nicely packages output from consecutive runs if you don't deliberately kill that window. Pressing F1 gives you useful documentation on Python and on the Visual module. Bruce Sherwood --On Tuesday, April 10, 2001 12:54 -0500 Andrew Morrison <mo...@tb...> wrote: > When I install on Windows, I get a shortcut to idle.bat which is in my > C:\Python20\Tools\idle directory. Looking at the file, I see that it > calls the "start" program from \Windows\Command to execute the idle.pyw > file in the same directory. > > The reason I am curious, is that I would like to know what IDLE is, as far > as Windows is concerned. Is there a way to get into IDLE by calling an > executable program that is in the \Python20 directory? If there is, I > haven't figured out how to do it, and I'd be curious to know if it is > possible or not. |
From: Andrew M. <mo...@tb...> - 2001-04-10 20:05:39
|
Oops!! I guess I should have looked more closely. I was looking at the "\tools\visual\" directory and the idle.bat was the only executable file that I saw there, so naturally I assumed... I was looking at the Windows directory remotely, so I was just sort of trying to make an educated guess. Anyway, the reason I was looking at this was to try to run Vpython (Windows version) with WINE on my redhat machine at school. I haven't had too much luck with compiling the source and getting it going as suggested in the earlier thread. I thought this might work, but so far, no go. In case you're interested, Using WINE I have: Installed Python2.0 Installed Vpython Ran python.exe and pythonw.exe which both "exited with a successful status" (I don't know if that means that it worked or not, since I didn't really get anything else.) But, when trying to get python to run the idle.py WINE choked and died. Oh well, back to recompiling, I guess. Andrew On Tue, 10 Apr 2001, Bruce Sherwood wrote: > I don't recognize these behaviors. The VPython installer (used after > installing Python 2.0 on Windows) creates an icon on the desktop which when > doubled-clicked invokes C:\Python20\Tools\idle\idle.pyw, not idle.bat (I > don't know under what circumstances idle.bat would be of any use). A > similar shortcut to idle.pyw is listed on the Start menu under Python 2.0 > as "IDLE (Python GUI)". The puzzle is, where did you find a shortcut to > idle.bat? > > Invoking idle.pyw brings up an editing environment, "IDLE", which was > modified by Dave Scherer from the standard one distributed with Python 2.0. > This modified version has many nice features for rapid edit/run cycles. > Press F5 to run, and your file is automatically saved and a (safe) separate > process is spawned to run your program. Print output goes to a separate > scrolling window which nicely packages output from consecutive runs if you > don't deliberately kill that window. Pressing F1 gives you useful > documentation on Python and on the Visual module. > > Bruce Sherwood > > --On Tuesday, April 10, 2001 12:54 -0500 Andrew Morrison > <mo...@tb...> wrote: > > > When I install on Windows, I get a shortcut to idle.bat which is in my > > C:\Python20\Tools\idle directory. Looking at the file, I see that it > > calls the "start" program from \Windows\Command to execute the idle.pyw > > file in the same directory. > > > > The reason I am curious, is that I would like to know what IDLE is, as far > > as Windows is concerned. Is there a way to get into IDLE by calling an > > executable program that is in the \Python20 directory? If there is, I > > haven't figured out how to do it, and I'd be curious to know if it is > > possible or not. > > > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > http://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Ari H. <ahe...@an...> - 2001-04-11 17:38:35
|
On Tue, Apr 10, 2001 at 03:58:32PM -0500, Andrew Morrison wrote: > > Anyway, the reason I was looking at this was to try to run Vpython > (Windows version) with WINE on my redhat machine at school. I haven't had > too much luck with compiling the source and getting it going as suggested > in the earlier thread. I thought this might work, but so far, no go. > This is a bad idea. It will not work. Don't even bother. The reason there is a nice friendly linux port for VPython is so that you can use it under Linux. Repeat after me, "Linux version: Good! Windows version: bad!". :) Compiling the Linux version is easy. You just need to get RPMs (from rpmfind.net) for the libraries it needs -- primarily the Mesa/GL devel libs, and GtkGLArea4/5 (whatever, either will work) devel libs. Ari |
From: Andrew M. <mo...@tb...> - 2001-04-11 19:01:40
|
Uncelievable! I went back and re-read your other suggestions from the previous thread. After looking around on rpmfind, I could on lyfind the libstdc++ for RedHat7.0. I'm using RH6.2, but I decided to install anyway. Then, the visual python rpm actually installed cleanly! So, thanks for you help on that. Now, I'm still left with my other question about IDLE. If IDLE is just the programming environment, I am guessing it is not included with the visual python rpm. I went to python.org and saw I could download IDLE. But, if I get that installed will it automatically use the visual modules? Also, I've tried running some of the demo programs. Here's the output: [morris@domra Demos]$ python1.5 orbit.py Visual-2000-11-26 Traceback (innermost last): File "orbit.py", line 1, in ? from visual import * File "/usr/lib/python1.5/site-packages/visual/__init__.py", line 12, in ? from Numeric import * ImportError: No module named Numeric Do I need to get a Numeric module? Sorry to be such a bother. I have tried looking through the documentation, but didn't really find any answers to these questions. Andrew On Wed, 11 Apr 2001, Ari Heitner wrote: > On Tue, Apr 10, 2001 at 03:58:32PM -0500, Andrew Morrison wrote: > > > > Anyway, the reason I was looking at this was to try to run Vpython > > (Windows version) with WINE on my redhat machine at school. I haven't had > > too much luck with compiling the source and getting it going as suggested > > in the earlier thread. I thought this might work, but so far, no go. > > > > This is a bad idea. It will not work. Don't even bother. > > The reason there is a nice friendly linux port for VPython is so that you > can use it under Linux. > > Repeat after me, "Linux version: Good! Windows version: bad!". > > :) > > Compiling the Linux version is easy. You just need to get RPMs (from > rpmfind.net) for the libraries it needs -- primarily the Mesa/GL devel libs, > and GtkGLArea4/5 (whatever, either will work) devel libs. > > > > Ari > > > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > http://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Ari H. <ahe...@an...> - 2001-04-11 19:44:13
|
On Wed, Apr 11, 2001 at 02:54:34PM -0500, Andrew Morrison wrote: > > Uncelievable! I went back and re-read your other suggestions from the > previous thread. After looking around on rpmfind, I could on lyfind the > libstdc++ for RedHat7.0. I'm using RH6.2, but I decided to install > anyway. Then, the visual python rpm actually installed cleanly! So, > thanks for you help on that. :) > > Now, I'm still left with my other question about IDLE. If IDLE is just > the programming environment, I am guessing it is not included with the > visual python rpm. I went to python.org and saw I could download > IDLE. But, if I get that installed will it automatically use the visual > modules? Um, that's not our IDLE, that's Guido's IDLE. You're welcome to use it -- it will work for any python program just fine, including Visual programs. But it will have the same problem as Guido's IDLE on Windows -- programs are run in the same thread, so if the program crashes/hangs, so does the IDE. Most Unix people already have their own favorite text editors (nedit/vi/emacs/SciTE/whatever) so we don't usually hear opinions on that as it relates to VPython. > > Also, I've tried running some of the demo programs. Here's the output: > > [morris@domra Demos]$ python1.5 orbit.py > Visual-2000-11-26 > Traceback (innermost last): > File "orbit.py", line 1, in ? > from visual import * > File "/usr/lib/python1.5/site-packages/visual/__init__.py", line 12, in ? > from Numeric import * > ImportError: No module named Numeric > > > Do I need to get a Numeric module? Yeah, sorry. That's a runtime dependency of the Visual module, so it doesn't yell at you on install (it just fails to run). fun. I think the package you want is python-numpy. I see it on rpmfind. Good luck, Ari |
From: heafnerj <hea...@vn...> - 2001-04-11 20:35:40
|
On Wed, 11 Apr 2001, Andrew Morrison wrote: > Uncelievable! I went back and re-read your other suggestions from the > previous thread. After looking around on rpmfind, I could on lyfind the > libstdc++ for RedHat7.0. I'm using RH6.2, but I decided to install > anyway. Then, the visual python rpm actually installed cleanly! So, > thanks for you help on that. > Yippee! I'm running RH7 too and I've not yet installed VPython on my machine. I'm glad to hear that everything installs correctly. I was worried that RH7 ships with Python 1.5 rather than Python 2.0, but I guess Visual will work with either version. Now, I guess my main concern is speed. My Linux box is a Pentium 166. Cheers, Joe Heafner -- My Book <http://www.willbell.com/new/fundephcomp.htm> My Home Page <http://users.vnet.net/heafnerj/> CVAC Home Page <http://users.vnet.net/heafnerj/cvac.html> PLEASE -- no Microsoft attachments! I will not read them! |
From: Ari H. <ahe...@an...> - 2001-04-11 20:52:51
|
On Wed, Apr 11, 2001 at 04:35:22PM -0400, heafnerj wrote: > On Wed, 11 Apr 2001, Andrew Morrison wrote: > > > Uncelievable! I went back and re-read your other suggestions from the > > previous thread. After looking around on rpmfind, I could on lyfind the > > libstdc++ for RedHat7.0. I'm using RH6.2, but I decided to install > > anyway. Then, the visual python rpm actually installed cleanly! So, > > thanks for you help on that. > > > Yippee! I'm running RH7 too and I've not yet installed VPython on my > machine. I'm glad to hear that everything installs correctly. I was > worried that RH7 ships with Python 1.5 rather than Python 2.0, but I guess > Visual will work with either version. > Um, that's an error on the web page. the Visual module will indeed work with either version, in a vacuum. the linux packages specifically install it into the python 1.5.2 site-packages directory. On linux, Visual *should* be used with python 1.5.2. Ari |
From: Anton S. <br...@po...> - 2001-04-12 03:38:12
|
Ari Heitner wrote: > Compiling the Linux version is easy. You just need to > get RPMs (from rpmfind.net) for the libraries it needs -- Tried that. Got nowhere. (Don't ask me for details because since then I managed to install a broken version of rpm, and have failed so far to install a working version.) -- Anton Sherwood -- br...@p0... -- http://ogre.nu/ (returning to lurk mode) |