a
    §ˆcÔ
  ã                   @   sŽ   d dl mZ d dlmZmZmZmZmZmZ d dl	m
Z
mZ d dlmZmZ d dlmZ ddlmZ ddlmZ eeƒG d	d
„ d
eeƒƒZdS )é    )ÚDEBUG)ÚAnyÚBoolÚIntÚTupleÚStrÚprovides)ÚQtCoreÚQtGui)ÚISplashScreenÚMSplashScreen)ÚImageé   )ÚImageResource)ÚWindowc                   @   s`   e Zd ZdZeedƒƒZeeƒZ	e
dƒZeƒ Zeƒ Zeƒ ZeddƒZdd„ Zdd„ Zd	d
„ ZdS )ÚSplashScreenz| The toolkit specific implementation of a SplashScreen.  See the
    ISplashScreen interface for the API documentation.
    ZsplashTé   c                 C   s   t  | j ¡ ¡}|  |¡ |S )N)r
   ZQSplashScreenÚimageZcreate_imageÚ_qt4_show_message)ÚselfÚparentZsplash_screen© r   ú^/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/qt4/splash_screen.pyÚ_create_control4   s    
zSplashScreen._create_controlc                 C   s   | j dur|  | j ¡ dS )z6 Called when the splash screen text has been changed. N)Úcontrolr   )r   r   r   r   Ú_text_changed>   s    
zSplashScreen._text_changedc                 C   sR   | j dur| | j ¡ | jdu r,tjjj}nt | j¡}| 	| j
tjjj|¡ dS )z3 Set the message text for a splash screen control. N)Ú	text_fontZsetFontÚ
text_colorr	   ZQtZGlobalColorZblackr
   ZQColorZshowMessageÚtextZAlignmentFlagZ	AlignLeft)r   r   r   r   r   r   r   D   s    

zSplashScreen._qt4_show_messageN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   Z	log_levelr   Zshow_log_messagesr   r   r   r   r   r   Ztext_locationr   r   r   r   r   r   r   r      s   

r   N)Úloggingr   Z
traits.apir   r   r   r   r   r   Z	pyface.qtr	   r
   Zpyface.i_splash_screenr   r   Zpyface.ui_traitsr   Zimage_resourcer   Zwindowr   r   r   r   r   r   Ú<module>   s    