a
    ñ»jW  ã                   @   s0   d dl mZ d dlmZ dZG dd„ deƒZdS )é    )ÚEasyProcess)ÚAbstractDisplayZXephyrc                   @   s2   e Zd ZdZddd„Zedd„ ƒZed	d
„ ƒZdS )ÚXephyrDisplayzf
    Xephyr wrapper

    Xephyr is an X server outputting to a window on a pre-existing X display
    ©i   i   é   Úblackc                 C   s2   || _ || _|| _d| _d| _d| _t | ¡ dS )z4
        :param bgcolor: 'black' or 'white'
        r   N)Úcolor_depthÚsizeÚbgcolorÚscreenÚprocessÚdisplayr   Ú__init__)Úselfr	   r   r
   © r   ú=E:\soccer\ml_env\Lib\site-packages\sbvirtualdisplay/xephyr.pyr      s    zXephyrDisplay.__init__c                 C   s$   t tdgƒ}d|_d|_| ¡  d S )Nz-helpF)r   ÚPROGRAMZenable_stdout_logZenable_stderr_logÚcall)ÚclsÚpr   r   r   Úcheck_installed   s    zXephyrDisplay.check_installedc              	   C   s<   t tddd�| j dd ttt| jƒ| jg ƒ¡| j	g}|S )Nz-brz-wr)r   Úwhitez-screenÚx)
r   Údictr
   ÚjoinÚmapÚstrÚlistr	   r   Znew_display_var)r   Úcmdr   r   r   Ú_cmd!   s    ûzXephyrDisplay._cmdN)r   r   r   )	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úclassmethodr   Úpropertyr   r   r   r   r   r      s   

r   N)Zsbvirtualdisplay.easyprocessr   Z sbvirtualdisplay.abstractdisplayr   r   r   r   r   r   r   Ú<module>   s   