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

Method enable_gtk3

pydev_ipython/inputhook.py:422–441  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

set_inputhookMethod · 0.95
create_inputhook_gtk3Function · 0.90

Tested by

no test coverage detected