|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ |
Upload File : |
�
�)�Uc @ s� d Z d d l m Z m Z d d l m Z d d l j Z d e f d � � YZ
d e
f d � � YZ d e f d
� � YZ d e
f d � � YZ
d S(
s
This provides several classes used for blocking interaction with figure windows:
:class:`BlockingInput`
creates a callable object to retrieve events in a blocking way for interactive sessions
:class:`BlockingKeyMouseInput`
creates a callable object to retrieve key or mouse clicks in a blocking way for interactive sessions.
Note: Subclass of BlockingInput. Used by waitforbuttonpress
:class:`BlockingMouseInput`
creates a callable object to retrieve mouse clicks in a blocking way for interactive sessions.
Note: Subclass of BlockingInput. Used by ginput
:class:`BlockingContourLabeler`
creates a callable object to retrieve mouse clicks in a blocking way that will then be used to place labels on a ContourSet
Note: Subclass of BlockingMouseInput. Used by clabel
i����( t patht verbose( t is_sequence_of_stringsNt
BlockingInputc B sq e Z d Z d d � Z d � Z d � Z d � Z d � Z d d � Z d d � Z e j e _ d d
d � Z
RS(
sX
Class that creates a callable object to retrieve events in a
blocking way.
c C s. | | _ t | � s! t d � � | | _ d S( Ns) Requires a sequence of event name strings( t figR t AssertionErrort
eventslist( t selfR R ( ( sL /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyt __init__ s c C so | j | � t j d t | j � � | j � t | j � | j k rk | j d k rk | j j j � n d S( se
Event handler that will be passed to the current figure to
retrieve events.
s Event %ii N(
t add_eventR t reportt lent eventst
post_eventt nR t canvast stop_event_loop( R t event( ( sL /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyt on_event"