ok

Mini Shell

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

�
{fc@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((s3/usr/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((s3/usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pytSetMenus
N(t__name__t
__module__t__doc__R	tNoneR(((s3/usr/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(s3/usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pytupdate2sttextsChange option setR(tTkinterR ttitletgeometrytwinfo_rootxtwinfo_rootyt	focus_setRRRtpackR(tparentR ttoptvarR*tbutton((R)s3/usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyt_dyn_option_menu$s	



t__main__(trun(RRR,RRRRRR7Rtidlelib.idle_test.htestR9(((s3/usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyt<module>s"	

Zerion Mini Shell 1.0