ok
Direktori : /usr/lib64/python2.7/lib-tk/test/test_ttk/ |
Current File : //usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyc |
� ]цdc @ s� d d l Z d d l Z d d l Z d d l m Z m Z d d l Z d d l Z d d l m Z m Z e d � d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ e e e e e e e e e e f Z e d k r�e e � n d S( i����N( t requirest run_unittest( t MockTclObjt MockStateSpect guit WidgetTestc B s2 e Z d Z d � Z d � Z d � Z d � Z RS( s, Tests methods available in every ttk widget.c C sC t j � t j d d d d � | _ | j j � | j j � d S( Nt widthi t textt Text( t supportt root_deiconifyt ttkt Buttont widgett packt wait_visibility( t self( ( s9 /usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt setUp s c C s | j j � t j � d S( N( R t destroyR t root_withdraw( R ( ( s9 /usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt tearDown s c C s� | j j � | j | j j t | j j � d � t | j j � d � � d � | j | j j d d � d � | j t j | j j d d � | j t j | j j d d � | j t j | j j d d � d S( Ni t labeli����t i ( R t update_idletaskst assertEqualt identifyt intt winfo_widtht winfo_heightt assertRaisest Tkintert TclErrort None( R ( ( s9 /usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt test_identify s c C s� | j | j j � d � | j | j j d g � t � | j | j j d g � d � | j | j j d g � d � | j | j j d d g � d � | j | j j d d g � d � | j | j j d d g � d � d � } | j | j j d g | d i d d 6� d i d d 6f � | j j � } | j t j | j j d g � | j t j | j j d d g � | j | | j j � � | j j d d g � | j | j j � d � d S( Ns !disabledt disabledt actives !activec [ s | | f S( N( ( t arg1t kw( ( s9 /usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt test_cb7 s t hit theret msgt badstate( ( s !disabled( ( s !activeR"