File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyo
�
�)�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 | | _ | | _ d S( N( t figt
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"