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

Method enable_gtk

pydev_ipython/inputhook.py:262–281  ·  view source on GitHub ↗

Enable event loop integration with PyGTK. 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. Note

(self, app=None)

Source from the content-addressed store, hash-verified

260 self.clear_inputhook()
261
262 def enable_gtk(self, app=None):
263 """Enable event loop integration with PyGTK.
264
265 Parameters
266 ----------
267 app : ignored
268 Ignored, it's only a placeholder to keep the call signature of all
269 gui activation methods consistent, which simplifies the logic of
270 supporting magics.
271
272 Notes
273 -----
274 This methods sets the PyOS_InputHook for PyGTK, which allows
275 the PyGTK to integrate with terminal based applications like
276 IPython.
277 """
278 from pydev_ipython.inputhookgtk import create_inputhook_gtk
279
280 self.set_inputhook(create_inputhook_gtk(self._stdin_file))
281 self._current_gui = GUI_GTK
282
283 def disable_gtk(self):
284 """Disable event loop integration with PyGTK.

Callers

nothing calls this directly

Calls 2

set_inputhookMethod · 0.95
create_inputhook_gtkFunction · 0.90

Tested by

no test coverage detected