DEPRECATED since IPython 5.0 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)
| 576 | |
| 577 | |
| 578 | def disable(self): |
| 579 | """DEPRECATED since IPython 5.0 |
| 580 | |
| 581 | Disable event loop integration with glut. |
| 582 | |
| 583 | This sets PyOS_InputHook to NULL and set the display function to a |
| 584 | dummy one and set the timer to a dummy timer that will be triggered |
| 585 | very far in the future. |
| 586 | """ |
| 587 | warn("This function is deprecated since IPython 5.0 and will be removed in future versions.", |
| 588 | DeprecationWarning, stacklevel=2) |
| 589 | import OpenGL.GLUT as glut |
| 590 | from glut_support import glutMainLoopEvent |
| 591 | |
| 592 | glut.glutHideWindow() # This is an event to be processed below |
| 593 | glutMainLoopEvent() |
| 594 | super(GlutInputHook, self).disable() |
| 595 | |
| 596 | @inputhook_manager.register('pyglet') |
| 597 | class PygletInputHook(InputHookBase): |