Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/pyvirtualdisplay/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/pyvirtualdisplay/__pycache__/xvfb.cpython-311.pyc

�

�܋f���Z�ddlZddlmZeje��ZdZGd�de��ZdS)�N)�AbstractDisplay�Xvfbc	�8�eZdZdZdddddddgdf	d	�Zd
�Zd�ZdS)�XvfbDisplayz�
    Xvfb wrapper

    Xvfb is an X server that can run on machines with no display
    hardware and no physical input devices. It emulates a dumb
    framebuffer using virtual memory.
    )ii��blackFN�
Tc
��d|_||_||_||_||_||_t
j|t||||	���dS)z�
        :param bgcolor: 'black' or 'white'
        :param fbdir: If non-null, the virtual screen is memory-mapped
            to a file in the given directory ('-fbdir' option)
        :param dpi: screen resolution in dots per inch if not None
        r)�	use_xauth�retries�
extra_args�manage_global_envN)	�_screen�_size�_color_depth�_bgcolor�_fbdir�_dpir�__init__�PROGRAM)
�self�size�color_depth�bgcolorr�fbdir�dpirr
rs
          �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyvirtualdisplay/xvfb.pyrzXvfbDisplay.__init__se��$�����
�'�����
������	�� �����!�/�
	
�	
�	
�	
�	
�	
�c��dS)N�)r�helptexts  r�_check_flagszXvfbDisplay._check_flags5s���rc
��tdd���|jdddt|j��d�ttt
|j��|jgz����g}|j	r|d|j	gz
}|j
�|d	t|j
��gz
}|jr|d
t|j��gz
}n||j
gz
}tg|zS)Nz-brz-wr)r�whitez	-nolisten�tcpz-screen�xz-fbdirz-dpiz
-displayfd)�dictr�strr�join�map�listrrrr�_has_displayfd�	_pipe_wfd�new_display_varr)r�cmds  r�_cmdzXvfbDisplay._cmd8s����u�E�*�*�*�4�=�9����������H�H�S��d�4�:�.�.�$�2C�1D�D�E�E�F�F�

���;�	+��H�d�k�*�*�C��9� ��F�C��	�N�N�+�+�C���	*��L�#�d�n�"5�"5�6�6�C�C��D�(�)�)�C��y�3��r)�__name__�
__module__�__qualname__�__doc__rr"r0r rrrr
sn����������������� 
� 
� 
� 
�D
�
�
�����rr)�logging� pyvirtualdisplay.abstractdisplayr�	getLoggerr1�logrrr rr�<module>r9sk������<�<�<�<�<�<��g���!�!��
��?�?�?�?�?�/�?�?�?�?�?r

Hacked By AnonymousFox1.0, Coded By AnonymousFox