V Qc@sfddlTdd dYZdd dYZdd dYZdZed krbend S(i(t*tAppcBs)eZdddZdZdZRS(cCs|dkr3|dkr$t}q3t|}n||_t||_|jjt|dddt|_|jjdddt i|_ d|_ dS(Nt borderwidthitrelieftexpanditfill( tNonetTktToplevelttoptFramet buttonframetpacktGROOVEt panelframetBOTHtpanelstcurpanel(tselfR tmaster((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyt__init__s      cCst|jd|d||d}|jdtt|j}||}|||f|j|<|jdkr|j |ndS(NttexttcommandcSs |j|S(N(tshow(Rtname((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pytstside( tButtonR R tLEFTR RRRRR(RRtklasstbuttontframetinstance((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pytaddpanels cCsR|j|\}}}|jr/|jjn||_|jdddddS(NRiRtboth(RRt pack_forgetR (RRRRR ((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyRs   N(t__name__t __module__RRR!R(((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyRs t LabelPanelcBseZdZRS(cCs&t|dd|_|jjdS(NRs Hello world(tLabeltlabelR (RR((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyR's(R$R%R(((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyR&&st ButtonPanelcBseZdZRS(cCs&t|dd|_|jjdS(NRsPress me(RRR (RR((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyR,s(R$R%R(((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyR)+scCs:t}|jdt|jdt|jjdS(NR(R(RR!R&R)R tmainloop(tapp((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pytmain0s t__main__N((((tTkinterRR&R)R,R$(((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyts !