V Qc@sZdZddlZddlZdejfdYZdZedkrVendS(sTtk Theme Selector v2. This is an improvement from the other theme selector (themes_combo.py) since now you can notice theme changes in Ttk Combobox, Ttk Frame, Ttk Label and Ttk Button. iNtAppcBs,eZdZdZdZdZRS(cCsHtjj|ddtj|_tj|d|_|jdS(Nt borderwidthii( tttktFramet__init__tStyletstyletTkintertIntVarttheme_autochanget_setup_widgets(tself((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyR scCs|jj|jjdS(N(Rt theme_uset themes_combotget(R ((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyt _change_themescCs |jjr|jndS(N(R RR(R twidget((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyt_theme_sel_changedsc Cstj|dd}|jj}tj|d|dd|_|jj|d|jjd|jtj |ddd |j }tj |dd d |j }|j d d dd|jj dddddd dd|j dddddd dd|j dddddddd |j}|jddd|jddd|jddd|j dddddddddddS(NttexttThemestvalueststatetreadonlyis<>s Change Themetcommands-Change themes when combobox item is activatedtvariabletipadxitstickytwtrowtcolumnitpadxtewitet columnspanitpadytweighttnsewtrowspan(RtLabelRt theme_namestComboboxR tsettbindRtButtonRt CheckbuttonR tgridtwinfo_toplevelt rowconfiguretcolumnconfigure(R t themes_lbltthemest change_btnttheme_change_checkbtnttop((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyR s&   %"" (t__name__t __module__RRRR (((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyR s  cCs't}|jjd|jdS(NsTheme Selector(Rtmasterttitletmainloop(tapp((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pytmain7s t__main__(t__doc__RRRRR<R6(((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyts   -