3
$ßL]Œ  ã               @   s~   d Z ddlmZmZ ejdddd� y ed s2e‚ddlmZm	Z
 W n$ ek
rh   d	d
„ Zdd„ Z
Y nX G dd„ deƒZdS )a  
MS Windows-specific helper for the TkAgg backend.

With rcParams['tk.window_focus'] default of False, it is
effectively disabled.

It uses a tiny C++ extension module to access MS Win functions.

This module is deprecated and will be removed in version 3.2
é    )ÚrcParamsÚcbookz3.0Úmodulezbackends.windowing)Zobj_typeÚnameztk.window_focus)ÚWin32_GetForegroundWindowÚWin32_SetForegroundWindowc               C   s   dS )Nr   © r   r   r   úE/tmp/pip-install-edjban26/matplotlib/matplotlib/backends/windowing.pyÚGetForegroundWindow   s    r
   c             C   s   d S )Nr   )Zhwndr   r   r	   ÚSetForegroundWindow   s    r   c               @   s   e Zd Zdd„ Zdd„ ZdS )ÚFocusManagerc             C   s   t ƒ | _d S )N)r
   Ú_shellWindow)Úselfr   r   r	   Ú__init__!   s    zFocusManager.__init__c             C   s   t | jƒ d S )N)r   r   )r   r   r   r	   Ú__del__$   s    zFocusManager.__del__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r	   r       s   r   N)Ú__doc__Z
matplotlibr   r   Zwarn_deprecatedÚImportErrorZmatplotlib.backends._tkaggr   r
   r   r   Úobjectr   r   r   r   r	   Ú<module>
   s   