def _inputhook(inputhook_context):
    # Only call the real input hook when the 'Tkinter' library was loaded.
    if 'Tkinter' in sys.modules or 'tkinter' in sys.modules:
        _inputhook_tk(inputhook_context)
dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/eventloop.py/_inputhook/original