python (3.12.0)
̑ek d Z ddlZddlZddlZ G d de Z G d d Zd Zd Ze d k( rdd
l
mZ eddd
yy)z Zoom a window to maximum height. Nc e Zd Zy)WmInfoGatheringErrorN)__name__
__module____qualname__ F/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/idlelib/zoomheight.pyr r s r r c * e Zd Zi Zd ZddZd Zd Zy)
ZoomHeightc H || _ | j j | _ y N)editwintop)selfr s r
__init__zZoomHeight.__init__ s <<##r Nc | j }|| j j y|rdnd}| j j dd| d y)NRestoreZoomoptionsz* Heightz Height)menuindexlabelbreak)zoom_heightr bellr update_menu_label)r eventzoomedmenu_statuss r
zoom_height_eventzZoomHeight.zoom_height_event s] !!#>HHMMO (.)6KLL** 4?=1H
+
J r c | j }t | \ }}}}|j dk7 ry | j \ }}||k7 rt |||||f y|j
d y# t $ r Y y w xY w)NnormalT F)r get_window_geometrywm_stateget_max_height_and_y_coordr set_window_geometrywm_geometry)r r widthheightxy maxheightmaxys r
r zZoomHeight.zoom_height! s hh1#6vq!<<>X% "==?OIt YeY4%@A
OOB $ s A- - A98A9c | j }|j |j f}|| j vr|j } |j d |j t | \ }}}}t j dk( rd}|j }|j d |j t | } | d d |fz }
t ||
|j |j }|||z
z
}||f| j |<