From: CL <clc...@gm...> - 2008-10-31 01:26:34
|
It is possible and quite simple. I have intergrated it with PyODE and wxPython and make a robot simulator: http://hk.myblog.yahoo.com/jw!afd6dGGRHBRkp2laqwk198fg/article?mid=413 A robot arm controller also: http://hk.youtube.com/watch?v=c5RNDPbl_kY http://hk.youtube.com/watch?v=1tg5v9Z9BPw Use multiple thread can make the work down easily. Run the main application of wxPython as usual. _app = myApp(0) _app.MainLoop() Create the world scene = display(title=title, width=width,height=height,x=x,y=y) Create thread for the scene object control. Start the thread The thread's main loops is something like this: while not finish: update objects in the scene rate(time slice) CL |