Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
):
"""
:param bgcolor: 'black' or 'white'
:param rfbport: Specifies the TCP port on which Xvnc listens for connections from viewers (the protocol used in VNC is called RFB - "remote framebuffer"). The default is 5900 plus the display number.
:param rfbauth: Specifies the file containing the password used to authenticate viewers.
"""
# self.screen = 0
self._size = size
self._color_depth = color_depth
# self.process = None
self._bgcolor = bgcolor
# self.display = None
self._rfbport = rfbport
self._rfbauth = rfbauth
AbstractDisplay.__init__(
self,
PROGRAM,
use_xauth=use_xauth,
# check_startup=check_startup,
randomizer=randomizer,
retries=retries,
extra_args=extra_args,
)
"""
: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
"""
self._screen = 0
self._size = size
self._color_depth = color_depth
# self.process = None
self._bgcolor = bgcolor
# self.display = None
self._fbdir = fbdir
self._dpi = dpi
AbstractDisplay.__init__(
self,
PROGRAM,
use_xauth=use_xauth,
# check_startup=check_startup,
randomizer=randomizer,
retries=retries,
extra_args=extra_args,
)
# check_startup=False,
randomizer=None,
retries=10,
extra_args=[],
):
"""
:param bgcolor: 'black' or 'white'
"""
self._color_depth = color_depth
self._size = size
self._bgcolor = bgcolor
# self.screen = 0
# self.process = None
# self.display = None
AbstractDisplay.__init__(
self,
PROGRAM,
use_xauth=use_xauth,
# check_startup=check_startup,
randomizer=randomizer,
retries=retries,
extra_args=extra_args,
)