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

Method disable

IPython/lib/inputhook.py:578–594  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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')
597class PygletInputHook(InputHookBase):

Callers

nothing calls this directly

Calls 1

disableMethod · 0.45

Tested by

no test coverage detected