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

Method enable_pyglet

pydev_ipython/inputhook.py:392–413  ·  view source on GitHub ↗

Enable event loop integration with pyglet. Parameters ---------- app : ignored Ignored, it's only a placeholder to keep the call signature of all gui activation methods consistent, which simplifies the logic of supporting magics. Not

(self, app=None)

Source from the content-addressed store, hash-verified

390 self.clear_inputhook()
391
392 def enable_pyglet(self, app=None):
393 """Enable event loop integration with pyglet.
394
395 Parameters
396 ----------
397 app : ignored
398 Ignored, it's only a placeholder to keep the call signature of all
399 gui activation methods consistent, which simplifies the logic of
400 supporting magics.
401
402 Notes
403 -----
404 This methods sets the ``PyOS_InputHook`` for pyglet, which allows
405 pyglet to integrate with terminal based applications like
406 IPython.
407
408 """
409 from pydev_ipython.inputhookpyglet import inputhook_pyglet
410
411 self.set_inputhook(inputhook_pyglet)
412 self._current_gui = GUI_PYGLET
413 return app
414
415 def disable_pyglet(self):
416 """Disable event loop integration with pyglet.

Callers

nothing calls this directly

Calls 1

set_inputhookMethod · 0.95

Tested by

no test coverage detected