Enable event loop integration with Gtk3 (gir bindings). 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.
(self, app=None)
| 420 | self.clear_inputhook() |
| 421 | |
| 422 | def enable_gtk3(self, app=None): |
| 423 | """Enable event loop integration with Gtk3 (gir bindings). |
| 424 | |
| 425 | Parameters |
| 426 | ---------- |
| 427 | app : ignored |
| 428 | Ignored, it's only a placeholder to keep the call signature of all |
| 429 | gui activation methods consistent, which simplifies the logic of |
| 430 | supporting magics. |
| 431 | |
| 432 | Notes |
| 433 | ----- |
| 434 | This methods sets the PyOS_InputHook for Gtk3, which allows |
| 435 | the Gtk3 to integrate with terminal based applications like |
| 436 | IPython. |
| 437 | """ |
| 438 | from pydev_ipython.inputhookgtk3 import create_inputhook_gtk3 |
| 439 | |
| 440 | self.set_inputhook(create_inputhook_gtk3(self._stdin_file)) |
| 441 | self._current_gui = GUI_GTK |
| 442 | |
| 443 | def disable_gtk3(self): |
| 444 | """Disable event loop integration with PyGTK. |
nothing calls this directly
no test coverage detected