I have used VPython 4.0Beta for a long time, but last week I suddenly found that VPython had just jump to 5.0 without 4.0 release! As congratulation, I would like to post a demo of using WxPython & VPython together.
The demo has been tested under VPython 4.0Beta & WxPython 2.8, with OS WinXP and Hiweed 2 RC3 (a Linux distribution based on Ubuntu), except that it is not able to exit normally. The program is simple:
- Show a animation window generated by VPython, and a control window generated by WxPython
- There is a moving car in the animation window
- In the control window, you can start and stop the car, change its speed and move it forward and backward step by step
The program can be started by the following command:
python main.py
The source code is here, or:
Any advice is welcome.