Hacked By AnonymousFox

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

�

�܋f���j�ddlmZmZmZmZddlmZddlmZddl	m
Z
ee
ed�ZGd�de��Z
dS)	�)�Dict�List�Optional�Tuple)�
XephyrDisplay)�XvfbDisplay)�XvncDisplay)�xvfb�xvnc�xephyrc��eZdZdZdddddddgdf	d	eed
edeeefded
ededede	edefd�Z
dd�Zdd�Zd�Z
d�Zdefd�Zedefd���Zedefd���Zedefd���Zdeeeffd�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)ii��black�
T�backend�visible�size�color_depth�bgcolor�	use_xauth�retries�
extra_args�manage_global_envc
� �||_||_||_||_||_|js|jrd|_nd|_t
�|j��}|std|jz���|d|||||||	d�|
��|_dS)Nrr
zunknown backend: %s)rrrrrrr�)	�_color_depth�_size�_bgcolor�_visible�_backend�
_class_map�get�
ValueError�_obj)�selfrrrrrrrrr�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&s r)r.z
Display.startBs��	
�	�������r+c�8�|j���|S)z4
        stop display

        :rtype: self
        )r%�stopr/s r)r1zDisplay.stopKs��	
�	�������r+c�.�|���|S)�%used by the :keyword:`with` statement)r.r/s r)�	__enter__zDisplay.__enter__Ts���
�
�����r+c�.�|���dS)r3N)r1)r&�exc_infos  r)�__exit__zDisplay.__exit__Ys���	�	�����r+c�4�|j���S)N)r%�is_aliver/s r)r9zDisplay.is_alive]s���y�!�!�#�#�#r+c��|jjS)zI
        PID (:attr:`subprocess.Popen.pid`)

        :rtype: int
        )r%�pidr/s r)r;zDisplay.pidds���y�}�r+c��|jjS)z=The new $DISPLAY variable as int.  Example 1 if $DISPLAY=':1')r%�displayr/s r)r=zDisplay.displayms���y� � r+c��|jjS)z#The new $DISPLAY variable like ':1')r%�new_display_varr/s r)r?zDisplay.new_display_varrs���y�(�(r+c�4�|j���S)z<env() copies global os.environ and adds disp.new_display_var)r%�_envr/s r)�envzDisplay.envws���y�~�~���r+)r,r)�__name__�
__module__�__qualname__�__doc__r�str�boolr�intrr*r.r1r4r7r9�propertyr;r=r?rrBrr+r)rr
s���������"&�� +����� "�"&�(
�(
��#��(
��(
��C��H�o�	(
�
�(
��
(
��(
��(
���I�(
� �(
�(
�(
�(
�T�����������
���$�$�$�$�$�$���S�����X���!��!�!�!��X�!��)��)�)�)��X�)� �T�#�s�(�^� � � � � � r+rN)�typingrrrr�pyvirtualdisplay.xephyrr�pyvirtualdisplay.xvfbr�pyvirtualdisplay.xvncr	r"�objectrrr+r)�<module>rPs���.�.�.�.�.�.�.�.�.�.�.�.�1�1�1�1�1�1�-�-�-�-�-�-�-�-�-�-�-�-�!�;�-�
P�
P�
�o �o �o �o �o �f�o �o �o �o �o r+

Hacked By AnonymousFox1.0, Coded By AnonymousFox