a
    §ˆc©  ã                   @   s^   d Z ddlZddlZddlmZmZmZmZmZ ddl	m
Z
mZ ee
ƒG dd„ deeƒƒZdS )z$ Enthought pyface package component
é    N)Ú	HasTraitsÚIntÚPropertyÚprovidesÚTuple)ÚISystemMetricsÚMSystemMetricsc                   @   s@   e Zd ZdZeeƒZeeƒZeeƒZ	dd„ Z
dd„ Zdd„ ZdS )	ÚSystemMetricsz~ The toolkit specific implementation of a SystemMetrics.  See the
    ISystemMetrics interface for the API documentation.
    c                 C   s   t j t j¡S ©N)ÚwxÚSystemSettingsÚ	GetMetricZSYS_SCREEN_X©Úself© r   ú^/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/wx/system_metrics.pyÚ_get_screen_width.   s    zSystemMetrics._get_screen_widthc                 C   s   t j t j¡S r
   )r   r   r   ZSYS_SCREEN_Yr   r   r   r   Ú_get_screen_height1   s    z SystemMetrics._get_screen_heightc                 C   sN   t jdkrt ddd¡}ntj tj¡ ¡ }|d d |d d |d d fS )NÚdarwinéè   r   g     ào@é   é   )ÚsysÚplatformr   ZColourr   Z	GetColourZSYS_COLOUR_MENUBARZGet)r   Úcolorr   r   r   Ú_get_dialog_background_color4   s    
z*SystemMetrics._get_dialog_background_colorN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Zscreen_widthZscreen_heightr   Zdialog_background_colorr   r   r   r   r   r   r   r	      s   r	   )r   r   r   Z
traits.apir   r   r   r   r   Zpyface.i_system_metricsr   r   r	   r   r   r   r   Ú<module>   s   