MCPcopy Create free account
hub / github.com/ipython/ipython / resize

Function resize

examples/IPython Kernel/gui/gui-glut.py:25–30  ·  view source on GitHub ↗
(width,height)

Source from the content-addressed store, hash-verified

23 glut.glutSwapBuffers()
24
25def resize(width,height):
26 gl.glViewport(0, 0, width, height+4)
27 gl.glMatrixMode(gl.GL_PROJECTION)
28 gl.glLoadIdentity()
29 gl.glOrtho(0, width, 0, height+4, -1, 1)
30 gl.glMatrixMode(gl.GL_MODELVIEW)
31
32if glut.glutGetWindow() > 0:
33 interactive = True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected