� ��^c@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.pytCttincrcmdcSs t|d�S(Ni����(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRDRtdecrcmdcSs t|�S(N(tvalidate_maker(R((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRERt 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(R8(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR7SscCs d|_dS(Ni(R%(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR8WscCs-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__RBR7R8RR(((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(RIRJR(RKt ValueError(RRN((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRos   t__main__(( R&RERRRIRRRFtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyts  C