Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/__pycache__/mouse_events.cpython-39.pyc
Ðазад
a d�h� � @ sr d Z ddlmZ ddlmZ ddlmZ g d�ZG dd� de�ZG d d � d e�Z G dd� de�Z G d d� d�ZdS )a� Mouse events. How it works ------------ The renderer has a 2 dimensional grid of mouse event handlers. (`prompt_toolkit.layout.MouseHandlers`.) When the layout is rendered, the `Window` class will make sure that this grid will also be filled with callbacks. For vt100 terminals, mouse events are received through stdin, just like any other key press. There is a handler among the key bindings that catches these events and forwards them to such a mouse event handler. It passes through the `Window` class where the coordinates are translated from absolute coordinates to coordinates relative to the user control, and there `UIControl.mouse_handler` is called. � )�annotations)�Enum� )�Point)�MouseEventType�MouseButton� MouseModifier� MouseEventc @ s e Zd ZdZdZdZdZdZdS )r �MOUSE_UP� MOUSE_DOWN� SCROLL_UP�SCROLL_DOWN� MOUSE_MOVEN)�__name__� __module__�__qualname__r r r r r � r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/mouse_events.pyr s r c @ s e Zd ZdZdZdZdZdZdS )r �LEFT�MIDDLE�RIGHT�NONE�UNKNOWNN)r r r r r r r r r r r r r , s r c @ s e Zd ZdZdZdZdS )r �SHIFT�ALT�CONTROLN)r r r r r r r r r r r : s r c @ s4 e Zd ZdZdddddd�dd �Zd d�dd �ZdS )r z� Mouse event, sent to `UIControl.mouse_handler`. :param position: `Point` instance. :param event_type: `MouseEventType`. r r r zfrozenset[MouseModifier]�None)�position� event_type�button� modifiers�returnc C s || _ || _|| _|| _d S )N�r r r r )�selfr r r r r r r �__init__H s zMouseEvent.__init__�str)r! c C s&