ok

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/idlelib/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/idlelib/dynOptionMenuWidget.pyo

�
�[
bc@s�dZddlZddlmZmZmZmZdefd��YZd�Ze	dkr|ddl
mZee�ndS(	sd
OptionMenu widget modified to allow dynamic menu reconfiguration
and setting of highlightthickness
i����N(t
OptionMenut_setitt	StringVartButtont
DynOptionMenucBs#eZdZd�Zdd�ZRS(sF
    unlike OptionMenu, our kwargs can include highlightthickness
    cOstj|�}d|j�kr+|d=ntj||||||�|jd|jd��||_|jd�|_dS(Nthighlightthicknesstcommand(tcopytkeysRt__init__tconfigtgettvariableR(tselftmasterRtvaluetvaluestkwargst
kwargsCopy((s@/opt/alt/python27/lib64/python2.7/idlelib/dynOptionMenuWidget.pyR	s
	c	Csn|djdd�x:|D]2}|djd|dt|j||j��qW|rj|jj|�ndS(s�
        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
        tmenuitendtlabelRN(tdeletetadd_commandRRRtset(R
t	valueListRtitem((s@/opt/alt/python27/lib64/python2.7/idlelib/dynOptionMenuWidget.pytSetMenus
N(t__name__t
__module__t__doc__R	tNoneR(((s@/opt/alt/python27/lib64/python2.7/idlelib/dynOptionMenuWidget.pyRs	cs�ddlm}|�}|jd�|jd|j�d|j�df�|j�t|�}|jd�t	||dd	d
d���j
��fd�}t|d
dd|�}|j
�dS(Ni����(tToplevelsTets dynamic option menus
200x100+%d+%di�i�sOld option settold1told2told3told4cs#�jddddgdd�dS(Ntnew1tnew2tnew3tnew4Rsnew option set(R((tdyn(s@/opt/alt/python27/lib64/python2.7/idlelib/dynOptionMenuWidget.pytupdate2sttextsChange option setR(tTkinterR ttitletgeometrytwinfo_rootxtwinfo_rootyt	focus_setRRRtpackR(tparentR ttoptvarR*tbutton((R)s@/opt/alt/python27/lib64/python2.7/idlelib/dynOptionMenuWidget.pyt_dyn_option_menu$s	



t__main__(trun(RRR,RRRRRR7Rtidlelib.idle_test.htestR9(((s@/opt/alt/python27/lib64/python2.7/idlelib/dynOptionMenuWidget.pyt<module>s"	

Zerion Mini Shell 1.0