3  f<@s\dZddlZddlZddlmZGdddZddZedkrXdd lm Z e d d d d dS)z Zoom a window to maximum height.N)macosxc@seZdZddZdddZdS) ZoomHeightcCs ||_dS)N)editwin)selfrr7/opt/alt/python36/lib64/python3.6/idlelib/zoomheight.py__init__ szZoomHeight.__init__NcCs|jj}t|dS)Nbreak)rtop zoom_height)rZeventr rrrzoom_height_eventszZoomHeight.zoom_height_event)N)__name__ __module__ __qualname__rr rrrrr src Cs|j}tjd|}|s$|jdStt|j\}}}}|j}tj dkrZd}|d}n&t j rtd}||d}n d}|d}||krd} nd||||f} |j| dS) Nz(\d+)x(\d+)\+(-?\d+)\+(-?\d+)Zwin32rHXz %dx%d+%d+%d) Z wm_geometryrematchZbellmapintgroupsZwinfo_screenheightsysplatformrZisAquaTk) r ZgeommwidthZheightxyZ newheightZnewyZnewgeomrrrr s&   r __main__)mainz!idlelib.idle_test.test_zoomheightF) verbosityexit) __doc__rrZidlelibrrr r Zunittestr rrrrs