combining vpython and wxpython

Hi guys,

Both wxpython and vpython are great tools, which I’d love to use together for my program. The problem is they each run their own event loop. Now almighty Google taught me there were some ancient threads on the topic stating it would be very hard to combine the two. However, at Youtube (http://www.youtube.com/watch?v=nMNzMwDXHLA) there is some visual evidence it is may yet be feasible.

Has anyone here ever tried embedding vpython in a wxpython program/frame/thread/window? Any advice on how to proceed?

Kudos,
Jasper

Jasper Stolte wrote:

Hi guys,

Both wxpython and vpython are great tools, which I'd love to use together for my program. The problem is they each run their own event loop. Now almighty Google taught me there were some ancient threads on the topic stating it would be very hard to combine the two. However, at Youtube (http://www.youtube.com/watch?v=nMNzMwDXHLA) there is some visual evidence it is may yet be feasible.

Has anyone here ever tried embedding vpython in a wxpython program/frame/thread/window?

Yes, but I didn't succeed :frowning:
The movie looks very cool indeed,
and me too would love to combine wxPython and VPython.

There are also other 3D packages, which might be easier to interface,
but I can't remember or find my notes about that anymore.

cheers,
Stef

···

Any advice on how to proceed?

Kudos,
Jasper

------------------------------------------------------------------------

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Stef Mientki wrote:

Has anyone here ever tried embedding vpython in a wxpython program/frame/thread/window?

IIUC, VPython used Tkinter and OpenGL -- how much TKinter is there? It doesn't look there is much. Rather than combing them, perhaps you could make a version with wxPython, pyCrust, and OpenGL?

-CHB

···

--
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

From what I can tell all the interesting stuff happens in the display class in ui.py
That class inherits directly from cvisual.display, which I cannot tap in to as it is in the cvisual library.
I dunno how to continue from there.

  • Jasper
···

On Wed, Sep 17, 2008 at 7:41 AM, Christopher Barker Chris.Barker@noaa.gov wrote:

Stef Mientki wrote:

Has anyone here ever tried embedding vpython in a wxpython program/frame/thread/window?

IIUC, VPython used Tkinter and OpenGL – how much TKinter is there? It doesn’t look there is much. Rather than combing them, perhaps you could make a version with wxPython, pyCrust, and OpenGL?

-CHB

Christopher Barker, Ph.D.

Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959 voice

7600 Sand Point Way NE (206) 526-6329 fax

Seattle, WA 98115 (206) 526-6317 main reception


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

In the video I notice there’s two different frames. The user is probably running two separate apps, one for wxPython and one for vpython and communicating between them with a server or something.

···

On Tue, Sep 16, 2008 at 3:52 PM, Jasper Stolte jasperstolte@gmail.com wrote:

Hi guys,

Both wxpython and vpython are great tools, which I’d love to use together for my program. The problem is they each run their own event loop. Now almighty Google taught me there were some ancient threads on the topic stating it would be very hard to combine the two. However, at Youtube (http://www.youtube.com/watch?v=nMNzMwDXHLA) there is some visual evidence it is may yet be feasible.

Has anyone here ever tried embedding vpython in a wxpython program/frame/thread/window? Any advice on how to proceed?

Kudos,
Jasper


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users