$85 GRAYBYTE WORDPRESS FILE MANAGER $53

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/pyvirtualdisplay/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyvirtualdisplay//xephyr.py
import logging

from pyvirtualdisplay.abstractdisplay import AbstractDisplay

log = logging.getLogger(__name__)

PROGRAM = "Xephyr"


class XephyrDisplay(AbstractDisplay):
    """
    Xephyr wrapper

    Xephyr is an X server outputting to a window on a pre-existing X display
    """

    def __init__(
        self,
        size=(1024, 768),
        color_depth=24,
        bgcolor="black",
        use_xauth=False,
        retries=10,
        extra_args=[],
        manage_global_env=True,
        parent=None,
    ):
        """
        :param bgcolor: 'black' or 'white'
        """
        self._color_depth = color_depth
        self._size = size
        self._bgcolor = bgcolor
        self._parent = parent

        AbstractDisplay.__init__(
            self,
            PROGRAM,
            use_xauth=use_xauth,
            retries=retries,
            extra_args=extra_args,
            manage_global_env=manage_global_env,
        )

    def _check_flags(self, helptext):
        self._has_resizeable = "-resizeable" in helptext

    def _cmd(self):
        cmd = (
            [
                PROGRAM,
            ]
            + (["-parent", self._parent] if self._parent else [])
            + [
                dict(black="-br", white="-wr")[self._bgcolor],
                "-screen",
                "x".join(map(str, list(self._size) + [self._color_depth])),
            ]
        )
        if self._has_displayfd:
            cmd += ["-displayfd", str(self._pipe_wfd)]
        else:
            cmd += [self.new_display_var]

        if self._has_resizeable:
            cmd += ["-resizeable"]
        return cmd

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 3.08 AM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
examples
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
0.235 KB
17 Apr 2025 8.10 PM
root / root
0644
about.py
0.02 KB
17 Apr 2025 8.10 PM
root / root
0644
abstractdisplay.py
12.288 KB
17 Apr 2025 8.10 PM
root / root
0644
display.py
3.181 KB
17 Apr 2025 8.10 PM
root / root
0644
py.typed
0 KB
17 Apr 2025 8.10 PM
root / root
0644
smartdisplay.py
2.601 KB
17 Apr 2025 8.10 PM
root / root
0644
util.py
0.475 KB
17 Apr 2025 8.10 PM
root / root
0644
xauth.py
1.14 KB
17 Apr 2025 8.10 PM
root / root
0644
xephyr.py
1.597 KB
17 Apr 2025 8.10 PM
root / root
0644
xvfb.py
1.896 KB
17 Apr 2025 8.10 PM
root / root
0644
xvnc.py
1.872 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF