ó
N'—^c           @  s  d  d l  m Z y d  d l m Z m Z Wn' e k
 rS d  d l m Z m Z n Xd  d l m Z m	 Z	 d e f d „  ƒ  YZ
 e d k rd  d l Z e j d s¿ e d	 ƒ e j d ƒ n  e j d Z e ƒ  Z e j e ƒ e j e ƒ Z e
 e e ƒ j ƒ  e j ƒ  n  d S(
   iÿÿÿÿ(   t   print_function(   t   Tkt   Label(   t   Imaget   ImageTkt   UIc           B  s   e  Z d  „  Z RS(   c      	   C  s„   | j  d k rO t j | d d ƒ|  _ t j |  | d |  j d d d d ƒn1 t j | ƒ |  _ t j |  | d |  j d d ƒd  S(	   Nt   1t
   foregroundt   whitet   imaget   bgt   blackt   bdi    (   t   modeR   t   BitmapImageR	   R   t   __init__t
   PhotoImage(   t   selft   mastert   im(    (    sB   /tmp/pip-unpacked-wheel-ivxKtu/Pillow-3.4.2.data/scripts/viewer.pyR      s
    ((   t   __name__t
   __module__R   (    (    (    sB   /tmp/pip-unpacked-wheel-ivxKtu/Pillow-3.4.2.data/scripts/viewer.pyR      s   t   __main__Ni   s"   Syntax: python viewer.py imagefile(   t
   __future__R    t   tkinterR   R   t   ImportErrort   Tkintert   PILR   R   R   R   t   syst   argvt   printt   exitt   filenamet   roott   titlet   openR   t   packt   mainloop(    (    (    sB   /tmp/pip-unpacked-wheel-ivxKtu/Pillow-3.4.2.data/scripts/viewer.pyt   <module>   s"   
	