HSG |
|
from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.Tk import * def display(g): glutSolidTeapot(2) glFlush(); g = Opengl(width=600,height=400) g.redraw = display g.pack() g.basic_lighting() g.set_background(1,0,0) g.mainloop()