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