o
    :a                     @   s   d d Z dS )c              
      sf    j jr    fdd|D }z j | W |D ]} j | qdS |D ]} j | q)w )a  
    Run *figure*'s event loop while listening to interactive events.

    The events listed in *event_names* are passed to *handler*.

    This function is used to implement `.Figure.waitforbuttonpress`,
    `.Figure.ginput`, and `.Axes.clabel`.

    Parameters
    ----------
    figure : `~matplotlib.figure.Figure`
    event_names : list of str
        The names of the events passed to *handler*.
    timeout : float
        If positive, the event loop is stopped after *timeout* seconds.
    handler : Callable[[Event], Any]
        Function called for each event; it can force an early exit of the event
        loop by calling ``canvas.stop_event_loop()``.
    c                    s   g | ]	} j |qS  )canvasZmpl_connect).0namefigurehandlerr   </usr/lib/python3/dist-packages/matplotlib/_blocking_input.py
<listcomp>   s    z'blocking_input_loop.<locals>.<listcomp>N)r   ZmanagerZshowZstart_event_loopZmpl_disconnect)r   Zevent_namesZtimeoutr   ZcidsZcidr   r   r   blocking_input_loop   s   r
   N)r
   r   r   r   r   <module>   s    