python (3.11.7)
    ek                         d Z ddlZddlZddlZ G d de          Z G d d          Zd Zd Ze	d	k    rdd
l
mZ  eddd
           dS dS )z Zoom a window to maximum height.    Nc                       e Zd ZdS )WmInfoGatheringErrorN)__name__
__module____qualname__     F/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/idlelib/zoomheight.pyr   r      s        Dr	   r   c                   ,    e Zd Zi Zd ZddZd Zd ZdS )
ZoomHeightc                 6    || _         | j         j        | _        d S N)editwintop)selfr   s     r
   __init__zZoomHeight.__init__   s    <#r	   Nc                     |                                  }|| j                                         n&|rdnd}| j                            dd| d           dS )NRestoreZoomoptionsz* Heightz Height)menuindexlabelbreak)zoom_heightr   bellr   update_menu_label)r   eventzoomedmenu_statuss       r
   zoom_height_eventzZoomHeight.zoom_height_event   sp    !!##>HMMOOOO'-9))6KL**	4?1H1H1H 
+ 
J 
J 
J wr	   c                 &   | j         }t          |          \  }}}}|                                dk    rd S 	 |                                 \  }}n# t          $ r Y d S w xY w||k    rt          |||||f           dS |                    d           dS )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    h1#66vq!<<>>X%% 4	"==??OItt# 	 	 	44	 YeY4%@AAA4 
OOB5s   A 
AAc                 2   | j         }|                                |                                f}|| j        vrR|                                }	 |                    d           n"# t
          j        $ r t          d          w xY w|                                 t          |          \  }}}}t          j        dk    rd}|                                }|                    d           |                                 t          |          }	|	d d         |fz   }
t          ||
           |                                 |                                }|||z
  z
  }||f| j        |<