Hacked By AnonymousFox
�
�܋f� � �j � d dl mZmZmZmZ d dlmZ d dlmZ d dl m
Z
ee
ed�Z G d� de� � Z
dS ) � )�Dict�List�Optional�Tuple)�
XephyrDisplay)�XvfbDisplay)�XvncDisplay)�xvfb�xvnc�xephyrc � � e Zd ZdZdddddddg df d ee d
edeeef ded
ededede e defd�Z
dd�Zdd�Zd� Z
d� Zdefd�Zedefd�� � Zedefd�� � Zedefd�� � Zdeeef fd�ZdS )�Displaya�
Proxy class
:param color_depth: [8, 16, 24, 32]
:param size: screen size (width,height)
:param bgcolor: background color ['black' or 'white']
:param visible: True -> Xephyr, False -> Xvfb
:param backend: 'xvfb', 'xvnc' or 'xephyr', ignores ``visible``
:param xauth: If a Xauthority file should be created.
:param manage_global_env: if True then $DISPLAY is set in os.environ
which is not thread-safe. Use False to make it thread-safe.
NF)i i � �black�
T�backend�visible�size�color_depth�bgcolor� use_xauth�retries�
extra_args�manage_global_envc
� � || _ || _ || _ || _ || _ | j s| j rd| _ nd| _ t
� | j � � }|st d| j z � � � |d||||||| d�|
��| _ d S )Nr r
zunknown backend: %s)r r r r r r r � ) �_color_depth�_size�_bgcolor�_visible�_backend�
_class_map�get�
ValueError�_obj)�selfr r r r r r r r r �kwargs�clss �i/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyvirtualdisplay/display.py�__init__zDisplay.__init__ s� � � (�����
���
���
���
��}� '��}�
'� (��
�
� &��
��n�n�T�]�+�+��� D��2�T�]�B�C�C�C��C�
��#����!�/�
�
� �
�
�� � � � �returnc �8 � | j � � � | S )z5
start display
:rtype: self
)r% �start�r&