From: Daniel B Miller <danbmil@an...> - 2004-07-02 22:23:00
If anyone is interested, I hacked up a workaround in the GLUT source.
Basically, there seems to be some confusion about the Windows call
SetWindowPos(). If anyone has a similar problem you can email me for the
danbmil at-sign cmu.edu
Faculty Research Associate
Carnegie Mellon University
West Coast Campus
We"ve got a modest (but quickly enlarging) research project using
PyOpenGL, GLUT, and Tkinter. So far we"ve been amazingly impressed with
the ease of use of PyOpenGL and related tools.
Our problem is this: we have a few open windows in Tk, and a main
rendering window in OpenGL. I would like to set things up so when the
user puts focus (ie selects) one of the Tk windows, the OpenGL window is
also brought up to the front (this is on win32/XP). Apparently,
glutpopwindow() only works on subwindows. In Tkinter, I can do
root.focus_force(), but there seems to be no similar command in GLUT.
TOGL looked interesting, but my install doesn"t run the togl demos
(demos/tom/pick.py, for instance). I tried looking through the togl docs,
but it seems a bit old and out of date. Soggy is promising but no code
So, any thoughts?