ó q”þfc@sLdZddlmZddlmZddlZdefd„ƒYZdS(sd OptionMenu widget modified to allow dynamic menu reconfiguration and setting of highlightthickness iĸĸĸĸ(t OptionMenu(t_setitNt 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(tdeletet add_commandRR Rtset(R t valueListR titem((s3/usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pytSetMenus  N(t__name__t __module__t__doc__RtNoneR(((s3/usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyR s (RtTkinterRRRR(((s3/usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyts