� ��^c@sfddlTdd d��YZdd d��YZdd d��YZd�Zed krbe�nd S(i����(t*tAppcBs)eZddd�Zd�Zd�ZRS(cCs�|dkr3|dkr$t�}q3t|�}n||_t|�|_|jj�t|dddt�|_|jjdddt �i|_ d|_ dS(Nt borderwidthitrelieftexpanditfill( tNonetTktToplevelttoptFramet buttonframetpacktGROOVEt panelframetBOTHtpanelstcurpanel(tselfR tmaster((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pyt__init__s      cCs�t|jd|d||d��}|jdt�t|j�}||�}|||f|j|<|jdkr�|j |�ndS(NttexttcommandcSs |j|�S(N(tshow(Rtname((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pytttside( tButtonR R tLEFTR RRRRR(RRtklasstbuttontframetinstance((s1/usr/lib64/python2.7/Demo/tkinter/guido/switch.pytaddpanels cCsR|j|\}}}|jr/|jj�n||_|jdddd�dS(NRiRtboth(RRt pack_forgetR (RRRR R!((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 LabelPanelcBseZd�ZRS(cCs&t|dd�|_|jj�dS(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 ButtonPanelcBseZd�ZRS(cCs&t|dd�|_|jj�dS(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�|jj�dS(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 !