³ò
Ÿ›\Kc           @   sD   d  d k  Z  d  d k Z d  d k Z d d d „  ƒ  YZ d „  Z d S(   iÿÿÿÿNt
   ZoomHeightc           B   s,   e  Z d  d g f g Z d „  Z d „  Z RS(   t   windowss   _Zoom Heights   <<zoom-height>>c         C   s   | |  _  d  S(   N(   t   editwin(   t   selfR   (    (    s(   /usr/lib/python2.5/idlelib/ZoomHeight.pyt   __init__   s    c         C   s   |  i  i } t | ƒ d  S(   N(   R   t   topt   zoom_height(   R   t   eventR   (    (    s(   /usr/lib/python2.5/idlelib/ZoomHeight.pyt   zoom_height_event   s    (   s   _Zoom Heights   <<zoom-height>>(   t   __name__t
   __module__t   menudefsR   R   (    (    (    s(   /usr/lib/python2.5/idlelib/ZoomHeight.pyR       s   	c   
      C   sû   |  i  ƒ  } t i d | ƒ } | p |  i ƒ  d  Sn t t | i ƒ  ƒ \ } } } } |  i ƒ  } t i	 d j o d } | d } n6 t
 i ƒ  o d } | | d } n d } | d } | | j o
 d }	 n d | | | | f }	 |  i  |	 ƒ d  S(	   Ns   (\d+)x(\d+)\+(-?\d+)\+(-?\d+)t   win32i    iH   i   iX   t    s   %dx%d+%d+%d(   t   wm_geometryt   ret   matcht   bellt   mapt   intt   groupst   winfo_screenheightt   syst   platformt   macosxSupportt   runningAsOSXApp(
   R   t   geomt   mt   widtht   heightt   xt   yt	   newheightt   newyt   newgeom(    (    s(   /usr/lib/python2.5/idlelib/ZoomHeight.pyR      s&    
!

(    (   R   R   R   R    R   (    (    (    s(   /usr/lib/python2.5/idlelib/ZoomHeight.pys   <module>   s   