[PyOpenGL-Users] Separating OpenGL window from widgets
Brought to you by:
mcfletch
From: Rick M. <rm...@sa...> - 2005-06-20 16:19:15
|
Thanks to help given by Mike and others on this list, I've develop and released a little program that uses Python, OpenGL, and wxwidgets to do simple molecular visualization. The program is called Vimes, and is available at http://vimes.sf.net I would like to separate the widgets from the OpenGL window. Currently, I use wx.glcanvas.GLCanvas() to put an OpenGL window inside of a wx widget. However, for portability and flexibility, I'd like to separate the two, and have a separate OpenGL window and a separate set of wx widgets. The problem is that I don't know how to handle the event loops. I assume that the wx event loop is handling everything for me right now, and I don't know how to work with two separate event loops. Do I spawn a separate process for the viewer? If so, how do I talk to it? Has anyone done anything along these lines? If so, I'd be grateful for pointers. Rick Rick Muller - rm...@sa... - http://www.cs.sandia.gov/~rmuller Computational Materials Methods Sandia National Laboratories PO Box 5800, M/S 1110 Albuquerque, NM 87185-1110 |