MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / disable_glut

Method disable_glut

pydev_ipython/inputhook.py:378–390  ·  view source on GitHub ↗

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

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.

Callers

nothing calls this directly

Calls 1

clear_inputhookMethod · 0.95

Tested by

no test coverage detected