Hacked By AnonymousFox
B
YI~dk � @ sl d dl Z d dlZd dlZG dd� de�ZG dd� d�Zdd� Zdd � Zed
krhd dl m
Z
e
dd
dd� dS )� Nc @ s e Zd ZdS )�WmInfoGatheringErrorN)�__name__�
__module__�__qualname__� r r �7/opt/alt/python37/lib64/python3.7/idlelib/zoomheight.pyr s r c @ s2 e Zd Zi Zdd� Zd
dd�Zdd� Zdd � ZdS )�
ZoomHeightc C s || _ | j j| _d S )N)�editwin�top)�selfr r r r �__init__ s zZoomHeight.__init__Nc C sD | � � }|d kr| j�� n$|r$dnd}| jjdd|� d�d� dS )NZRestoreZZoom�optionsz* Heightz Height)Zmenu�indexZlabel�break)�zoom_heightr
Zbellr Zupdate_menu_label)r Zevent�zoomedZmenu_statusr r r �zoom_height_event s
zZoomHeight.zoom_height_eventc C s| | j }t|�\}}}}|�� dkr&d S y| �� \}}W n tk
rJ d S X ||krjt|||||f� dS |�d� dS d S )N�normalT� F)r
�get_window_geometry�wm_state�get_max_height_and_y_coordr �set_window_geometry�wm_geometry)r r
�widthZheight�x�y� maxheight�maxyr r r r ! s
zZoomHeight.zoom_heightc C s | j }|�� |�� f}|| jkr�|�� }y|�d� W n tjk
rT td��Y nX |�� t |�\}}}}t
jdkr|d}|�� }|�d� |�� t |�} | d d� |f }
t
||
� |�� |�� }||| 7 }||f| j|<