Nexus File Manager
v2.0
🏠
Dashboard
⚡
System
🌐
›
opt
›
alt
›
python38
›
lib64
›
python3.8
›
idlelib
›
__pycache__
Quick:
⬆️ Parent
🌐 Root
🏠 Home
🌍 WWW
📁 Temp
⚙️ Etc
📤 Upload
📁 Create
⚡ WordPress Admin
🔄 Refresh
✏️ zoomheight.cpython-38.opt-1.pyc
← Back
U i�fk � @ sp d Z ddlZddlZddlZG dd� de�ZG dd� d�Zdd� Zd d � Ze dkrlddl mZ ed ddd� dS )z Zoom a window to maximum height.� Nc @ s e Zd ZdS )�WmInfoGatheringErrorN)�__name__� __module__�__qualname__� r r �7/opt/alt/python38/lib64/python3.8/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 )NZRestoreZZoomZoptionsz* 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 z| �� \}}W n tk rL Y d S X ||krlt|||||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�|�� }z|�d� W n tjk rT td��Y nX |�� t |�\}}}}t jdkr|d}|�� }|�d� |�� t |�} | d d� |f } t || � |�� |�� }||| 7 }||f| j|<