3 *jáa<ã@s\dZddlZddlZddlmZGdd„dƒZdd„ZedkrXdd lm Z e d d d d dS)z Zoom a window to maximum height.éN)Úmacosxc@seZdZdd„Zddd„ZdS)Ú ZoomHeightcCs ||_dS)N)Úeditwin)Úselfr©rú7/opt/alt/python36/lib64/python3.6/idlelib/zoomheight.pyÚ__init__ szZoomHeight.__init__NcCs|jj}t|ƒdS)NÚbreak)rÚtopÚ zoom_height)rZeventr rrrÚzoom_height_eventszZoomHeight.zoom_height_event)N)Ú__name__Ú __module__Ú __qualname__rr rrrrr src Cs¬|jƒ}tjd|ƒ}|s$|jƒdStt|jƒƒ\}}}}|jƒ}tj dkrZd}|d}n&t j ƒrtd}||d}n d}|d}||krŽd} nd||||f} |j| ƒdS) Nz(\d+)x(\d+)\+(-?\d+)\+(-?\d+)Zwin32réHééXÚz %dx%d+%d+%d) Z wm_geometryÚreÚmatchZbellÚmapÚintÚgroupsZwinfo_screenheightÚsysÚplatformrZisAquaTk) r ZgeomÚmÚwidthZheightÚxÚyZ newheightZnewyZnewgeomrrrr s&   r Ú__main__)Úmainz!idlelib.idle_test.test_zoomheightéF)Ú verbosityÚexit) Ú__doc__rrZidlelibrrr r Zunittestr rrrrÚs