ok
Direktori : /proc/thread-self/root/usr/lib64/python2.7/Demo/tkinter/ttk/ |
Current File : //proc/thread-self/root/usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyc |
� V �Qc @ sZ d Z d d l Z d d l Z d e j f d � � YZ d � Z e d k rV e � n d S( 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����Nt Appc B s, e Z d � Z d � Z d � Z d � Z RS( c C sH t j j | d d �t j � | _ t j | d � | _ | j � d S( Nt borderwidthi i ( t ttkt Framet __init__t Stylet stylet Tkintert IntVart theme_autochanget _setup_widgets( t self( ( s7 /usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyR s c C s | j j | j j � � d S( N( R t theme_uset themes_combot get( R ( ( s7 /usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyt _change_theme s c C s | j j � r | j � n d S( N( R R R ( R t widget( ( s7 /usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyt _theme_sel_changed s c C s� t j | d d �} | j j � } t j | d | d d �| _ | j j | d � | j j d | j � t j | d d d | j �} t j | d d d | j �} | j d d d d � | j j d d d d d d d d � | j d d d d d d d d � | j d d d d d d d d � | j � } | j d d d �| j d d d �| j d d d �| j d d d d d d d d d d � d S( Nt textt Themest valuest statet readonlyi s <<ComboboxSelected>>s Change Themet commands- Change themes when combobox item is activatedt variablet ipadxi t stickyt wt rowt columni t padxt ewi t et columnspani t padyt weightt nsewt rowspan( R t LabelR t theme_namest ComboboxR t sett bindR t ButtonR t CheckbuttonR t gridt winfo_toplevelt rowconfiguret columnconfigure( R t themes_lblt themest change_btnt theme_change_checkbtnt top( ( s7 /usr/lib64/python2.7/Demo/tkinter/ttk/theme_selector.pyR s&