3
<Ad]å  ã               @   st   d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
 ddlmZ ddlmZ G dd„ deƒZG d	d
„ d
eƒZdS )z$ The interface for a splash screen. é    N)ÚAnyÚBoolÚInstanceÚIntÚTupleÚUnicode)ÚImageResource)ÚSplashScreenLogHandler)ÚIWindowc               @   sF   e Zd ZdZeeedƒƒZeej	ƒZ
edƒZeZeZeZeddƒZdS )ÚISplashScreenz$ The interface for a splash screen. ZsplashTé   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úimager   ÚloggingÚDEBUGÚ	log_levelr   Úshow_log_messagesr   Útextr   Z
text_colorZ	text_fontr   Ztext_location© r   r   úp/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/pyface-6.1.2-py3.6.egg/pyface/i_splash_screen.pyr      s   
r   c                   s,   e Zd ZdZ‡ fdd„Z‡ fdd„Z‡  ZS )ÚMSplashScreenz› The mixin class that contains common code for toolkit specific
    implementations of the ISplashScreen interface.

    Reimplements: open(), close()
    c                sD   t t| ƒjƒ  | jr@t| ƒ| _| jj| jƒ tj	ƒ }|j
| jƒ dS )z6 Creates the toolkit-specific control for the widget. N)Úsuperr   Úopenr   r	   Ú_log_handlerÚsetLevelr   r   Ú	getLoggerÚ
addHandler)ÚselfÚlogger)Ú	__class__r   r   r   L   s    
zMSplashScreen.openc                s,   | j rtjƒ }|j| jƒ tt| ƒjƒ  dS )z Close the window. N)r   r   r   ÚremoveHandlerr   r   r   Úclose)r    r!   )r"   r   r   r$   Y   s    zMSplashScreen.close)r   r   r   r   r   r$   Ú__classcell__r   r   )r"   r   r   A   s   r   )r   r   Z
traits.apir   r   r   r   r   r   Zpyface.image_resourcer   Z pyface.splash_screen_log_handlerr	   Zpyface.i_windowr
   r   Úobjectr   r   r   r   r   Ú<module>   s    $