ok
Direktori : /lib64/python2.7/lib-tk/test/test_tkinter/ |
Current File : //lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyo |
� zfc @ s d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z d d l m Z m Z m Z d d l m Z m Z e d � d e e j f d � � YZ d e e j f d � � YZ d e e j f d � � YZ e e e f Z e d k re e � n d S( i����N( t TclError( t requirest run_unittest( t pixels_convt tcl_versiont requires_tcl( t AbstractWidgetTestt int_roundt guit PackTestc B s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s� t j | j d d �} | j d � | j d d � t j | d d d d d d d d �} t j | d d d d d d d d �} t j | d d d d d d d d �} t j | d d d d d d d d �} | | | | | f S( Nt namet packs 300x200+0+0i t at widthi t heighti( t bgt redt bi2 i t bluet ciP t greent dt yellow( t tkintert Toplevelt roott wm_geometryt wm_minsizet Frame( t selfR R R R R ( ( sG /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt create2 s ''''c C s; | j � \ } } } } } | j t d | � � | j d | � Wd QX| j t d � � | j d d � Wd QX| j d d � | j d d � | j d d � | j d d � | j | j � | | | | g � | j d | � | j | j � | | | | g � | j d | � | j | j � | | | | g � d S( Ns window "%s" isn't packedt afters bad window path name ".foo"s .foot sidet top( R t assertRaisesRegexpR t pack_configuret assertEqualt pack_slaves( R R R R R R ( ( sG /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt test_pack_configure_after s ""c s� � j � \ } � } } } � � f d � } | d d � | d d � | d d � | d d � | d d � | d d � | d d � | d d � | d d � d S( Nc s[ � j d d d d d d d d d d d t d | � � j j � � j � j � | � d S( NR R! t ipadxi t padxi t ipadyi t padyi t expandt anchor( R# t TrueR t updateR$ t winfo_geometry( R, t geom( R R ( sG /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt check- s ' t ns 30x70+135+20t nes 30x70+260+20t es 30x70+260+65t ses 30x70+260+110t ss 30x70+135+110t sws 30x70+10+110t ws 30x70+10+65t nws 30x70+10+20t centers 30x70+135+65( R ( R R R R R R1 ( ( R R sG /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt test_pack_configure_anchor+ s c C s; | j � \ } } } } } | j t d | � � | j d | � Wd QX| j t d � � | j d d � Wd QX| j d d � | j d d � | j d d � | j d d � | j | j � | | | | g � | j d | � | j | j � | | | | g � | j d | � | j | j � | | | | g � d S( Ns window "%s" isn't packedt befores bad window path name ".foo"s .fooR R! ( R R"