관리-도구
편집 파일: zoomheight.cpython-36.pyc
3 � f< � @ s\ d Z ddlZddlZddlmZ G dd� d�Zdd� ZedkrXdd lm Z e d ddd � dS )z Zoom a window to maximum height.� N)�macosxc @ s e Zd Zdd� Zddd�ZdS )� ZoomHeightc C s || _ d S )N)�editwin)�selfr � r �7/opt/alt/python36/lib64/python3.6/idlelib/zoomheight.py�__init__ s zZoomHeight.__init__Nc C s | j j}t|� dS )N�break)r �top�zoom_height)r Zeventr r r r �zoom_height_event s zZoomHeight.zoom_height_event)N)�__name__� __module__�__qualname__r r r r r r r s r c C s� | j � }tjd|�}|s$| j� d S tt|j� �\}}}}| j� }tj dkrZd}|d }n&t j� rtd}|| d }nd}|d }||kr�d} nd||||f } | j | � d S ) Nz(\d+)x(\d+)\+(-?\d+)\+(-?\d+)Zwin32r �H � �X � z%dx%d+%d+%d)Zwm_geometry�re�matchZbell�map�int�groupsZwinfo_screenheight�sys�platformr ZisAquaTk) r Zgeom�m�widthZheight�x�yZ newheightZnewyZnewgeomr r r r s&