Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/opt/alt/python36/lib64/python3.6/idlelib/__pycache__/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/alt/python36/lib64/python3.6/idlelib/__pycache__/dynoption.cpython-36.pyc

3

� f��@s\dZddlZddlmZmZmZmZGdd�de�Zdd�Ze	dkrXdd	l
mZee�dS)
zd
OptionMenu widget modified to allow dynamic menu reconfiguration
and setting of highlightthickness
�N)�
OptionMenu�_setit�	StringVar�Buttonc@s"eZdZdZdd�Zddd�ZdS)�
DynOptionMenuzF
    unlike OptionMenu, our kwargs can include highlightthickness
    cOs`tj|�}dt|j��kr |d=tj||||f|�|�|j|jd�d�||_|jd�|_dS)N�highlightthickness)r�command)	�copy�list�keysr�__init__�config�get�variabler)�selfZmasterr�value�values�kwargsZ
kwargsCopy�r�6/opt/alt/python36/lib64/python3.6/idlelib/dynoption.pyr
s
zDynOptionMenu.__init__NcCsP|djdd�x*|D]"}|dj|t|j||j�d�qW|rL|jj|�dS)z�
        clear and reload the menu with a new set of options.
        valueList - list of new options
        value - initial value to set the optionmenu's menubutton to
        Zmenur�end)ZlabelrN)�deleteZadd_commandrrr�set)rZ	valueListr�itemrrr�SetMenus

zDynOptionMenu.SetMenu)N)�__name__�
__module__�__qualname__�__doc__rrrrrrr	srcs�ddlm}||�}|jd�tt|j�jd�dd��\}}|jd|d|df�|j�t|�}|j	d	�t
||d
ddd
���j��fdd�}t|d|d�}|j�dS)Nr)�ToplevelzTets dynamic option menu�+�z
200x100+%d+%d��zOld option setZold1Zold2Zold3Zold4cs�jddddgdd�dS)NZnew1Znew2Znew3Znew4znew option set)r)rr)�dynrr�update3sz _dyn_option_menu.<locals>.updatezChange option set)�textr)
�tkinterr�title�map�intZgeometry�splitZ	focus_setrrrZpackr)�parentr�top�x�y�varr%Zbuttonr)r$r�_dyn_option_menu%s
 
r1�__main__)�run)rr	r'rrrrrr1rZidlelib.idle_test.htestr3rrrr�<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox