+
     Bik                         ^ RI t ^ RIt^ RIt ! R R]4      t ! R R4      tR tR t]R8X  d   ^ R	I	H
t
 ]
! R
^RR7       R# R# )    Nc                       ] tR t^tRtR# )WmInfoGatheringError N)__name__
__module____qualname____firstlineno____static_attributes__r       )/usr/lib/python3.14/idlelib/zoomheight.pyr   r      s    r   r   c                   @   a  ] tR t^t o / tR tRR ltR tR tRt	V t
R# )
ZoomHeightc                H    Wn         V P                   P                  V n        R # Neditwintop)selfr   s   &&r   __init__ZoomHeight.__init__   s    <<##r   Nc                    V P                  4       pVf   V P                  P                  4        R# V'       d   RMRpV P                  P	                  RRV R2R7       R# )NRestoreZoomoptionsz* Heightz Height)menuindexlabelbreak)zoom_heightr   bellr   update_menu_label)r   eventzoomedmenu_statuss   &&  r   zoom_height_eventZoomHeight.zoom_height_event   s]    !!#>HHMMO 	 (.)6KLL**	4?=1H + J r   c                    V P                   p\        V4      w  r#rEVP                  4       R 8w  d   R#  V P                  4       w  rgY68w  d   \        YYdT34       R# TP                  R4       R#   \         d     R# i ; i)normalNT F)r   get_window_geometrywm_stateget_max_height_and_y_coordr   set_window_geometrywm_geometry)r   r   widthheightxy	maxheightmaxys   &       r   r   ZoomHeight.zoom_height!   s    hh1#6q<<>X% 	"==?OI Y4%@A OOB $ 		s   A. .A=<A=c                   V P                   pVP                  4       VP                  4       3pW P                  9  Ed   VP	                  4       p VP	                  R 4       TP                  4        \        T4      w  rErg\        P                  R8X  d   ^ pTP                  4       pTP	                  R4       TP                  4        \        T4      p	T	R,          T3,           p
\        Y4       TP                  4        TP                  4       pYXT,
          ,          pYW3T P                  T&   \        Y4       TP	                  T4       V P                  V,          #   \
        P                   d    \        R4      hi ; i)r#   win32r(   :N   Nz_Failed getting geometry of maximized windows, because the "zoomed" window state is unavailable.)r   winfo_screenwidthwinfo_screenheight_max_height_and_y_coordsr+   tkinterTclErrorr   updater*   sysplatformwinfo_rootyr-   )r   r   screen_dimensions
orig_statemaxwidthr3   maxxr4   maxrooty	orig_geom
max_y_geommax_y_geom_rootys   &           r   r,   %ZoomHeight.get_max_height_and_y_coord<   sV   hh 224 3357$A$AAJAX& JJL.A#.F+H||w& (H LL"JJL+C0I"2$0J0JJL"0 $444I?HD))*;</LL$,,->??I ## A +@A AAs   E !E<r   r   )r   r   r   r	   r;   r   r%   r   r,   r
   __classdictcell__)__classdict__s   @r   r   r      s(       "$
6/@ /@r   r   c                     V P                  4       p\        P                  ! R V4      p\        \	        \
        VP                  4       4      4      # )z(\d+)x(\d+)\+(-?\d+)\+(-?\d+))r.   rematchtuplemapintgroups)r   geomms   &  r   r*   r*   n   s7    ??D
148AS!((*%&&r   c                 D    V P                  R P                  ! V!  4       R# )z{:d}x{:d}+{:d}+{:d}N)r.   format)r   geometrys   &&r   r-   r-   t   s    OO)00(;<r   __main__)mainz!idlelib.idle_test.test_zoomheightF)	verbosityexit)rN   r?   r<   	Exceptionr   r   r*   r-   r   unittestrZ   r   r   r   <module>r_      sT    
 
 	9 	_@ _@D'= z	,F r   