MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib64/python2.7/Demo/tkinter/ttk/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyc
�
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-	

MMCT - 2023