From: Bruce P. <bap...@te...> - 2008-10-30 23:30:46
|
Hi Stef I did this some years ago, but as I recall, the key to using Vpython from Wx python is to create a client-server architecture. Create your Vpython application as a com object with variable parameters expressed as public methods. The server is launched from your Wxpython application. The Wxpython app provides the UI and allows updating the Vpython parameters with each pass through the control loop. Bruce At 03:10 PM 10/30/2008, you wrote: >From: Stef Mientki <s.m...@ru...> >Precedence: list >MIME-Version: 1.0 >To: vis...@li... >Date: Thu, 30 Oct 2008 00:18:31 +0100 >Message-ID: <490...@ru...> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed >Subject: [Visualpython-users] WPython + wxPython possible ? >Message: 5 > >hello, > >now there's some activity on the list, >I (and many other wxPython users) would love to use VPython from a >wxPython application. > >This doesn't seem to be possible at first sight, because both >environments claim the main loop >(but I'm not an expert). > >There's an example on youtube: >http://www.youtube.com/watch?v=nMNzMwDXHLA > >but this could well be 2 separate applications, >communicating in some clever way. >But that's also an acceptable solution. > >Any suggestions / answers / links ? > >thanks, >Stef Mientki |