ok
Direktori : /usr/lib64/python2.7/Demo/tkinter/ttk/ |
Current File : //usr/lib64/python2.7/Demo/tkinter/ttk/widget_state.pyo |
� V �Qc @ s� d Z d d l Z d d d d d d d d d g Z x e D] Z e j d e � q; Wd � Z d e j f d � � YZ d � Z e d k r� e � n d S( s8 Sample demo showing widget states and some font styling.i����Nt activet disabledt focust pressedt selectedt backgroundt readonlyt alternatet invalidt !c C s% t t t � d } | j | � d S( Ni ( t statest lent state( t widgett nostate( ( s5 /usr/lib64/python2.7/Demo/tkinter/ttk/widget_state.pyt reset_state s t Appc B s2 e Z d d � Z d d � Z d � Z d � Z RS( c C s t j j | d d �| j j | � t j � | _ | j j d d � } t | j j d | � � } | j j d | � | _ d | j k r� d | j | _ n | d d k r� | d n d | _ t | | d d k r� d n d � | _ g | _ | j � d S( Nt borderwidthi t TButtont fonts font configure %s -sizes font configure %s -familyt s {%s}i t -t i ( t ttkt Framet __init__t mastert titlet Stylet stylet lookupt strt tkt evalt font_familyt fsize_prefixt intt base_fsizet update_widgetst _setup_widgets( t selfR t btn_fontt fsize( ( s5 /usr/lib64/python2.7/Demo/tkinter/ttk/widget_state.pyR s #) i c C s4 | j j d d d | j | j | j | f �d S( NR R s %s %s%d( R t configureR"