add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
a

Z��^kc@spdZddlZddlZddlZGdd�de�ZGdd�d�Zdd�Zd	d
�Ze	dkrlddl
mZed
ddd�dS)z Zoom a window to maximum height.�Nc@seZdZdS)�WmInfoGatheringErrorN)�__name__�
__module__�__qualname__�rr�*/usr/lib64/python3.9/idlelib/zoomheight.pyrsrc@s2eZdZiZdd�Zd
dd�Zdd�Zdd	�ZdS)�
ZoomHeightcCs||_|jj|_dS�N)�editwin�top)�selfr	rrr�__init__szZoomHeight.__init__NcCsD|��}|dur|j��n$|r$dnd}|jjdd|�d�d�dS)NZRestoreZZoomZoptionsz* Heightz Height)ZmenuZindexZlabelZbreak)�zoom_heightr
Zbellr	Zupdate_menu_label)rZevent�zoomedZmenu_statusrrr�zoom_height_events
�zZoomHeight.zoom_height_eventcCs||j}t|�\}}}}|��dkr&dSz|��\}}WntyJYdS0||krjt|||||f�dS|�d�dSdS)N�normalTZF)r
�get_window_geometry�wm_state�get_max_height_and_y_coordr�set_window_geometry�wm_geometry)rr
ZwidthZheightZxZy�	maxheight�maxyrrrr
!s
zZoomHeight.zoom_heightcCs|j}|��|��f}||jvr�|��}z|�d�WntjyRtd��Yn0|��t	|�\}}}}t
jdkrzd}|��}|�d�|��t	|�}	|	dd�|f}
t
||
�|��|��}|||7}||f|j|<t
||	�|�|�|j|S)Nrz_Failed getting geometry of maximized windows, because the "zoomed" window state is unavailable.Zwin32rri)r
Zwinfo_screenwidthZwinfo_screenheight�_max_height_and_y_coordsr�tkinterZTclErrorrZupdater�sysZplatformZwinfo_rootyr)rr
Zscreen_dimensionsZ
orig_stateZmaxwidthrZmaxxrZmaxrootyZ	orig_geomZ
max_y_geomZmax_y_geom_rootyrrrr<s:�
�





z%ZoomHeight.get_max_height_and_y_coordr)rrrrrrr
rrrrrrs

rcCs&|��}t�d|�}ttt|����S)Nz(\d+)x(\d+)\+(-?\d+)\+(-?\d+))r�reZmatchZtupleZmapZintZgroups)r
ZgeomZmrrrrnsrcCs|�dj|��dS)Nz{:d}x{:d}+{:d}+{:d})rZformat)r
ZgeometryrrrrtsrZ__main__)�mainz!idlelib.idle_test.test_zoomheightiF)Z	verbosityZexit)Z__doc__rrrZ	ExceptionrrrrrZunittestrrrrrZ<module>sb