(self, extension)
Return True if the given *extension* is part of the extensions list of the server.
Return True if the given *extension* is part of the extensions list of the server.
Return True if the given * extension * is part of the extensions list of the server .
def has_extension(self, extension):
        # type: (str) -> bool
        """Return True if the given *extension* is part of the extensions list of the server."""
        with lock:
            major_opcode_return = c_int()
            first_event_return = c_int()
            first_error_return = c_int()

            try:
                self.xlib.XQueryExtension(
                    self._get_display(),
                    extension.encode("latin1"),
                    ctypes.byref(major_opcode_return),
                    ctypes.byref(first_event_return),
                    ctypes.byref(first_error_return),
                )
            except ScreenShotError:
                return False
            else:
                return True
def has_extension ( self , extension ) : # type: (str) -> bool with lock : major_opcode_return = c_int ( ) first_event_return = c_int ( ) first_error_return = c_int ( ) try : self . xlib . XQueryExtension ( self . _get_display ( ) , extension . encode ( "latin1" ) , ctypes . byref ( major_opcode_return ) , ctypes . byref ( first_event_return ) , ctypes . byref ( first_error_return ) , ) except ScreenShotError : return False else : return True