V Qc@sxddlZdZdZdd dYZdddgZd Zd Zed krtejZ ee ndS( iNicCs$t|}|j|jdS(N(t DemoControltmainlooptdestroy(troottcontrol((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt RunSamples  RcBs5eZdZdZdZdZdZRS(cCs<||_d|_tjatjatjatj dtj dtj dtj |dddtj }tj |dd d dd td dd ddd}tj |ddd dd dd dddd tdd}tj |ddddd tdd}|d|d<|d|d<|d|d<|j dtjd tj|j dtjd tj|j dtjd tjtj|d!tj}|jd"d#d$d%dd&d'd(|j|jd)d#d*d%dd&d'd(|j|j dtjd+tj|j dtjd+tjd,ddS(-NisP&Wg@itbditrelieftlabelsNumber of Engines: tintegertvariabletmintmaxitoptionss,entry.width 10 label.width 20 label.anchor esThrust: is10000.0s60000.0tstepisEngine Maker: tvaluecSs t|dS(Ni(t adjust_maker(tw((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pytCstincrcmdcSs t|dS(Ni(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRDstdecrcmdcSs t|S(N(tvalidate_maker(R((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyREst validatecmdtsidetanchort orientationtokttexttOkt underlinetwidthitcommandtcanceltCanceltfilltexpand(RtexittTixt StringVart demo_makert DoubleVart demo_thrusttIntVartdemo_num_enginestsettFrametRAISEDtControltpacktTOPtWt ButtonBoxt HORIZONTALtaddtokcmdtquitcmdtBOTTOMtXtBOTH(tselfRttoptatbtctbox((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt__init__s@             cCs|jdS(N(R7(R;((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR6SscCs d|_dS(Ni(R$(R;((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR7WscCs-x&|jdkr(|jjjtqWdS(Ni(R$Rttkt dooneeventtTCL_ALL_EVENTS(R;((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRZscCs|jjdS(N(RR(R;((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR^s(t__name__t __module__RAR6R7RR(((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRs  4   sP&WtGEs Rolls RoycecCsntjtj}||}|ttkr:d}n|dkrYttd}ntjt|dS(Nii(t maker_listtindexR'tgettlenR,(Rtincti((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRcs   cCs:ytjtj}Wntk r1tdSXt|S(Ni(RHRIR'RJt ValueError(RRM((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRos   t__main__(( R%RDRRRHRRREtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyts  C