V Qc@sddlTdZdZdZdadZdZdZd Zd Z d Z e Z e e d ed dZejdeeZeZeZe Ze Zejeeeeee jde jde jdS(i(t*cCs dGHdS(Nsopening new file((((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pytnew_file%scCs dGHdS(Nsopening OLD file((((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pyt open_file(scCs dGHdS(Nspicked a menu item((((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pytprint_something+sicCst adGtGHdS(Ns anchovies?(t anchovies(((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pytprint_anchovies2sc Cs+ttdddd}|jdtddt||_|jjdd |jjdd t|jjdd ddd t |jjdd ddd t |jjddddddd t |jjdd|jj d|jjddddddddd |j |j|d<|S(NttextsSimple Button Commandst underlineitsidetpadxt2mtlabeltUndotstatesNew...tcommandsOpen...sDifferent Fonttfonts&-*-helvetica-*-r-*-*-*-180-*-*-*-*-*-*tbitmaptinfot separatortQuitt backgroundtredtactivebackgroundtgreentmenu(t MenubuttontmBartpacktLEFTtMenuRt add_commandt entryconfigtDISABLEDRRRtaddtquit(tCommand_button((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pytmakeCommandMenu7s,    cCsttdddd}|jdtddt||_t|j|j_t|jj|jj_|jjjjdd |jjjjdd |jjjjdd |jjjdd |jjjdd |jjjdd|jjjdd|jjjdd|jjjdd|jjj ddd|jjj|jj ddd|jj|j|d<|S(NRsCascading MenusRiRR R R tavacadosbelgian endivet beefaronit ChocolatetVanillat TuttiFruititWopBopaLoopBapABopBamBooms Rocky Roadt BubbleGums Weird FlavorsRs more choices( RRRRRRtchoicest weirdonesRt add_cascade(tCascade_button((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pytmakeCascadeMenues*  cCsttdddd}|jdtddt||_|jjdd |jjdd |jjdd |jjdd d t|jj|jj d |j|d<|S(NRsCheckbutton MenusRiRR R R t PepperonitSausages Extra CheesetAnchovyRR( RRRRRRtadd_checkbuttonRtinvoketindex(tCheckbutton_button((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pytmakeCheckbuttonMenus  cCs ttdddd}|jdtddt||_|jjdd |jjdd |jjdd |jjdd |jjdd |jjdd|jjdd|jjdd|jjdd|jjdd|j|d<|S(NRsRadiobutton MenusRiRR R R t RepublicantDemocratt LibertariantCommietFacists Labor PartytToriet Independentt Anarchists No OpinionR(RRRRRRtadd_radiobutton(tRadiobutton_button((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pytmakeRadiobuttonMenus   cCs<ttdddd}|jdtddt|d<|S( NRs Dead MenuRiRR R R (RRRRR (t Dummy_button((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pytmakeDisabledMenus trelieft borderwidthitfills menu demoN(tTkinterRRRRRR$R0R8RCREtTktroottFrametRAISEDRRtXR#R/R7RBtNoMenut tk_menuBarttitleticonnametmainloop(((sC/usr/lib64/python2.7/Demo/tkinter/matt/menu-all-types-of-entries.pyts, $     . & ,