This is the first public release of the Python Opengl/Tk Module (Version 0.7).

This module is around for some time now (read the README for a short
history and to see who contributed to it).

It works with or without the numeric extension to be released soon.
Needless to say that some parts are much more efficient with it
(Look e.g at the experimental Method gl.ColorVertex() in the example poly.py).

We hope it's a good staring point for OpenGL programming with Python.
Not everything is finished yet and feedback is welcome to make
this module more useful. Up to now it's a pure Unix release (Tk/OpenGL
widget only works on Unix, although you can use the glutmodule, openglmodule, 
glumodule on Windows boxes. There are people working on porting it to 
Windows...). It uses the OpenGL 1.0 API up to now, so you are welcome 
to add code.

A very simple example looks like:

#############################################################################

from Opengl import *

def redraw(o):
	gl.ClearColor(0.5, 0.5,.5, 0)
	gl.Clear(GL_COLOR_BUFFER_BIT)
	gl.Ortho(0,1,0,1,0,1)
	gl.Begin(GL_LINES)
	gl.Color3f(1,1,0)
	gl.Vertex2f(0,0)
	gl.Color3f(1,0,1)
	gl.Vertex2f(1,1)
	gl.Color3f(1,0,0)
	gl.Vertex2f(1,0)
	gl.Color3f(0,0,1)
	gl.Vertex2f(0,1)
	gl.End()

o = Opengl(width = 400, height = 400, double = 1)
o.redraw = redraw
o.pack(side = 'top', expand = 1, fill = 'both')
o.mainloop()

#############################################################################

Use the mouse buttons to see what happens! :-)

If you want to implement your own key or mouse bindings use the RawOpengl
class instead (Somebody has a better name?). Opengl is a Tk-Widget, so 
can be used as every other widget to build complex applications with Menus, 
Buttons and the like or e.g. with the Tix extension (Comboboxes, 
Notebooks, ...). By adding the corresponging class you can use it with 
the Grail Browser.

Have fun and I'm leaving for holidays now (2 weeks)

Tom

The whole module was uploaded to ftp.python.org (watch this space to see 
where you can dowload it) and is also available at 

http://www.python.de/src/PyOpenGL.tgz.

(This server should be reachable now). Other places will be added soon
(look at Mikes Announcement some weeks ago).



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

The Python Tk-OpenGL Module was written by (in alphabetical order): 

      David Ascher (david_ascher@brown.edu) 
      Mike Hartshorn (mjh@yorvic.york.ac.uk) 
      Jim Hugunin (hugunin@mit.edu) 
      Tom Schwaller (tom.schwaller@linux-magazin.de) 

The Python Tk-OpenGL widget is based on the Tk-OpenGL (Togl) widget of:

      Brian Paul (brianp@ssec.wisc.edu) 
      Ben Bederson (bederson@cs.unm.edu) 



