Disable event loop integration with glut. This sets PyOS_InputHook to NULL and set the display function to a dummy one and set the timer to a dummy timer that will be triggered very far in the future.
(self)
| 376 | self._apps[GUI_GLUT] = True |
| 377 | |
| 378 | def disable_glut(self): |
| 379 | """Disable event loop integration with glut. |
| 380 | |
| 381 | This sets PyOS_InputHook to NULL and set the display function to a |
| 382 | dummy one and set the timer to a dummy timer that will be triggered |
| 383 | very far in the future. |
| 384 | """ |
| 385 | import OpenGL.GLUT as glut # @UnresolvedImport |
| 386 | from glut_support import glutMainLoopEvent # @UnresolvedImport |
| 387 | |
| 388 | glut.glutHideWindow() # This is an event to be processed below |
| 389 | glutMainLoopEvent() |
| 390 | self.clear_inputhook() |
| 391 | |
| 392 | def enable_pyglet(self, app=None): |
| 393 | """Enable event loop integration with pyglet. |
nothing calls this directly
no test coverage detected