mς
­fIc           @   s2   d  k  Z  d  k Z d f  d     YZ d   Z d  S(   Nt
   ZoomHeightc           B   s,   t  Z d d g f g Z d   Z d   Z RS(   Nt   windowss   _Zoom Heights   <<zoom-height>>c         C   s   | |  _  d  S(   N(   t   editwint   self(   R   R   (    (    t/   /mit/python/lib/python2.4/idlelib/ZoomHeight.pyt   __init__   s    c         C   s   |  i i } t |  d  S(   N(   R   R   t   topt   zoom_height(   R   t   eventR   (    (    R   t   zoom_height_event   s    (   s   _Zoom Heights   <<zoom-height>>(   t   __name__t
   __module__t   menudefsR   R	   (    (    (    R   R       s   	c   
      C   sΦ   |  i   } t i d |  } | p |  i   d  Sn t t | i	    \ } } } } |  i   }	 t i d j o d } |	 d }	 n d } |	 d }	 | |	 j o
 d } n d | |	 | | f } |  i |  d  S(   Ns   (\d+)x(\d+)\+(-?\d+)\+(-?\d+)t   win32i    iH   iX   t    s   %dx%d+%d+%d(   R   t   wm_geometryt   geomt   ret   matcht   mt   bellt   mapt   intt   groupst   widtht   heightt   xt   yt   winfo_screenheightt	   newheightt   syst   platformt   newyt   newgeom(
   R   R   R   R   R    R   R!   R   R   R   (    (    R   R      s     
!

(   R   R   R    R   (   R   R   R   R    (    (    R   t   ?   s   		