| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/matplotlib/__pycache__/ |
Upload File : |
�
G8�c�+ � �� � d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z
ej ded�� ej e� Z G d � d
� Z G d� de� Z G d
� de� Z G d� de� Zy)a�
Classes used for blocking interaction with figure windows:
`BlockingInput`
Creates a callable object to retrieve events in a blocking way for
interactive sessions. Base class of the other classes listed here.
`BlockingKeyMouseInput`
Creates a callable object to retrieve key or mouse clicks in a blocking
way for interactive sessions. Used by `~.Figure.waitforbuttonpress`.
`BlockingMouseInput`
Creates a callable object to retrieve mouse clicks in a blocking way for
interactive sessions. Used by `~.Figure.ginput`.
`BlockingContourLabeler`
Creates a callable object to retrieve mouse clicks in a blocking way that
will then be used to place labels on a `.ContourSet`. Used by
`~.Axes.clabel`.
� N)�Integral)�_api)�MouseButtonz3.5�module)�name�obj_typec �D � e Zd ZdZd
d�Zd� Zd� Zd� Zd� Zdd�Z e Z
dd�Zy )
�
BlockingInputz1Callable for retrieving events in a blocking way.c � � || _ || _ y �N��fig�
eventslist)�selfr r s �;/usr/lib/python3/dist-packages/matplotlib/blocking_input.py�__init__zBlockingInput.__init__$ s � ����$��� c �8 � | j |� t j dt | j � � | j � t | j � | j cxk\ rdkD r(n y| j j j � yy)zY
Event handler; will be passed to the current figure to retrieve events.
zEvent %ir N)
� add_event�_log�info�len�events�
post_event�nr �canvas�stop_event_loop�r �events r �on_eventzBlockingInput.on_event( sh � �
���u��� � �*�c�$�+�+�.�/�
���� �t�{�{��t�v�v�)��)��H�H�O�O�+�+�-� *r c � � y)z-For baseclass, do nothing but collect events.N� �r s r r zBlockingInput.post_event8 s � r c �~ � | j D ]'