May 20, 2009

Demo of using WxPython & VPython together


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:
  1. Show a animation window generated by VPython, and a control window generated by WxPython
  2. There is a moving car in the animation window
  3. 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.

May 18, 2009

Great wedding Bai & Yin congradulation on you new life together


During Labor day holiday, eelx and I attended the wedding of our friends Bai & Yin at Yin's hometown, and eelx acted as the moderator. Greetings from friends around the world, love story telling and her moderation was all so moving that tears rained down the bride's face, and hot tears filled the groom's eyes. Guests from the village were surprised and also moved since it was the first time for them to attend such wedding, so that they did not perform the embarrassed customs.

Cheers to the newly weds!