ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
zfc           @   s   d  d l  Z  d  d l Z d  d l Z d  d l j Z d  d l m Z m	 Z	 e j
 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 r e j e   n  d S(   iN(   t   AbstractTkTestt   requires_tclt   guit   MiscTestc           B   s   e  Z d    Z d   Z RS(   c         C   sC   |  j  j   } |  j | t  |  j d |  |  j d |  d  S(   Nt   photot   bitmap(   t   roott   image_typest   assertIsInstancet   tuplet   assertIn(   t   selfR   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_image_types   s    c         C   s#   |  j  j   } |  j | t  d  S(   N(   R   t   image_namesR   R	   (   R   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_image_names   s    (   t   __name__t
   __module__R   R   (    (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyR   
   s   	t   BitmapImageTestc           B   sV   e  Z e d     Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 RS(   c         C   s,   t  j j |   t j d d d |  _ d  S(   Ns
   python.xbmt   subdirt
   imghdrdata(   R    t
   setUpClasst   __func__t   supportt   findfilet   testfile(   t   cls(    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyR      s    c      
   C   s   t  j d d |  j d d d d d |  j } |  j t |  d  |  j | j   d  |  j | j   d	  |  j | j   d	  |  j	 d |  j j
    ~ |  j d |  j j
    d  S(
   Ns   ::img::testt   mastert
   foregroundt   yellowt
   backgroundt   bluet   fileR   i   (   t   tkintert   BitmapImageR   R   t   assertEqualt   strt   typet   widtht   heightR
   R   t   assertNotIn(   R   t   image(    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_file   s    c         C   s   t  |  j d   } | j   } Wd  QXt j d d |  j d d d d d | } |  j t |  d  |  j | j   d	  |  j | j	   d
  |  j | j
   d
  |  j d |  j j    ~ |  j d |  j j    d  S(   Nt   rbs   ::img::testR   R   R   R   R   t   dataR   i   (   t   openR   t   readR    R!   R   R"   R#   R$   R%   R&   R
   R   R'   (   R   t   fR+   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_data*   s    	c         C   s0   |  j  | t  |  j |  j j |  |  d  S(   N(   R   R#   R"   R   t	   splitlist(   R   t   actualt   expected(    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   assertEqualStrList8   s    c         C   s   t  j d d |  j } |  j | d d  t |  j d   } | j   } Wd  QX| j d |  |  j | d d d d d | f  |  j | j	   d  |  j | j
   d  |  j | d	 d
  | j d	 |  |  j | d	 d d d d | f  d  S(   Ns   ::img::testR   R+   s   -data {} {} {} {}R*   s   -datat    i   t   maskdatas   -maskdata {} {} {} {}s	   -maskdata(   R    R!   R   R"   R,   R   R-   t	   configureR3   R%   R&   (   R   R(   R.   R+   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_configure_data<   s    c         C   s   t  j d d |  j } |  j | d d  | j d |  j  |  j | d d d d d |  j f  |  j | j   d  |  j | j   d  |  j | d d	  | j d |  j  |  j | d d
 d d d |  j f  d  S(   Ns   ::img::testR   R   s   -file {} {} {} {}s   -fileR4   i   t   maskfiles   -maskfile {} {} {} {}s	   -maskfile(	   R    R!   R   R"   R6   R   R3   R%   R&   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_configure_fileL   s    c         C   sT   t  j d d |  j } |  j | d d  | j d d  |  j | d d  d  S(   Ns   ::img::testR   R   s   -background {} {} {} {}R   s   -background {} {} {} blue(   R    R!   R   R"   R6   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_configure_backgroundZ   s    c         C   sT   t  j d d |  j } |  j | d d  | j d d  |  j | d d  d  S(   Ns   ::img::testR   R   s!   -foreground {} {} #000000 #000000R   s    -foreground {} {} #000000 yellow(   R    R!   R   R"   R6   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_configure_foreground`   s    (   R   R   t   classmethodR   R)   R/   R3   R7   R9   R:   R;   (    (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyR      s   						t   PhotoImageTestc           B   s  e  Z e d     Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z e d d  d    Z e d d  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 |   t j d d d |  _ d  S(   Ns
   python.gifR   R   (   R    R   R   R   R   R   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyR   k   s    c         C   s   t  j d d |  j d |  j S(   Ns   ::img::testR   R   (   R    t
   PhotoImageR   R   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   createp   s    c         G   s-   t  j d k r |  j r | St  j |  Sd  S(   Ng333333!@(   R    t	   TkVersiont   wantobjectst   _join(   R   t   args(    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt	   colorlistt   s    c         C   s   t  j d | d d } t j d d |  j d | } |  j t |  d  |  j | j   d  |  j | j   d  |  j | j	   d  |  j | d	 d
  |  j | d |  |  j
 d |  j j    ~ |  j d |  j j    d  S(   Ns   python.R   R   s   ::img::testR   R   R   i   R+   R4   (   R   R   R    R>   R   R"   R#   R$   R%   R&   R
   R   R'   (   R   t   extR   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   check_create_from_filez   s    	c         C   s,  t  j d | d d } t | d   } | j   } Wd  QXt j d d |  j d | } |  j t |  d  |  j | j	   d  |  j | j
   d	  |  j | j   d	  |  j | d |  j r | n | j d
   |  j | d d  |  j d |  j j    ~ |  j d |  j j    d  S(   Ns   python.R   R   R*   s   ::img::testR   R+   R   i   t   latin1R   R4   (   R   R   R,   R-   R    R>   R   R"   R#   R$   R%   R&   RA   t   decodeR
   R   R'   (   R   RE   R   R.   R+   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   check_create_from_data   s    	c         C   s   |  j  d  d  S(   Nt   ppm(   RF   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_ppm_file   s    c         C   s   |  j  d  d  S(   NRJ   (   RI   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_ppm_data   s    c         C   s   |  j  d  d  S(   Nt   pgm(   RF   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_pgm_file   s    c         C   s   |  j  d  d  S(   NRM   (   RI   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_pgm_data   s    c         C   s   |  j  d  d  S(   Nt   gif(   RF   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_gif_file   s    c         C   s   |  j  d  d  S(   NRP   (   RI   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_gif_data   s    i   i   c         C   s   |  j  d  d  S(   Nt   png(   RF   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_png_file   s    c         C   s   |  j  d  d  S(   NRS   (   RI   (   R   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_create_from_png_data   s    c         C   s   t  j d d |  j } |  j | d d  t |  j d   } | j   } Wd  QX| j d |  |  j | d |  j r | n | j	 d   |  j | j
   d  |  j | j   d  d  S(   Ns   ::img::testR   R+   R4   R*   RG   i   (   R    R>   R   R"   R,   R   R-   R6   RA   RH   R%   R&   (   R   R(   R.   R+   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyR7      s    c         C   s   t  j d d |  j } |  j | d d  | j d |  j d d  |  j | d |  j ra d n d  |  j | j   d  |  j | j   d  d  S(	   Ns   ::img::testR   t   formatR4   R   RP   i   (   RP   (	   R    R>   R   R"   R6   R   RA   R%   R&   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_configure_format   s    c         C   s   t  j d d |  j } |  j | d d  | j d |  j  |  j | d |  j  |  j | j   d  |  j | j   d  d  S(   Ns   ::img::testR   R   R4   i   (   R    R>   R   R"   R6   R   R%   R&   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyR9      s    c         C   sT   t  j d d |  j } |  j | d d  | j d d  |  j | d d  d  S(   Ns   ::img::testR   t   gammas   1.0g       @s   2.0(   R    R>   R   R"   R6   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_configure_gamma   s    c         C   s   t  j d d |  j } |  j | d d  |  j | d d  | j d d  | j d d  |  j | d d  |  j | d d	  |  j | j   d  |  j | j   d  d  S(
   Ns   ::img::testR   R%   t   0R&   i   i
   t   20t   10(   R    R>   R   R"   R6   R%   R&   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_configure_width_height   s    c         C   sx   t  j d d |  j } |  j | d d  | j d d  |  j | d d  | j d d  |  j | d d  d  S(   Ns   ::img::testR   t   paletteR4   i   t   256s   3/4/2(   R    R>   R   R"   R6   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_configure_palette   s    c         C   sq   |  j    } | j   |  j | j   d  |  j | j   d  |  j | j d d  |  j d d d   d  S(   Ni   i   i   i    (   R?   t   blankR"   R%   R&   t   getRD   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt
   test_blank   s
    
c         C   sp   |  j    } | j   } |  j | j   d  |  j | j   d  |  j | j d d  | j d d   d  S(   Ni   i   i   (   R?   t   copyR"   R%   R&   Rb   (   R   R(   t   image2(    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt	   test_copy   s
    c         C   s   |  j    } | j d d  } |  j | j   d  |  j | j   d  |  j | j d d  | j d d   | j d  } |  j | j   d  |  j | j   d  |  j | j d d  | j d d   d  S(   Ni   i   i   i   i   (   R?   t	   subsampleR"   R%   R&   Rb   (   R   R(   Re   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_subsample   s    (c         C   s)  |  j    } | j d d  } |  j | j   d  |  j | j   d  |  j | j d d  | j d d   |  j | j d	 d
  | j d d   | j d  } |  j | j   d  |  j | j   d  |  j | j d d  | j d d   |  j | j d	 d  | j d d   d  S(   Ni   i   i    i0   i   i   i   i   i	   i   i   i   (   R?   t   zoomR"   R%   R&   Rb   (   R   R(   Re   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt	   test_zoom  s    (((c         C   s  |  j    } | j d d d |  j | j d d  |  j d d d   |  j | j d d  |  j d t j d k r} d	 n d d   |  j | j d d
  |  j d d d   |  j | j d d
  |  j d d d   | j d d f  |  j | j d d  |  j d d d   |  j | j d d  |  j d d d   |  j | j d d  |  j d d d   |  j | j d d  |  j d d d   d  S(   Ns   {red green} {blue yellow}t   toi   i   i   i    i   g333333!@i   i   s   #f00s   #00ff00s
   #000000fffs   #ffffffff0000i   (   i   i   (   s   #f00s   #00ff00(   s
   #000000fffs   #ffffffff0000(   R?   t   putR"   Rb   RD   R    R@   (   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_put  s    ++++++c         C   s  |  j    } |  j | j d d  |  j d d d   |  j | j d d  |  j d d d   |  j | j d d  |  j d d d   |  j t j | j d d  |  j t j | j d d  |  j t j | j d	 d  |  j t j | j d d	  d  S(
   Ni   i   i>   it   i   i    i   ii   (   R?   R"   Rb   RD   t   assertRaisesR    t   TclError(   R   R(   (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   test_get   s    +++c      	   C   s  |  j    } |  j t j t j  | j t j  t j d d |  j d d d t j } |  j	 t
 |  d  |  j	 | j   d  |  j	 | j   d  |  j	 | j   d  |  j	 | j d d  | j d d   |  j	 | j d	 d
  | j d	 d
   | j t j d d d d t j d d |  j d d d t j } |  j	 t
 |  d  |  j	 | j   d  |  j	 | j   d  |  j	 | j   d  |  j	 | j d d  | j d d   |  j	 | j d d  | j d d
   d  S(   Ns   ::img::test2R   RV   RJ   R   R   i   i    i   i   RP   t   from_coordsi   i   i	   s   ::img::test3i   i   i   i   (   i   i   i   i	   (   R?   t
   addCleanupR   t   unlinkt   TESTFNt   writeR    R>   R   R"   R#   R$   R%   R&   Rb   (   R   R(   Re   t   image3(    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt
   test_write*  s,    ((((   R   R   R<   R   R?   RD   RF   RI   RK   RL   RN   RO   RQ   RR   R   RT   RU   R7   RW   R9   RY   R]   R`   Rc   Rf   Rh   Rj   Rm   Rp   Rw   (    (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyR=   i   s4   																							
t   __main__(   t   unittestt   TkinterR    t   ttkt   test.test_supportt   test_supportR   t   test_ttk.supportR    R   t   requirest   TestCaseR   R   R=   t	   tests_guiR   t   run_unittest(    (    (    s<   /usr/lib64/python2.7/lib-tk/test/test_tkinter/test_images.pyt   <module>   s   R