Your IP : 3.147.103.33
3
��2a< � @ sX d dl Z d dlZd dlmZ G dd� d�Zdd� ZedkrTd dlmZ ed d
dd� dS )
� N)�macosxc @ s e Zd Zdd� Zddd�ZdS )�
ZoomHeightc C s
|| _ d S )N)�editwin)�selfr � r �//opt/alt/python36/lib64/python3.6/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+)�win32r �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&