Viewing File: /usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyo

ó
V
Qc@sZdZddlZddlZdejfd„ƒYZd„ZedkrVeƒndS(s¼Ttk 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.
iÿÿÿÿNtAppcBs,eZd„Zd„Zd„Zd„ZRS(cCsHtjj|ddƒtjƒ|_tj|dƒ|_|jƒdS(Ntborderwidthii(	tttktFramet__init__tStyletstyletTkintertIntVarttheme_autochanget_setup_widgets(tself((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyRscCs|jj|jjƒƒdS(N(Rt	theme_usetthemes_combotget(R((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyt
_change_themescCs |jjƒr|jƒndS(N(R	RR(Rtwidget((s7/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyt_theme_sel_changedscCs˜tj|ddƒ}|jjƒ}tj|d|ddƒ|_|jj|dƒ|jjd|jƒtj	|ddd	|j
ƒ}tj|dd
d|jƒ}|j
dd
ddƒ|jj
dddddd
ddƒ|j
dddddd
ddƒ|j
dddddddd
ƒ|jƒ}|jdddƒ|jdddƒ|jdddƒ|j
ddddddddddƒdS(NttexttThemestvalueststatetreadonlyis<<ComboboxSelected>>sChange Themetcommands-Change themes when combobox item is activatedtvariabletipadxitstickytwtrowtcolumnitpadxtewitet
columnspanitpadytweighttnsewtrowspan(RtLabelRttheme_namestComboboxR
tsettbindRtButtonRtCheckbuttonR	tgridtwinfo_topleveltrowconfiguretcolumnconfigure(Rt
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ƒ|jƒdS(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.pyt<module>s-	
Back to Directory File Manager