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)
| 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. |
nothing calls this directly
no test coverage detected