
\[\                 @   sK   d  d l  Z  d  d l Z d  d l m Z Gd d   d  Z d d   Z d S)    N)macosxSupportc               @   s:   e  Z d  Z d d	 g f g Z d d   Z d d   Z d S)

ZoomHeightZwindows_Zoom Height<<zoom-height>>c             C   s   | |  _  d  S)N)editwin)selfr    r   (/usr/lib/python3.4/idlelib/ZoomHeight.py__init__   s    zZoomHeight.__init__c             C   s   |  j  j } t |  d  S)N)r   topzoom_height)r   Zeventr   r   r   r	   zoom_height_event   s    zZoomHeight.zoom_height_eventN)r   r   )__name__
__module____qualname__Zmenudefsr
   r   r   r   r   r	   r      s   r   c       
      C   s   |  j    } t j d |  } | s2 |  j   d  St t | j    \ } } } } |  j   } t j	 d k r d } | d } n3 t
 j   r d } | | d } n d } | d } | | k r d }	 n d | | | | f }	 |  j  |	  d  S)	Nz(\d+)x(\d+)\+(-?\d+)\+(-?\d+)Zwin32r   H      X    z%dx%d+%d+%d)Zwm_geometryrematchZbellmapintgroupsZwinfo_screenheightsysplatformr   ZisAquaTk)
r   ZgeommwidthZheightxyZ	newheightZnewyZnewgeomr   r   r	   r      s&    
!
	r   )r   r   Zidlelibr   r   r   r   r   r   r	   <module>   s   