Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/terminal/pt_inputhooks/__pycache__/pyglet.cpython-39.pyc
Ðазад
a o�h@ � @ sR d Z ddlZddlZddlmZ ddlZej�d�r>dd� Z ndd� Z dd � Z dS ) z;Enable pyglet to be used interactively with prompt_toolkit � N)� default_timer�linuxc C s$ z| � � W n ty Y n0 d S �N)�flip�AttributeError��window� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/terminal/pt_inputhooks/pyglet.pyr s r c C s | � � d S r )r r r r r r s c C s� z�t � }| �� s�tj �� tjjD ]&}|�� |�� |�d� t |� q"t � | }|dkrht �d� q|dkr|t �d� qt �d� qW n ty� Y n0 dS )aE Run the pyglet event loop by processing pending events only. This keeps processing pending events until stdin is ready. After processing all pending events, a call to time.sleep is inserted. This is needed, otherwise, CPU usage is at 100%. This sleep time should be tuned though for best performance. Zon_drawg $@g �?g�������?g�������?g����MbP?N) �clockZinput_is_ready�pygletZtickZapp�windowsZ switch_toZdispatch_eventsZdispatch_eventr �time�sleep�KeyboardInterrupt)�context�tr Z used_timer r r � inputhook s"