test/conftest.py
def start_xephyr(self):
        """Start Xephyr instance

        Starts the Xephyr instance and sets the `self.display` to the display
        which is used to setup the instance.
        """
        # get a new display
        self.display = ":{}".format(_find_display())

        # build up arguments
        args = [
            "Xephyr",
            "-name",
            "qtile_test",
            self.display,
            "-ac",
            "-screen",
            "{}x{}".format(self.width, self.height),
        ]
        if self.two_screens:
            args.extend(["-origin", "%s,0" % self.xoffset, "-screen",
                         "%sx%s" % (SECOND_WIDTH, SECOND_HEIGHT)])
        if self.xinerama:
            args.extend(["+xinerama"])
        if self.randr:
            args.extend(["+extension", "RANDR"])

        self.proc = subprocess.Popen(args)

        if can_connect_x11(self.display):
            return
        else:
            # we wern't able to get a display up
            self.display = None
            raise AssertionError("Unable to start Xephyr, quit with return code {:d}".format(
                self.proc.returncode
            ))
Start Xephyr instance

        Starts the Xephyr instance and sets the `self.display` to the display
        which is used to setup the instance.
        
Start Xephyr instance
Starts the Xephyr instance and sets the `self.display` to the display
which is used to setup the instance.
Start Xephyr instance Starts the Xephyr instance and sets the ` self . display ` to the display which is used to setup the instance .
def start_xephyr(self):
        self.display = ":{}".format(_find_display())
        args = [
            "Xephyr",
            "-name",
            "qtile_test",
            self.display,
            "-ac",
            "-screen",
            "{}x{}".format(self.width, self.height),
        ]
        if self.two_screens:
            args.extend(["-origin", "%s,0" % self.xoffset, "-screen",
                         "%sx%s" % (SECOND_WIDTH, SECOND_HEIGHT)])
        if self.xinerama:
            args.extend(["+xinerama"])
        if self.randr:
            args.extend(["+extension", "RANDR"])
        self.proc = subprocess.Popen(args)
        if can_connect_x11(self.display):
            return
        else:
            self.display = None
            raise AssertionError("Unable to start Xephyr, quit with return code {:d}".format(
                self.proc.returncode
            ))
def start_xephyr ( self ) : self . display = ":{}" . format ( _find_display ( ) ) args = [ "Xephyr" , "-name" , "qtile_test" , self . display , "-ac" , "-screen" , "{}x{}" . format ( self . width , self . height ) , ] if self . two_screens : args . extend ( [ "-origin" , "%s,0" % self . xoffset , "-screen" , "%sx%s" % ( SECOND_WIDTH , SECOND_HEIGHT ) ] ) if self . xinerama : args . extend ( [ "+xinerama" ] ) if self . randr : args . extend ( [ "+extension" , "RANDR" ] ) self . proc = subprocess . Popen ( args ) if can_connect_x11 ( self . display ) : return else : self . display = None raise AssertionError ( "Unable to start Xephyr, quit with return code {:d}" . format ( self . proc . returncode ) )
Start Xephyr instance
Starts the Xephyr instance and sets the `self.display` to the display
which is used to setup the instance.
Start Xephyr instance Starts the Xephyr instance and sets the ` self . display ` to the display which is used to setup the instance .
"""Start Xephyr instance

        Starts the Xephyr instance and sets the `self.display` to the display
        which is used to setup the instance.
        """ # get a new display # build up arguments # we wern't able to get a display up
self