From: CL <clc...@gm...> - 2009-01-15 05:54:48
|
It seems there are quite a number of developers looking for simple examples showing an integration of wxpython and vpython, I have just written two examples and put it here: http://code.google.com/p/vpythonex1/ (as my robot simulator is quite complicated). In these examples, I try to use the docking technique described in http://mientki.ruhosting.nl/data_www/pylab_works/pw_vpython_docking.html I use MoveWindow instead of SetWindowPos, in order to make it work on the new version of vPython. I have not tested them on previous verion of vPython. This examples only work on Windows platform because the docking technique is depending on win32 api. You can change it to non-docking version easily by removing some code in vWorld object. Example 1 is just the bounce2 sample program implemented in a wxdialog box. Example 2 is four bounce2 windows in a wxdialog box. Hope this can help you. |