add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
B

�/g^#c@s�dZddlZddlZddlmZmZddlmZmZm	Z	m
Z
mZddlmZm
Z
mZmZmZmZmZmZmZmZddlmZdd�ZGd	d
�d
e�Zedkr�ddlmZed
ddd�ddlmZee�dS)zAbout Dialog for IDLE

�N)�python_version�architecture)�Toplevel�Frame�Label�Button�
PhotoImage)
�SUNKEN�TOP�BOTTOM�LEFT�X�BOTH�W�EW�NSEW�E)�textviewcCs2tjdkrtjdkrdSdSt�ddd�SdS)zReturn bits for platform.ZdarwinlZ64Z32rN�)�sys�platformZmaxsizer�rr�*/usr/lib64/python3.7/idlelib/help_about.py�
build_bitss
rc@sveZdZdZdddd�dd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zddd�Z
ddd�ZdS)�AboutDialogz!Modal about dialog for idle

    NF)�_htest�_utestcCs�t�||�|jdd�|�d|��d|��|s6dndf�d|_d|_|��|j	ddd	�|�
|p�d
t��dt��d��|�
|�|��|�d
|j�||_|j��|�d|j�|�d|j�d|_||_|s�|��|��dS)aCreate popup, do not return until tk widget destroyed.

        parent - parent of this dialog
        title - string which is title of popup dialog
        _htest - bool, change box location when running htest
        _utest - bool, don't wait_window when running unittest
        �)�borderwidthz+%d+%diidz#bbbbbbz#000000F)�height�widthzAbout IDLE z (z bit)ZWM_DELETE_WINDOWz<Return>z<Escape>N)r�__init__Z	configureZgeometryZwinfo_rootxZwinfo_rooty�bg�fg�create_widgetsZ	resizable�titlerrZ	transientZgrab_setZprotocol�ok�parent�	button_okZ	focus_setZbind�_current_textviewrZ	deiconifyZwait_window)�selfr&r$rrrrrr s.


zAboutDialog.__init__cCs�t|dtd�}t|�}|jttd�|jtdtd�t|d|jd�|_	|j	jddd	�t||j
d
�}|jdtd�t|d|j|j
d
d�}|j
ddtddd�|j�dd�}|dkr�dnd}tj�tj�tj�t��dd|���}t|��|d�|_t||j|j
d�}|j
ddtdddd�d}	t||	t|j|j
d�}
|
j
ddtdddd�t|d t|j|j
d�}|j
d!ddtddd"�t|d#t�dd�d$t|j|j
d�}|j
d%ddtddd"�t|d&td|j
d'�j
d(dtdddd�t|d)t�|j|j
d*�}
|
j
d+dtddd�t|d,||j|j
d*�}|j
d+d&tddd�t||j
d
�}|j
dddtd-�t|d.d(|j
|jd/�|_ |j jtddd0�t|d1d(|j
|j!d/�|_"|j"jtddd0�t|d2d(|j
|j#d/�|_$|j$jtddd0�t|d&td|j
d'�j
d3dtdddd�t|d4t�|j|j
d*�}|j
d5dtddd�t||j
d
�}|j
d6ddtd-�t|d7d(|j
|j%d/�|_&|j&jtddd0�t|d8d(|j
|j'd/�|_(|j(jtddd0�t|d2d(|j
|j)d/�|_*|j*jtddd0�dS)9Nr)r�relief)�side�fillT)r+�expandr,ZClose)�text�commandr)�padx�pady)r!)r-r,ZIDLE)ZcourieriZbold)r.r"r!Zfontri
)�row�column�stickyr0r1ZinfoZ
patchlevelz8.6z.pngz.gifZIconsZidle_48)ZmasterZfile)Zimager!)r2r3r4Zrowspanr0r1z=Python's Integrated Development
and Learning Environment




)r.Zjustifyr"r!i)r2r3r4�
columnspanr0r1zemail:  idle-dev@python.orgi)r2r3r5r4r0r1zhttps://docs.python.org/z/library/idle.htmlii)rr*rr!izPython version:  )r.r"r!i	z
Tk version:  )r2r3r5r4ZLicense)r.rZhighlightbackgroundr/)r+r0r1Z	CopyrightZCreditsizIDLE version:   ii
ZREADMEZNEWS)+rrZpackr
rr	r
rr%r'r!rr"ZgridrZtkZcall�os�path�join�abspath�dirname�__file__rZ_rootZ
icon_imagerrrrr�show_py_licenseZ
py_license�show_py_copyrightZpy_copyright�show_py_creditsZ
py_credits�show_readmeZreadme�show_idle_newsZ	idle_news�show_idle_creditsZidle_credits)r)ZframeZ
frame_buttonsZframe_backgroundZheaderZ
tk_patchlevelZextZiconZlogoZbyline_textZbylineZemailZdocsZpyverZtkverZ
py_buttonsZidleverZidle_buttonsrrrr#<s�

zAboutDialog.create_widgetscC�|�dt�dS)zHandle License button event.zAbout - LicenseN)�display_printer_textZlicense�r)rrrr<��zAboutDialog.show_py_licensecCrB)zHandle Copyright button event.zAbout - CopyrightN)rCZ	copyrightrDrrrr=�rEzAboutDialog.show_py_copyrightcCrB)z#Handle Python Credits button event.zAbout - Python CreditsN)rCZcreditsrDrrrr>�rEzAboutDialog.show_py_creditscC�|�ddd�dS)z!Handle Idle Credits button event.zAbout - CreditszCREDITS.txt�utf-8N��display_file_textrDrrrrA�rEzAboutDialog.show_idle_creditscCrF)zHandle Readme button event.zAbout - Readmez
README.txtZasciiNrHrDrrrr?�rEzAboutDialog.show_readmecCrF)zHandle News button event.zAbout - NEWSzNEWS.txtrGNrHrDrrrr@�rEzAboutDialog.show_idle_newscCs.|��d�|j�}tj||||jd�|_dS)aCreate textview for built-in constants.

        Built-in constants have type _sitebuiltins._Printer.  The
        text is extracted from the built-in and then sent to a text
        viewer with self as the parent and title as the title of
        the popup.
        Z
�rN)Z_Printer__setupr8Z_Printer__linesrZ	view_textrr()r)r$Zprinterr.rrrrC�sz AboutDialog.display_printer_textcCs:tj�tj�tj�t��|�}tj|||||jd�|_	dS)z�Create textview for filename.

        The filename needs to be in the current directory.  The path
        is sent to a text viewer with self as the parent, title as
        the title of the popup, and the file encoding.
        rJN)
r6r7r8r9r:r;rZ	view_filerr()r)r$ZfilenameZencodingZfnrrrrI�szAboutDialog.display_file_textcCs|��|��dS)zDismiss help_about dialog.N)Zgrab_releaseZdestroy)r)Zeventrrrr%�szAboutDialog.ok�NrKrK)�__name__Z
__module__Z__qualname__�__doc__r r#r<r=r>rAr?r@rCrIr%rrrrrs"V
rZ__main__)�mainz!idlelib.idle_test.test_help_aboutrF)Z	verbosityZexit)�run)rMr6rrrrZtkinterrrrrrrr	r
rrr
rrrrZidlelibrrrrLZunittestrNZidlelib.idle_test.htestrOrrrrZ<module>s05