What "python window"?  The problem is pretty easy, but what windowing system are you using?  wx?  pygame?  OpenGL.GLUT?
Ian