Your IP : 18.220.196.68


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

3

��2a��@sXddlZddlmZmZmZmZGdd�de�Zdd�ZedkrTddl	m
Z
e
e�dS)	�N)�
OptionMenu�_setit�	StringVar�Buttonc@seZdZdd�Zddd�ZdS)�
DynOptionMenucOs`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�./opt/alt/python36/lib64/python3.6/dynoption.pyr
s
zDynOptionMenu.__init__NcCsP|djdd�x*|D]"}|dj|t|j||j�d�qW|rL|jj|�dS)NZmenur�end)Zlabelr)�deleteZadd_commandrrr�set)rZ	valueListr�itemrrr�SetMenus

zDynOptionMenu.SetMenu)N)�__name__�
__module__�__qualname__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_setrrr�packr)�parentr�top�x�y�varr$Zbuttonr)r#r�_dyn_option_menu%s
 
r1�__main__)�run)r	r&rrrrrr1rZidlelib.idle_test.htestr3rrrr�<module>s

?>