def _onResize(width, height):
 if (height == 0):
  height = 1
 GL.glViewport(0, 0, width, height)
 GL.glMatrixMode(GL.GL_PROJECTION)
 GL.glLoadIdentity()
 GL.glOrtho((-1), 1, (-1), 1, (-1), 1)
 GL.glMatrixMode(GL.GL_MODELVIEW)
 GL.glLoadIdentity()

def _onResize ( width , height ) : if ( height == 0 ) : height = 1 GL . glViewport ( 0 , 0 , width , height ) GL . glMatrixMode ( GL . GL_PROJECTION ) GL . glLoadIdentity ( ) GL . glOrtho ( ( - 1 ) , 1 , ( - 1 ) , 1 , ( - 1 ) , 1 ) GL . glMatrixMode ( GL . GL_MODELVIEW ) GL . glLoadIdentity ( )
a default resize event handler .