V Qc@sWddlZdZdZdddYZedkrSejZeendS(iNicCs$t|}|j|jdS(N(t DemoBalloontmainlooptdestroy(troottballoon((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt RunSamples  RcBs,eZdZdZdZdZRS(c Cs@||_d|_|j}|jd|dtj|dddtjdd}|jd tjd tj d d d dtj |ddd|j }tj |dd}|d|d<|jd tj dd|jd tj ddtj |d|}|j|dddd|j|dddddS(NitWM_DELETE_WINDOWcSs |jS(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt!stwidthi(trelieftbditsidetfilltpadxitpadyttextsSomething UnexpectedtcommandsSomething Else UnexpectedcSs |jS(N(R(tw((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR *stexpandt statusbart balloonmsgs Close Windowt statusmsgs&Press this button to close this windowsSelf-destruct buttons,Press this button and it will destroy itself(Rtexittwinfo_toplevelt wm_protocoltTixtLabeltSUNKENtpacktBOTTOMtYtButtonRtTOPtBalloont bind_widget(RRtztstatustbutton1tbutton2tb((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt__init__s"   $( cCs d|_dS(Ni(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR7scCsAd}x4|jdkr<|dkr<|jjjt}q WdS(Nii(RRttkt dooneeventtTCL_ALL_EVENTS(Rt foundEvent((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR:scCs|jjdS(N(RR(R((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR?s(t__name__t __module__R*RRR(((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyRs   t__main__((RR-RRR/tTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyts  '