/opt/imh-python/lib/python3.9/site-packages/IPython/terminal/pt_inputhooks
NameSizeModeActions
__pycache__/-0755rm
asyncio.py18440644editdlrm
glut.py49970644editdlrm
gtk.py24270644editdlrm
gtk3.py2800644editdlrm
gtk4.py5570644editdlrm
osx.py44480644editdlrm
pyglet.py23680644editdlrm
qt.py34060644editdlrm
tk.py36480644editdlrm
wx.py71320644editdlrm
__init__.py36060644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/IPython/terminal/pt_inputhooks/gtk4.py (557B)
""" prompt_toolkit input hook for GTK 4. """ from gi.repository import GLib class _InputHook: def __init__(self, context): self._quit = False GLib.io_add_watch( context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, self.quit ) def quit(self, *args, **kwargs): self._quit = True return False def run(self): context = GLib.MainContext.default() while not self._quit: context.iteration(True) def inputhook(context): hook = _InputHook(context) hook.run()