B
    ]t\6                 @   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)GetForegroundWindowSetForegroundWindowc               C   s   dS )Nr    r   r   r   <lib/python3.7/site-packages/matplotlib/backends/windowing.pyr      s    r   c             C   s   d S )Nr   )Zhwndr   r   r	   r      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._windowingr   r   objectr
   r   r   r   r	   <module>
   s   