ó V Qc@sxddlZdZd„Zdd d„ƒYZdddgZd „Zd „Zed krtejƒZ ee ƒndS( iÿÿÿÿNicCs$t|ƒ}|jƒ|jƒdS(N(t DemoControltmainlooptdestroy(troottcontrol((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt RunSamples  RcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs<||_d|_tjƒatjƒatjƒatj dƒtj dƒtj dƒtj |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 tjƒtj|d!tjƒ}|jd"d#d$d%dd&d'd(|jƒ|jd)d#d*d%dd&d'd(|jƒ|j dtjd+tjƒ|j dtjd+tjd,dƒdS(-NiÿÿÿÿsP&WgˆÓ@itbditrelieftlabelsNumber of Engines: tintegertvariabletmintmaxitoptionss,entry.width 10 label.width 20 label.anchor esThrust: is10000.0s60000.0tstepiôsEngine Maker: tvaluecSs t|dƒS(Ni(t adjust_maker(tw((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pytCstincrcmdcSs t|dƒS(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|jƒdS(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(|jjjtƒqWdS(Ni(R$Rttkt dooneeventtTCL_ALL_EVENTS(R;((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRZscCs|jjƒdS(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ƒƒ}||}|ttƒkr:d}n|dkrYttƒd}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