a
    §ˆc?
  ã                   @   sZ   d dl mZm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 )é    )ÚQtGuiÚis_qt4)Ú	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   s8   t stj ¡  ¡ d  ¡  ¡ S tj ¡  ¡  ¡  ¡ S d S ©Nr   )r   r   ÚQApplicationÚinstanceÚscreensÚavailableGeometryÚwidthÚdesktop©Úself© r   ú_/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/qt4/system_metrics.pyÚ_get_screen_width*   s    zSystemMetrics._get_screen_widthc                 C   s8   t stj ¡  ¡ d  ¡  ¡ S tj ¡  ¡  ¡  ¡ S d S r   )r   r   r   r   r   r   Úheightr   r   r   r   r   Ú_get_screen_height3   s
    ÿÿz SystemMetrics._get_screen_heightc                 C   s0   t j ¡  ¡  t jjj¡}| ¡ | 	¡ | 
¡ fS )N)r   r   r   ZpaletteÚcolorZQPaletteZ	ColorRoleZWindowZredFZgreenFZblueF)r   r   r   r   r   Ú_get_dialog_background_color@   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   N)Z	pyface.qtr   r   Z
traits.apir   r   r   r   r   Zpyface.i_system_metricsr	   r
   r   r   r   r   r   Ú<module>   s   