././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1576763383.0693755
PyQtWebEngine-5.14.0/ 0000755 0000765 0000024 00000000000 00000000000 014342 5 ustar 00phil staff 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763383.069506
PyQtWebEngine-5.14.0/PKG-INFO 0000644 0000765 0000024 00000003535 00000000000 015445 0 ustar 00phil staff 0000000 0000000 Metadata-Version: 2.1
Name: PyQtWebEngine
Version: 5.14.0
Requires-Python: >=3.5
Summary: Python bindings for the Qt WebEngine framework
Home-Page: https://www.riverbankcomputing.com/software/pyqtwebengine/
Author: Riverbank Computing Limited
Author-Email: info@riverbankcomputing.com
License: GPL v3
Requires-Dist: PyQt5-sip (>=12.7, <13)
Requires-Dist: PyQt5 (>=5.14)
PyQtWebEngine - Python Bindings for the Qt WebEngine Framework
==============================================================
PyQtWebEngine is a set of Python bindings for The Qt Company's Qt WebEngine
framework. The framework provides the ability to embed web content in
applications and is based on the Chrome browser. The bindings sit on top of
PyQt5 and are implemented as three separate modules corresponding to the
different libraries that make up the framework.
Author
------
PyQtWebEngine is copyright (c) Riverbank Computing Limited. Its homepage is
https://www.riverbankcomputing.com/software/pyqtwebengine/.
Support may be obtained from the PyQt mailing list at
https://www.riverbankcomputing.com/mailman/listinfo/pyqt/.
License
-------
PyQtWebEngine is released under the GPL v3 license and under a commercial
license that allows for the development of proprietary applications.
Documentation
-------------
The documentation for the latest release can be found
`here `__.
Installation
------------
The GPL version of PyQtWebEngine can be installed from PyPI::
pip install PyQtWebEngine
The wheels include a copy of the required parts of the LGPL version of Qt.
``pip`` will also build and install the bindings from the sdist package but
Qt's ``qmake`` tool must be on ``PATH``.
The ``sip-install`` tool will also install the bindings from the sdist package
but will allow you to configure many aspects of the installation.
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.348306
PyQtWebEngine-5.14.0/configure.py 0000644 0000765 0000024 00000216215 00000000000 016704 0 ustar 00phil staff 0000000 0000000 # Copyright (c) 2019, Riverbank Computing Limited
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# This is v2.15 of this boilerplate.
from distutils import sysconfig
import glob
import os
import optparse
import sys
###############################################################################
# You shouldn't need to modify anything above this line.
###############################################################################
class QtWebEngineConfiguration(object):
""" This class encapsulates the module specific information. """
# The name of the module as it would be used in an import statement.
name = 'QtWebEngine'
# Set if support for C++ exceptions can be disabled.
no_exceptions = True
# The name (without the .pyi extension) of the name of the PEP 484 stub
# file to be generated. If it is None or an empty string then a stub file
# is not generated.
pep484_stub_file = 'QtWebEngine'
@staticmethod
def get_sip_file(target_configuration):
""" Return the name of the module's .sip file. target_configuration is
the target configuration.
"""
return 'sip/QtWebEngine/QtWebEnginemod.sip'
@staticmethod
def get_sip_installs(target_configuration):
""" Return a tuple of the installation directory of the module's .sip
files and a sequence of the names of each of the .sip files relative to
the directory containing this configuration script. None is returned
if the module's .sip files are not to be installed.
target_configuration is the target configuration.
"""
if target_configuration.qtwebengine_sip_dir == '':
return None
path = os.path.join(target_configuration.qtwebengine_sip_dir,
'QtWebEngine')
files = glob.glob('sip/QtWebEngine/*.sip')
return path, files
@staticmethod
def get_qmake_configuration(target_configuration):
""" Return a dict of qmake configuration values for CONFIG, DEFINES,
INCLUDEPATH, LIBS and QT. If value names (i.e. dict keys) have either
'Qt4' or 'Qt5' prefixes then they are specific to the corresponding
version of Qt. target_configuration is the target configuration.
"""
return {'QT': 'webengine'}
@staticmethod
def get_mac_wrapped_library_file(target_configuration):
""" Return the full pathname of the file that implements the library
being wrapped by the module as it would be called on OS/X so that the
module will reference it explicitly without DYLD_LIBRARY_PATH being
set. If it is None or an empty string then the default is used.
target_configuration is the target configuration.
"""
return None
class QtWebEngineCoreConfiguration(object):
""" This class encapsulates the module specific information. """
# The name of the module as it would be used in an import statement.
name = 'QtWebEngineCore'
# Set if support for C++ exceptions can be disabled.
no_exceptions = True
# The name (without the .pyi extension) of the name of the PEP 484 stub
# file to be generated. If it is None or an empty string then a stub file
# is not generated.
pep484_stub_file = 'QtWebEngineCore'
@staticmethod
def get_sip_file(target_configuration):
""" Return the name of the module's .sip file. target_configuration is
the target configuration.
"""
return 'sip/QtWebEngineCore/QtWebEngineCoremod.sip'
@staticmethod
def get_sip_installs(target_configuration):
""" Return a tuple of the installation directory of the module's .sip
files and a sequence of the names of each of the .sip files relative to
the directory containing this configuration script. None is returned
if the module's .sip files are not to be installed.
target_configuration is the target configuration.
"""
if target_configuration.qtwebengine_sip_dir == '':
return None
path = os.path.join(target_configuration.qtwebengine_sip_dir,
'QtWebEngineCore')
files = glob.glob('sip/QtWebEngineCore/*.sip')
return path, files
@staticmethod
def get_qmake_configuration(target_configuration):
""" Return a dict of qmake configuration values for CONFIG, DEFINES,
INCLUDEPATH, LIBS and QT. If value names (i.e. dict keys) have either
'Qt4' or 'Qt5' prefixes then they are specific to the corresponding
version of Qt. target_configuration is the target configuration.
"""
return {'QT': 'webenginecore'}
@staticmethod
def get_mac_wrapped_library_file(target_configuration):
""" Return the full pathname of the file that implements the library
being wrapped by the module as it would be called on OS/X so that the
module will reference it explicitly without DYLD_LIBRARY_PATH being
set. If it is None or an empty string then the default is used.
target_configuration is the target configuration.
"""
return None
class QtWebEngineWidgetsConfiguration(object):
""" This class encapsulates the module specific information. """
# The name of the module as it would be used in an import statement.
name = 'QtWebEngineWidgets'
# Set if support for C++ exceptions can be disabled.
no_exceptions = True
# The name (without the .pyi extension) of the name of the PEP 484 stub
# file to be generated. If it is None or an empty string then a stub file
# is not generated.
pep484_stub_file = 'QtWebEngineWidgets'
@staticmethod
def get_sip_file(target_configuration):
""" Return the name of the module's .sip file. target_configuration is
the target configuration.
"""
return 'sip/QtWebEngineWidgets/QtWebEngineWidgetsmod.sip'
@staticmethod
def get_sip_installs(target_configuration):
""" Return a tuple of the installation directory of the module's .sip
files and a sequence of the names of each of the .sip files relative to
the directory containing this configuration script. None is returned
if the module's .sip files are not to be installed.
target_configuration is the target configuration.
"""
if target_configuration.qtwebengine_sip_dir == '':
return None
path = os.path.join(target_configuration.qtwebengine_sip_dir,
'QtWebEngineWidgets')
files = glob.glob('sip/QtWebEngineWidgets/*.sip')
return path, files
@staticmethod
def get_qmake_configuration(target_configuration):
""" Return a dict of qmake configuration values for CONFIG, DEFINES,
INCLUDEPATH, LIBS and QT. If value names (i.e. dict keys) have either
'Qt4' or 'Qt5' prefixes then they are specific to the corresponding
version of Qt. target_configuration is the target configuration.
"""
return {'QT': 'webenginewidgets'}
@staticmethod
def get_mac_wrapped_library_file(target_configuration):
""" Return the full pathname of the file that implements the library
being wrapped by the module as it would be called on OS/X so that the
module will reference it explicitly without DYLD_LIBRARY_PATH being
set. If it is None or an empty string then the default is used.
target_configuration is the target configuration.
"""
return None
class PackageConfiguration(object):
""" This class encapsulates all the package specific information needed by
the rest of this script to implement a configure.py script for modules that
build on top of PyQt. Functions implemented by the rest of this script
that begin with an underscore are considered internal and shouldn't be
called from here.
"""
# The descriptive name of the package. This is used in help text and error
# messages.
descriptive_name = "PyQtWebEngine"
# The version of the module as a string. Set it to None if you don't
# provide version information.
version = '5.14.0'
# The name of the PEP 376 .dist-info directory to be created.
distinfo_name = 'PyQtWebEngine'
# The sequence of module configurations that make up the package.
modules = [QtWebEngineConfiguration(), QtWebEngineCoreConfiguration(),
QtWebEngineWidgetsConfiguration()]
# Set if a configuration script is provided that handles versions of PyQt4
# prior to v4.10 (i.e. versions where the pyqtconfig.py module is
# available). If provided the script must be called configure-old.py and
# be in the same directory as this script.
legacy_configuration_script = False
# The minimum version of SIP that is required. This should be a
# dot-separated string of two or three integers (e.g. '1.0', '4.10.3'). If
# it is None or an empty string then the version is not checked.
minimum_sip_version = '4.19.4'
# Set if redefining 'protected' as 'public' is supported.
protected_is_public_is_supported = True
# Set if PyQt4 is supported.
pyqt4_is_supported = False
# Set if PyQt5 is supported.
pyqt5_is_supported = True
# Set if the PyQt5 support is the default. It is ignored unless both
# 'pyqt4_is_supported' and 'pyqt5_is_supported' are set.
pyqt5_is_default = True
# The name (without the .api extension) of the name of the QScintilla API
# file to be generated. If it is None or an empty string then an API file
# is not generated.
qscintilla_api_file = 'PyQtWebEngine'
# The email address that will be included when an error in the script is
# detected. Leave it blank if you don't want to include an address.
support_email_address = 'support@riverbankcomputing.com'
# Set if the user can provide a configuration file. It is normally only
# used if cross-compilation is supported.
user_configuration_file_is_supported = True
# Set if the user is allowed to pass PyQt sip flags on the command line.
# It is normally only used if cross-compilation is supported. It is
# ignored unless at least one of 'pyqt4_is_supported' or
# 'pyqt5_is_supported' is set.
user_pyqt_sip_flags_is_supported = True
@staticmethod
def init_target_configuration(target_configuration):
""" Perform any package specific initialisation of the target
target configuration. Typically this is the initialisation of package
specific attributes. To avoid name clashes attributes should be given
a package specific prefix. target_configuration is the target
configuration.
"""
target_configuration.qtwebengine_sip_dir = None
@staticmethod
def init_optparser(optparser, target_configuration):
""" Perform any package specific initialisation of the command line
option parser. To avoid name clashes destination attributes should be
given a package specific prefix. optparser is the option parser.
target_configuration is the target configuration.
"""
optparser.add_option('--sipdir', '-v',
dest='qtwebengine_sip_dir', type='string', default=None,
action='callback', callback=optparser_store_abspath_dir,
metavar="DIR",
help="the QtWebEngine .sip files will be installed in DIR "
"[default: %s]" % target_configuration.pyqt_sip_dir)
optparser.add_option("--no-sip-files", action="store_true",
default=False, dest="qtwebengine_no_sip_files",
help="disable the installation of the .sip files "
"[default: enabled]")
@staticmethod
def apply_options(target_configuration, options):
""" Apply the package specific command line options to the target
configuration. target_configuration is the target configuration.
options are the parsed options.
"""
if options.qtwebengine_sip_dir is not None:
target_configuration.qtwebengine_sip_dir = options.qtwebengine_sip_dir
else:
target_configuration.qtwebengine_sip_dir = target_configuration.pyqt_sip_dir
if options.qtwebengine_no_sip_files:
target_configuration.qtwebengine_sip_dir = ''
@staticmethod
def check_package(target_configuration):
""" Perform any package specific checks now that the target
configuration is complete. target_configuration is the target
configuration.
"""
# Remove modules that are Qt version specific. Note that we don't add
# them if we find they are needed because we need to make sure the
# initial list of modules isn't empty when the command line parser is
# created.
remove = []
if target_configuration.qt_version < 0x050400:
remove.append('QtWebEngineWidgets')
if target_configuration.qt_version < 0x050600:
remove.append('QtWebEngine')
remove.append('QtWebEngineCore')
if remove:
PackageConfiguration.modules = [
m for m in PackageConfiguration.modules
if m.name not in remove]
@staticmethod
def inform_user(target_configuration):
""" Inform the user about package specific configuration information.
target_configuration is the target configuration.
"""
if target_configuration.qtwebengine_sip_dir != '':
inform("The PyQtWebEngine .sip files will be installed in %s." % target_configuration.qtwebengine_sip_dir)
@staticmethod
def pre_code_generation(target_config):
""" Perform any package specific initialisation prior to generating the
code. target_config is the target configuration.
"""
# Nothing to do.
@staticmethod
def get_sip_flags(target_configuration):
""" Return the list of package specific flags to pass to SIP.
target_configuration is the target configuration.
"""
# Qt v5.12.4 was the last release where we updated PyQt for a patch
# version.
major = (target_configuration.qt_version >> 16) & 0xff
minor = (target_configuration.qt_version >> 8) & 0xff
patch = target_configuration.qt_version & 0xff
if (major, minor) >= (5, 13):
patch = 0
elif (major, minor) == (5, 12):
if patch > 4:
patch = 4
version_tag = 'QtWebEngine_%d_%d_%d' % (major, minor, patch)
return ['-t', version_tag]
###############################################################################
# You shouldn't need to modify anything below this line.
###############################################################################
def error(msg):
""" Display an error message and terminate. msg is the text of the error
message.
"""
sys.stderr.write(_format("Error: " + msg) + "\n")
sys.exit(1)
def inform(msg):
""" Display an information message. msg is the text of the error message.
"""
sys.stdout.write(_format(msg) + "\n")
def quote(path):
""" Return a path with quotes added if it contains spaces. path is the
path.
"""
if ' ' in path:
path = '"%s"' % path
return path
def optparser_store_abspath(option, opt_str, value, parser):
""" An optparser callback that saves an option as an absolute pathname. """
setattr(parser.values, option.dest, os.path.abspath(value))
def optparser_store_abspath_dir(option, opt_str, value, parser):
""" An optparser callback that saves an option as the absolute pathname
of an existing directory.
"""
if not os.path.isdir(value):
raise optparse.OptionValueError("'%s' is not a directory" % value)
setattr(parser.values, option.dest, os.path.abspath(value))
def optparser_store_abspath_exe(option, opt_str, value, parser):
""" An optparser callback that saves an option as the absolute pathname
of an existing executable.
"""
if not os.access(value, os.X_OK):
raise optparse.OptionValueError("'%s' is not an executable" % value)
setattr(parser.values, option.dest, os.path.abspath(value))
def read_define(filename, define):
""" Read the value of a #define from a file. filename is the name of the
file. define is the name of the #define. None is returned if there was no
such #define.
"""
f = open(filename)
for l in f:
wl = l.split()
if len(wl) >= 3 and wl[0] == "#define" and wl[1] == define:
# Take account of embedded spaces.
value = ' '.join(wl[2:])[1:-1]
break
else:
value = None
f.close()
return value
def version_from_string(version_str):
""" Convert a version string of the form m, m.n or m.n.o to an encoded
version number (or None if it was an invalid format). version_str is the
version string.
"""
parts = version_str.split('.')
if not isinstance(parts, list):
return None
if len(parts) == 1:
parts.append('0')
if len(parts) == 2:
parts.append('0')
if len(parts) != 3:
return None
version = 0
for part in parts:
try:
v = int(part)
except ValueError:
return None
version = (version << 8) + v
return version
def _format(msg, left_margin=0, right_margin=78):
""" Format a message by inserting line breaks at appropriate places. msg
is the text of the message. left_margin is the position of the left
margin. right_margin is the position of the right margin. Returns the
formatted message.
"""
curs = left_margin
fmsg = " " * left_margin
for w in msg.split():
l = len(w)
if curs != left_margin and curs + l > right_margin:
fmsg = fmsg + "\n" + (" " * left_margin)
curs = left_margin
if curs > left_margin:
fmsg = fmsg + " "
curs = curs + 1
fmsg = fmsg + w
curs = curs + l
return fmsg
class _ConfigurationFileParser:
""" A parser for configuration files. """
def __init__(self, config_file):
""" Read and parse a configuration file. """
self._config = {}
self._extrapolating = []
cfg = open(config_file)
line_nr = 0
last_name = None
section = ''
section_config = {}
self._config[section] = section_config
for l in cfg:
line_nr += 1
# Strip comments.
l = l.split('#')[0]
# See if this might be part of a multi-line.
multiline = (last_name is not None and len(l) != 0 and l[0] == ' ')
l = l.strip()
if l == '':
last_name = None
continue
# See if this is a new section.
if l[0] == '[' and l[-1] == ']':
section = l[1:-1].strip()
if section == '':
error(
"%s:%d: Empty section name." % (
config_file, line_nr))
if section in self._config:
error(
"%s:%d: Section '%s' defined more than once." % (
config_file, line_nr, section))
section_config = {}
self._config[section] = section_config
last_name = None
continue
parts = l.split('=', 1)
if len(parts) == 2:
name = parts[0].strip()
value = parts[1].strip()
elif multiline:
name = last_name
value = section_config[last_name]
value += ' ' + l
else:
name = value = ''
if name == '' or value == '':
error("%s:%d: Invalid line." % (config_file, line_nr))
section_config[name] = value
last_name = name
cfg.close()
def sections(self):
""" Return the list of sections, excluding the default one. """
return [s for s in self._config.keys() if s != '']
def preset(self, name, value):
""" Add a preset value to the configuration. """
self._config[''][name] = value
def get(self, section, name, default=None):
""" Get a configuration value while extrapolating. """
# Get the name from the section, or the default section.
value = self._config[section].get(name)
if value is None:
value = self._config[''].get(name)
if value is None:
if default is None:
error(
"Configuration file references non-existent name "
"'%s'." % name)
return default
# Handle any extrapolations.
parts = value.split('%(', 1)
while len(parts) == 2:
prefix, tail = parts
parts = tail.split(')', 1)
if len(parts) != 2:
error(
"Configuration file contains unterminated "
"extrapolated name '%s'." % tail)
xtra_name, suffix = parts
if xtra_name in self._extrapolating:
error(
"Configuration file contains a recursive reference to "
"'%s'." % xtra_name)
self._extrapolating.append(xtra_name)
xtra_value = self.get(section, xtra_name)
self._extrapolating.pop()
value = prefix + xtra_value + suffix
parts = value.split('%(', 1)
return value
def getboolean(self, section, name, default):
""" Get a boolean configuration value while extrapolating. """
value = self.get(section, name, default)
# In case the default was returned.
if isinstance(value, bool):
return value
if value in ('True', 'true', '1'):
return True
if value in ('False', 'false', '0'):
return False
error(
"Configuration file contains invalid boolean value for "
"'%s'." % name)
def getlist(self, section, name, default):
""" Get a list configuration value while extrapolating. """
value = self.get(section, name, default)
# In case the default was returned.
if isinstance(value, list):
return value
return value.split()
class _HostPythonConfiguration:
""" A container for the host Python configuration. """
def __init__(self):
""" Initialise the configuration. """
self.platform = sys.platform
self.version = sys.hexversion >> 8
self.inc_dir = sysconfig.get_python_inc()
self.venv_inc_dir = sysconfig.get_python_inc(prefix=sys.prefix)
self.module_dir = sysconfig.get_python_lib(plat_specific=1)
self.debug = hasattr(sys, 'gettotalrefcount')
if sys.platform == 'win32':
try:
# Python v3.3 and later.
base_prefix = sys.base_prefix
except AttributeError:
try:
# virtualenv for Python v2.
base_prefix = sys.real_prefix
except AttributeError:
# We can't detect the base prefix in Python v3 prior to
# v3.3.
base_prefix = sys.prefix
self.data_dir = sys.prefix
self.lib_dir = base_prefix + '\\libs'
else:
self.data_dir = sys.prefix + '/share'
self.lib_dir = sys.prefix + '/lib'
class _TargetQtConfiguration:
""" A container for the target Qt configuration. """
def __init__(self, qmake):
""" Initialise the configuration. qmake is the full pathname of the
qmake executable that will provide the configuration.
"""
pipe = os.popen(quote(qmake) + ' -query')
for l in pipe:
l = l.strip()
tokens = l.split(':', 1)
if isinstance(tokens, list):
if len(tokens) != 2:
error("Unexpected output from qmake: '%s'\n" % l)
name, value = tokens
else:
name = tokens
value = None
name = name.replace('/', '_')
setattr(self, name, value)
pipe.close()
class _TargetConfiguration:
""" A container for the target configuration. """
def __init__(self, pkg_config):
""" Initialise the configuration with default values. pkg_config is
the package configuration.
"""
# Values based on the host Python configuration.
py_config = _HostPythonConfiguration()
self.py_debug = py_config.debug
self.py_platform = py_config.platform
self.py_version = py_config.version
self.py_module_dir = py_config.module_dir
self.py_inc_dir = py_config.inc_dir
self.py_venv_inc_dir = py_config.venv_inc_dir
self.py_pylib_dir = py_config.lib_dir
self.py_sip_dir = os.path.join(py_config.data_dir, 'sip')
# Remaining values.
self.abi_version = None
self.debug = False
self.pyqt_sip_flags = None
self.pyqt_version_str = ''
self.qmake = self._find_exe('qmake')
self.qmake_spec = ''
self.qmake_variables = []
self.qt_version = 0
self.qt_version_str = ''
self.sip = self._find_exe('sip5', 'sip')
self.sip_inc_dir = None
self.sip_version = None
self.sip_version_str = None
self.sysroot = ''
self.stubs_dir = ''
self.distinfo = False
self.prot_is_public = (self.py_platform.startswith('linux') or self.py_platform == 'darwin')
if pkg_config.pyqt5_is_supported and pkg_config.pyqt4_is_supported:
pyqt = 'PyQt5' if pkg_config.pyqt5_is_default else 'PyQt4'
elif pkg_config.pyqt5_is_supported and not pkg_config.pyqt4_is_supported:
pyqt = 'PyQt5'
elif not pkg_config.pyqt5_is_supported and pkg_config.pyqt4_is_supported:
pyqt = 'PyQt4'
else:
pyqt = None
if pyqt is not None:
self.module_dir = os.path.join(py_config.module_dir, pyqt)
self.pyqt_sip_dir = os.path.join(self.py_sip_dir, pyqt)
else:
self.module_dir = py_config.module_dir
self.pyqt_sip_dir = None
self.pyqt_package = pyqt
pkg_config.init_target_configuration(self)
def update_from_configuration_file(self, config_file):
""" Update the configuration with values from a file. config_file
is the name of the configuration file.
"""
inform("Reading configuration from %s..." % config_file)
parser = _ConfigurationFileParser(config_file)
# Populate some presets from the command line.
parser.preset('py_major', str(self.py_version >> 16))
parser.preset('py_minor', str((self.py_version >> 8) & 0xff))
parser.preset('sysroot', self.sysroot)
if self.pyqt_package is None:
section = ''
else:
# At the moment we only need to distinguish between PyQt4 and
# PyQt5. If that changes we may need a --target-pyqt-version
# command line option.
pyqt_version = 0x050000 if self.pyqt_package == 'PyQt5' else 0x040000
# Find the section corresponding to the version of PyQt.
section = None
latest_section = -1
for name in parser.sections():
parts = name.split()
if len(parts) != 2 or parts[0] != 'PyQt':
continue
section_pyqt_version = version_from_string(parts[1])
if section_pyqt_version is None:
continue
# Major versions must match.
if section_pyqt_version >> 16 != pyqt_version >> 16:
continue
# It must be no later that the version of PyQt.
if section_pyqt_version > pyqt_version:
continue
# Save it if it is the latest so far.
if section_pyqt_version > latest_section:
section = name
latest_section = section_pyqt_version
if section is None:
error(
"%s does not define a section that covers PyQt "
"v%s." % (config_file, self.pyqt_version_str))
self.py_platform = parser.get(section, 'py_platform', self.py_platform)
self.py_inc_dir = parser.get(section, 'py_inc_dir', self.py_inc_dir)
self.py_venv_inc_dir = self.py_inc_dir
self.py_pylib_dir = parser.get(section, 'py_pylib_dir',
self.py_pylib_dir)
self.module_dir = parser.get(section, 'module_dir', self.module_dir)
if self.pyqt_package is not None:
self.py_sip_dir = parser.get(section, 'py_sip_dir',
self.py_sip_dir)
# Construct the SIP flags.
flags = []
sip_module = parser.get(section, 'sip_module')
if sip_module is not None:
flags.append('-n')
flags.append(sip_module)
flags.append('-t')
flags.append(self._get_platform_tag())
if self.pyqt_package == 'PyQt5':
if self.qt_version < 0x050000:
error("PyQt5 requires Qt v5.0 or later.")
if self.qt_version > 0x060000:
self.qt_version = 0x060000
else:
if self.qt_version > 0x050000:
self.qt_version = 0x050000
major = (self.qt_version >> 16) & 0xff
minor = (self.qt_version >> 8) & 0xff
patch = self.qt_version & 0xff
# Qt v5.12.4 was the last release where we updated PyQt for a
# patch version.
if (major, minor) >= (5, 13):
patch = 0
elif (major, minor) == (5, 12):
if patch > 4:
patch = 4
flags.append('-t')
flags.append('Qt_%d_%d_%d' % (major, minor, patch))
for feat in parser.getlist(section, 'pyqt_disabled_features', []):
flags.append('-x')
flags.append(feat)
self.pyqt_sip_flags = ' '.join(flags)
def _get_platform_tag(self):
""" Return the tag for the target platform. """
# This replicates the logic in PyQt's configure scripts.
if self.py_platform == 'win32':
plattag = 'WS_WIN'
elif self.py_platform == 'darwin':
plattag = 'WS_MACX'
else:
plattag = 'WS_X11'
return plattag
def introspect_pyqt(self, pkg_config):
""" Introspect PyQt to determine the sip flags required. pkg_config
is the package configuration.
"""
if self.pyqt_package == 'PyQt5':
try:
from PyQt5 import QtCore
except ImportError:
error(
"Unable to import PyQt5.QtCore. Make sure PyQt5 is "
"installed.")
else:
try:
from PyQt4 import QtCore
except ImportError:
error(
"Unable to import PyQt4.QtCore. Make sure PyQt4 is "
"installed.")
self.pyqt_version_str = QtCore.PYQT_VERSION_STR
self.qt_version_str = QtCore.qVersion()
# See if we have a PyQt that embeds its configuration.
try:
pyqt_config = QtCore.PYQT_CONFIGURATION
except AttributeError:
pyqt_config = None
if pyqt_config is None:
if pkg_config.legacy_configuration_script:
# Fallback to the old configuration script.
config_script = sys.argv[0].replace('configure', 'configure-old')
args = [sys.executable, config_script] + sys.argv[1:]
try:
os.execv(sys.executable, args)
except OSError:
pass
error("Unable to execute '%s'" % config_script)
error("PyQt v4.10 or later is required.")
self.pyqt_sip_flags = pyqt_config['sip_flags']
def apply_sysroot(self):
""" Apply sysroot where necessary. """
if self.sysroot != '':
self.py_inc_dir = self._apply_sysroot(self.py_inc_dir)
self.py_venv_inc_dir = self._apply_sysroot(self.py_venv_inc_dir)
self.py_pylib_dir = self._apply_sysroot(self.py_pylib_dir)
self.py_sip_dir = self._apply_sysroot(self.py_sip_dir)
self.module_dir = self._apply_sysroot(self.module_dir)
def _apply_sysroot(self, dir_name):
""" Replace any leading sys.prefix of a directory name with sysroot.
"""
if dir_name.startswith(sys.prefix):
dir_name = self.sysroot + dir_name[len(sys.prefix):]
return dir_name
def get_qt_configuration(self, opts):
""" Get the Qt configuration that can be extracted from qmake. opts
are the command line options.
"""
# Query qmake.
qt_config = _TargetQtConfiguration(self.qmake)
self.qt_version_str = getattr(qt_config, 'QT_VERSION', '')
self.qt_version = version_from_string(self.qt_version_str)
if self.qt_version is None:
error("Unable to determine the version of Qt.")
# On Windows for Qt versions prior to v5.9.0 we need to be explicit
# about the qmake spec.
if self.qt_version < 0x050900 and self.py_platform == 'win32':
if self.py_version >= 0x030500:
self.qmake_spec = 'win32-msvc2015'
elif self.py_version >= 0x030300:
self.qmake_spec = 'win32-msvc2010'
elif self.py_version >= 0x020600:
self.qmake_spec = 'win32-msvc2008'
elif self.py_version >= 0x020400:
self.qmake_spec = 'win32-msvc.net'
else:
self.qmake_spec = 'win32-msvc'
else:
# Otherwise use the default.
self.qmake_spec = ''
# The binary MacOS/X Qt installer used to default to XCode. If so then
# use macx-clang (Qt v5) or macx-g++ (Qt v4).
if sys.platform == 'darwin':
try:
# Qt v5.
if qt_config.QMAKE_SPEC == 'macx-xcode':
# This will exist (and we can't check anyway).
self.qmake_spec = 'macx-clang'
else:
# No need to explicitly name the default.
self.qmake_spec = ''
except AttributeError:
# Qt v4.
self.qmake_spec = 'macx-g++'
self.api_dir = os.path.join(qt_config.QT_INSTALL_DATA, 'qsci')
self.qt_inc_dir = qt_config.QT_INSTALL_HEADERS
self.qt_lib_dir = qt_config.QT_INSTALL_LIBS
if self.sysroot == '':
self.sysroot = getattr(qt_config, 'QT_SYSROOT', '')
def apply_pre_options(self, opts):
""" Apply options from the command line that influence subsequent
configuration. opts are the command line options.
"""
# On Windows the interpreter must be a debug build if a debug version
# is to be built and vice versa.
if sys.platform == 'win32':
if opts.debug:
if not self.py_debug:
error(
"A debug version of Python must be used when "
"--debug is specified.")
elif self.py_debug:
error(
"--debug must be specified when a debug version of "
"Python is used.")
self.debug = opts.debug
# Get the system root.
if opts.sysroot is not None:
self.sysroot = opts.sysroot
# Determine how to run qmake.
if opts.qmake is not None:
self.qmake = opts.qmake
# On Windows add the directory that probably contains the Qt DLLs
# to PATH.
if sys.platform == 'win32':
path = os.environ['PATH']
path = os.path.dirname(self.qmake) + ';' + path
os.environ['PATH'] = path
if self.qmake is None:
error(
"Use the --qmake argument to explicitly specify a working "
"Qt qmake.")
if opts.qmakespec is not None:
self.qmake_spec = opts.qmakespec
if self.pyqt_package is not None:
try:
self.pyqt_package = opts.pyqt_package
except AttributeError:
# Multiple PyQt versions are not supported.
pass
self.module_dir = os.path.join(self.py_module_dir,
self.pyqt_package)
def apply_post_options(self, opts, pkg_config):
""" Apply options from the command line that override the previous
configuration. opts are the command line options. pkg_config is the
package configuration.
"""
if self.pyqt_package is not None:
if pkg_config.user_pyqt_sip_flags_is_supported:
if opts.pyqt_sip_flags is not None:
self.pyqt_sip_flags = opts.pyqt_sip_flags
if opts.pyqt_sip_dir is not None:
self.pyqt_sip_dir = opts.pyqt_sip_dir
else:
# If sip v5 or later installed a bindings directory then assume
# the PyQt .sip files are there.
bindings_dir = os.path.join(self.module_dir, 'bindings')
if os.path.isdir(bindings_dir):
self.pyqt_sip_dir = bindings_dir
else:
self.pyqt_sip_dir = os.path.join(self.py_sip_dir,
self.pyqt_package)
if _has_stubs(pkg_config):
if opts.stubsdir is not None:
self.stubs_dir = opts.stubsdir
if opts.no_stubs:
self.stubs_dir = ''
elif self.stubs_dir == '':
self.stubs_dir = self.module_dir
if pkg_config.qscintilla_api_file:
if opts.apidir is not None:
self.api_dir = opts.apidir
if opts.no_qsci_api:
self.api_dir = ''
if opts.destdir is not None:
self.module_dir = opts.destdir
if pkg_config.protected_is_public_is_supported:
if opts.prot_is_public is not None:
self.prot_is_public = opts.prot_is_public
else:
self.prot_is_public = False
if opts.sip_inc_dir is not None:
self.sip_inc_dir = opts.sip_inc_dir
if opts.sip is not None:
self.sip = opts.sip
if opts.abi_version is not None:
if not self.using_sip5():
error("The --abi-version argument can only be used with sip5.")
self.abi_version = opts.abi_version
if pkg_config.distinfo_name and opts.distinfo:
self.distinfo = True
pkg_config.apply_options(self, opts)
def using_sip5(self):
""" Return True if sip5 is being used. """
return os.path.basename(self.sip).startswith('sip5')
@staticmethod
def _find_exe(*exes):
""" Find an executable, ie. the first on the path. """
path_dirs = os.environ.get('PATH', '').split(os.pathsep)
for exe in exes:
# Strip any surrounding quotes.
if exe.startswith('"') and exe.endswith('"'):
exe = exe[1:-1]
if sys.platform == 'win32':
exe = exe + '.exe'
for d in path_dirs:
exe_path = os.path.join(d, exe)
if os.access(exe_path, os.X_OK):
return exe_path
return None
def _create_optparser(target_config, pkg_config):
""" Create the parser for the command line. target_config is the target
configuration containing default values. pkg_config is the package
configuration.
"""
pkg_name = pkg_config.descriptive_name
p = optparse.OptionParser(usage="python %prog [options]",
version=pkg_config.version)
p.add_option('--spec', dest='qmakespec', default=None, action='store',
metavar="SPEC",
help="pass -spec SPEC to qmake")
if pkg_config.distinfo_name:
p.add_option("--no-dist-info", action="store_false", default=True,
dest="distinfo",
help="do not install the dist-info directory")
if _has_stubs(pkg_config):
p.add_option('--stubsdir', dest='stubsdir', type='string',
default=None, action='callback',
callback=optparser_store_abspath, metavar="DIR",
help="the PEP 484 stubs will be installed in DIR [default: "
"with the module]")
p.add_option('--no-stubs', dest='no_stubs', default=False,
action='store_true',
help="disable the installation of the PEP 484 stubs "
"[default: enabled]")
if pkg_config.qscintilla_api_file:
p.add_option('--apidir', '-a', dest='apidir', type='string',
default=None, action='callback',
callback=optparser_store_abspath, metavar="DIR",
help="the QScintilla API file will be installed in DIR "
"[default: QT_INSTALL_DATA/qsci]")
p.add_option('--no-qsci-api', dest='no_qsci_api', default=False,
action='store_true',
help="disable the installation of the QScintilla API file "
"[default: enabled]")
if pkg_config.user_configuration_file_is_supported:
p.add_option('--configuration', dest='config_file', type='string',
default=None, action='callback',
callback=optparser_store_abspath, metavar="FILE",
help="FILE defines the target configuration")
p.add_option('--destdir', '-d', dest='destdir', type='string',
default=None, action='callback', callback=optparser_store_abspath,
metavar="DIR",
help="install %s in DIR [default: %s]" %
(pkg_name, target_config.module_dir))
if pkg_config.protected_is_public_is_supported:
p.add_option('--protected-is-public', dest='prot_is_public',
default=None, action='store_true',
help="enable building with 'protected' redefined as 'public' "
"[default: %s]" % target_config.prot_is_public)
p.add_option('--protected-not-public', dest='prot_is_public',
action='store_false',
help="disable building with 'protected' redefined as 'public'")
if target_config.pyqt_package is not None:
pyqt = target_config.pyqt_package
if pkg_config.pyqt5_is_supported and pkg_config.pyqt4_is_supported:
p.add_option('--pyqt', dest='pyqt_package', type='choice',
choices=['PyQt4', 'PyQt5'], default=pyqt,
action='store', metavar="PyQtn",
help="configure for PyQt4 or PyQt5 [default: %s]" % pyqt)
if pkg_config.user_pyqt_sip_flags_is_supported:
p.add_option('--pyqt-sip-flags', dest='pyqt_sip_flags',
default=None, action='store', metavar="FLAGS",
help="the sip flags used to build PyQt [default: query PyQt]")
p.add_option('--qmake', '-q', dest='qmake', type='string', default=None,
action='callback', callback=optparser_store_abspath_exe,
metavar="FILE",
help="the pathname of qmake is FILE [default: %s]" % (
target_config.qmake or "search PATH"))
p.add_option('--sip', dest='sip', type='string', default=None,
action='callback', callback=optparser_store_abspath_exe,
metavar="FILE",
help="the pathname of sip is FILE [default: "
"%s]" % (target_config.sip or "None"))
p.add_option('--sip-incdir', dest='sip_inc_dir', type='string',
default=None, action='callback',
callback=optparser_store_abspath_dir, metavar="DIR",
help="the directory containing the sip.h header file file is DIR "
"[default: %s]" % target_config.sip_inc_dir)
p.add_option("--abi-version", dest='abi_version', default=None,
metavar="VERSION",
help="the SIP ABI version to use (sip5 only)")
if target_config.pyqt_package is not None:
p.add_option('--pyqt-sipdir', dest='pyqt_sip_dir', type='string',
default=None, action='callback',
callback=optparser_store_abspath_dir, metavar="DIR",
help="the directory containing the PyQt .sip files is DIR "
"[default: %s]" % target_config.pyqt_sip_dir)
p.add_option('--concatenate', '-c', dest='concat', default=False,
action='store_true',
help="concatenate the C++ source files")
p.add_option('--concatenate-split', '-j', dest='split', type='int',
default=1, metavar="N",
help="split the concatenated C++ source files into N pieces "
"[default: 1]")
p.add_option('--static', '-k', dest='static', default=False,
action='store_true',
help="build a static %s" % pkg_name)
p.add_option("--sysroot", dest='sysroot', type='string', action='callback',
callback=optparser_store_abspath_dir, metavar="DIR",
help="DIR is the target system root directory")
p.add_option('--no-docstrings', dest='no_docstrings', default=False,
action='store_true',
help="disable the generation of docstrings")
p.add_option('--trace', '-r', dest='tracing', default=False,
action='store_true',
help="build %s with tracing enabled" % pkg_name)
p.add_option('--debug', '-u', default=False, action='store_true',
help="build %s with debugging symbols" % pkg_name)
p.add_option('--verbose', '-w', dest='verbose', default=False,
action='store_true',
help="enable verbose output during configuration")
pkg_config.init_optparser(p, target_config)
return p
def _has_stubs(pkg_config):
""" See if a stub file for any of the modules will be generated.
pkg_config is the package configuration.
"""
for module_config in pkg_config.modules:
if module_config.pep484_stub_file:
return True
return False
def _inform_user(target_config, pkg_config):
""" Tell the user the values that are going to be used. target_config is
the target configuration. pkg_config is the package configuration.
"""
pkg_name = pkg_config.descriptive_name
inform("Configuring %s %s..." % (pkg_name, pkg_config.version))
pkg_config.inform_user(target_config)
inform("%s will be installed in %s." %
(pkg_name, target_config.module_dir))
if target_config.debug:
inform("A debug version of %s will be built." % pkg_name)
if target_config.py_debug:
inform("A debug build of Python is being used.")
if target_config.pyqt_version_str != '':
inform("PyQt %s is being used." % target_config.pyqt_version_str)
else:
inform("%s is being used." % target_config.pyqt_package)
if target_config.qt_version_str != '':
inform("Qt %s is being used." % target_config.qt_version_str)
if target_config.sysroot != '':
inform("The system root directory is %s." % target_config.sysroot)
inform("sip %s is being used." % target_config.sip_version_str)
inform("The sip executable is %s." % target_config.sip)
if target_config.prot_is_public:
inform("%s is being built with 'protected' redefined as 'public'." %
pkg_name)
if target_config.stubs_dir != '':
inform("The PEP 484 stubs will be installed in %s." %
target_config.stubs_dir)
if pkg_config.qscintilla_api_file and target_config.api_dir != '':
inform("The QScintilla API file will be installed in %s." %
os.path.join(target_config.api_dir, 'api', 'python'))
def _generate_code(target_config, opts, pkg_config, module_config, all_installs):
""" Generate the code for the module. target_config is the target
configuration. opts are the command line options. pkg_config is the
package configuration. module_config is the module configuration.
all_installs is a list that is updated with the files installed for this
module.
"""
inform(
"Generating the C++ source for the %s module..." %
module_config.name)
# Generate the code in a module-specific sub-directory.
try:
os.mkdir(module_config.name)
except:
pass
# Build the SIP command line.
argv = [quote(target_config.sip)]
if target_config.abi_version:
argv.append('--abi-version')
argv.append(target_config.abi_version)
# Tell SIP if this is a debug build of Python (SIP v4.19.1 and later).
if target_config.sip_version >= 0x041301 and target_config.py_debug:
argv.append('-D')
# This assumes that, for multi-module packages, each modules' .sip files
# will be rooted in a common root directory. We must do this now so that
# any '-I' needed appears first.
pkg_root = os.path.dirname(os.path.abspath(__file__))
sip_file = module_config.get_sip_file(target_config)
head, tail = os.path.split(sip_file)
while head:
head, tail = os.path.split(head)
if tail != sip_file:
argv.append('-I')
argv.append(quote(os.path.join(pkg_root, tail)))
# Add the PyQt-specific flags.
if target_config.pyqt_package is not None:
# Add PyQt's .sip files to the search path.
argv.append('-I')
argv.append(quote(target_config.pyqt_sip_dir))
# Get the flags used for the main PyQt module.
argv.extend(target_config.pyqt_sip_flags.split())
# Add the backstop version.
argv.append('-B')
argv.append('Qt_6_0_0' if target_config.pyqt_package == 'PyQt5'
else 'Qt_5_0_0')
# Add the module-specific flags.
argv.extend(pkg_config.get_sip_flags(target_config))
if target_config.stubs_dir != '':
# Generate the stub file.
argv.append('-y')
argv.append(quote(module_config.pep484_stub_file + '.pyi'))
if pkg_config.qscintilla_api_file and target_config.api_dir != '':
# Generate the API file.
argv.append('-a')
argv.append(quote(module_config.name + '.api'))
if target_config.prot_is_public:
argv.append('-P');
if not opts.no_docstrings:
argv.append('-o');
if opts.concat:
argv.append('-j')
argv.append(str(opts.split))
if opts.tracing:
argv.append('-r')
argv.append('-c')
argv.append(os.path.abspath(module_config.name))
argv.append(os.path.join(pkg_root, sip_file))
check_file = os.path.join(module_config.name,
'sipAPI%s.h' % module_config.name)
_remove_file(check_file)
_run_command(' '.join(argv), opts.verbose)
if not os.access(check_file, os.F_OK):
error("Unable to create the C++ code.")
# Generate the .pro file.
_generate_pro(target_config, opts, module_config, all_installs)
def _get_qt_qmake_config(qmake_config, qt_version):
""" Return a dict of qmake configuration values for a specific Qt version.
"""
qt_qmake_config = {}
for name, value in qmake_config.items():
name_parts = name.split(':')
if len(name_parts) == 2 and name_parts[0] == qt_version:
qt_qmake_config[name_parts[1]] = value
return qt_qmake_config
def _write_qt_qmake_config(qt_qmake_config, pro):
""" Write the qmake configuration values to a .pro file. """
for name in ('QT', 'CONFIG', 'DEFINES', 'INCLUDEPATH', 'LIBS'):
value = qt_qmake_config.get(name)
if value:
pro.write(' %s += %s\n' % (name, value))
def _generate_pro(target_config, opts, module_config, all_installs):
""" Generate the .pro file for the module. target_config is the target
configuration. opts are the command line options. module_config is the
module configuration. all_installs is a list that is updated with the
files installed for this module.
"""
inform("Generating the .pro file for the %s module..." % module_config.name)
# Without the 'no_check_exist' magic the target.files must exist when qmake
# is run otherwise the install and uninstall targets are not generated.
qmake_config = module_config.get_qmake_configuration(target_config)
pro = open(os.path.join(module_config.name, module_config.name + '.pro'),
'w')
pro.write('TEMPLATE = lib\n')
qt = qmake_config.get('QT')
if qt:
pro.write('QT += %s\n' % qt)
pro.write('CONFIG += %s\n' % ('debug' if target_config.debug else 'release'))
pro.write('CONFIG += %s\n' % ('staticlib' if opts.static else 'plugin plugin_bundle'))
config = qmake_config.get('CONFIG')
if config:
pro.write('CONFIG += %s\n' % config)
# Work around QTBUG-39300.
pro.write('CONFIG -= android_install\n')
qt5_qmake_config = _get_qt_qmake_config(qmake_config, 'Qt5')
qt4_qmake_config = _get_qt_qmake_config(qmake_config, 'Qt4')
if qt5_qmake_config or qt4_qmake_config:
pro.write('''
greaterThan(QT_MAJOR_VERSION, 4) {
''')
if qt5_qmake_config:
_write_qt_qmake_config(qt5_qmake_config, pro)
if qt4_qmake_config:
pro.write('} else {\n')
_write_qt_qmake_config(qt4_qmake_config, pro)
pro.write('}\n')
mname = module_config.name
pro.write('TARGET = %s\n' % mname)
if not opts.static:
pro.write('''
win32 {
PY_MODULE = %s.pyd
PY_MODULE_SRC = $(DESTDIR_TARGET)
LIBS += -L%s
} else {
PY_MODULE = %s.so
macx {
PY_MODULE_SRC = $(TARGET).plugin/Contents/MacOS/$(TARGET)
QMAKE_LFLAGS += "-undefined dynamic_lookup"
equals(QT_MAJOR_VERSION, 5) {
equals(QT_MINOR_VERSION, 5) {
QMAKE_RPATHDIR += $$[QT_INSTALL_LIBS]
}
}
} else {
PY_MODULE_SRC = $(TARGET)
}
}
QMAKE_POST_LINK = $(COPY_FILE) $$PY_MODULE_SRC $$PY_MODULE
target.CONFIG = no_check_exist
target.files = $$PY_MODULE
''' % (mname, quote(target_config.py_pylib_dir), mname))
pro.write('''
target.path = %s
INSTALLS += target
''' % quote(target_config.module_dir))
if sys.platform == 'win32':
fs = '{}.lib' if opts.static else '{}.pyd'
else:
fs = 'lib{}.a' if opts.static else '{}.so'
all_installs.append(target_config.module_dir + '/' + fs.format(mname))
# Change to the directory containing this script (in case of out-of-source
# builds).
pkg_root = os.path.dirname(os.path.abspath(__file__))
old_cwd = os.getcwd()
os.chdir(pkg_root)
sip_installs = module_config.get_sip_installs(target_config)
os.chdir(old_cwd)
if sip_installs is not None:
path, files = sip_installs
pro.write('''
sip.path = %s
sip.files =''' % quote(path))
rel_pkg_root = os.path.relpath(pkg_root)
for fn in files:
# The filename should be relative to the current directory and use
# POSIX separators.
fn = fn.replace('/', os.sep)
fn = os.path.join(rel_pkg_root, fn)
fn = fn.replace(os.sep, '/')
fn = os.path.normpath(fn)
pro.write(' \\\n ../%s' % fn)
pro.write('''
INSTALLS += sip
''')
all_installs.append(path)
pro.write('\n')
# These optimisations could apply to other platforms.
if module_config.no_exceptions:
if target_config.py_platform.startswith('linux') or target_config.py_platform == 'darwin':
pro.write('QMAKE_CXXFLAGS += -fno-exceptions\n')
if target_config.py_platform.startswith('linux') and not opts.static:
if target_config.py_version >= 0x030000:
entry_point = 'PyInit_%s' % mname
else:
entry_point = 'init%s' % mname
exp = open(os.path.join(mname, mname + '.exp'), 'wt')
exp.write('{ global: %s; local: *; };' % entry_point)
exp.close()
pro.write('QMAKE_LFLAGS += -Wl,--version-script=%s.exp\n' % mname)
if target_config.prot_is_public:
pro.write('DEFINES += SIP_PROTECTED_IS_PUBLIC protected=public\n')
defines = qmake_config.get('DEFINES')
if defines:
pro.write('DEFINES += %s\n' % defines)
includepath = qmake_config.get('INCLUDEPATH')
if includepath:
pro.write('INCLUDEPATH += %s\n' % includepath)
# Make sure the SIP include directory is searched before the Python include
# directory if they are different.
pro.write('INCLUDEPATH += %s\n' % quote(target_config.sip_inc_dir))
if target_config.py_inc_dir != target_config.sip_inc_dir:
pro.write('INCLUDEPATH += %s\n' % quote(target_config.py_inc_dir))
libs = qmake_config.get('LIBS')
if libs:
pro.write('LIBS += %s\n' % libs)
if not opts.static:
dylib = module_config.get_mac_wrapped_library_file(target_config)
if dylib:
pro.write('''
macx {
QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\\\n\\\\t)$$quote(install_name_tool -change %s %s $$PY_MODULE)
}
''' % (os.path.basename(dylib), dylib))
pro.write('\n')
pro.write('HEADERS = sipAPI%s.h\n' % mname)
pro.write('SOURCES =')
for s in sorted(os.listdir(module_config.name)):
if s.endswith('.cpp'):
pro.write(' \\\n %s' % s)
pro.write('\n')
if target_config.qmake_variables:
pro.write('\n'.join(target_config.qmake_variables) + '\n')
pro.close()
def _run_qmake(target_config, verbose, pro_name):
""" Run qmake against a .pro file. target_config is the target
configuration. verbose is set if the output is to be displayed. pro_name
is the name of the .pro file.
"""
inform("Generating the Makefiles...")
# qmake doesn't behave consistently if it is not run from the directory
# containing the .pro file - so make sure it is.
pro_dir, pro_file = os.path.split(pro_name)
if pro_dir != '':
cwd = os.getcwd()
os.chdir(pro_dir)
else:
cwd = None
mf = 'Makefile'
_remove_file(mf)
args = [quote(target_config.qmake)]
# Make sure all Makefiles are generated now in case qmake has been
# configured with environment variables.
args.append('-recursive')
if target_config.qmake_spec != '':
args.append('-spec')
args.append(target_config.qmake_spec)
args.append(pro_file)
_run_command(' '.join(args), verbose)
if not os.access(mf, os.F_OK):
error(
"%s failed to create a Makefile from %s." %
(target_config.qmake, pro_name))
# Restore the current directory.
if cwd is not None:
os.chdir(cwd)
def _run_command(cmd, verbose):
""" Run a command and display the output if requested. cmd is the command
to run. verbose is set if the output is to be displayed.
"""
if verbose:
sys.stdout.write(cmd + "\n")
fout = _get_command_output(cmd)
# Read stdout and stderr until there is no more output.
lout = fout.readline()
while lout:
if verbose:
if sys.hexversion >= 0x03000000:
sys.stdout.write(str(lout, encoding=sys.stdout.encoding))
else:
sys.stdout.write(lout)
lout = fout.readline()
fout.close()
try:
os.wait()
except:
pass
def _get_command_output(cmd):
""" Return a pipe from which a command's output can be read. cmd is the
command.
"""
try:
import subprocess
except ImportError:
_, sout = os.popen4(cmd)
return sout
p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
return p.stdout
def _remove_file(fname):
""" Remove a file which may or may not exist. fname is the name of the
file.
"""
try:
os.remove(fname)
except OSError:
pass
def _check_sip(target_config, pkg_config, verbose):
""" Check that the version of sip is good enough. target_config is the
target configuration. pkg_config is the package configuration. verbose is
set if the output is to be displayed.
"""
if target_config.sip is None:
error(
"Make sure you have a working sip on your PATH or use the "
"--sip argument to explicitly specify a working sip.")
pipe = os.popen(' '.join([quote(target_config.sip), '-V']))
for l in pipe:
version_str = l.strip()
break
else:
error("'%s -V' did not generate any output." % target_config.sip)
pipe.close()
if '.dev' in version_str or 'snapshot' in version_str:
# We only need to distinguish between sip v4 and sip v5.
if target_config.using_sip5():
version = 0x050000
else:
version = 0x040000
else:
version = version_from_string(version_str)
if version is None:
error(
"'%s -V' generated unexpected output: '%s'." % (
target_config.sip, version_str))
min_sip_version = pkg_config.minimum_sip_version
if min_sip_version:
min_version = version_from_string(min_sip_version)
if version < min_version:
error(
"This version of %s requires sip %s or later." %
(pkg_config.descriptive_name, min_sip_version))
if version >= 0x050000:
# Install the sip.h file for the private sip module.
if target_config.sip_inc_dir is None:
target_config.sip_inc_dir = os.path.join(
os.path.abspath(os.getcwd()), 'include')
inform("Installing sip.h in %s..." % target_config.sip_inc_dir)
os.makedirs(target_config.sip_inc_dir, exist_ok=True)
argv = ['sip-module', '--sip-h']
if target_config.abi_version:
argv.append('--abi-version')
argv.append(target_config.abi_version)
argv.append('--target-dir')
argv.append(quote(target_config.sip_inc_dir)),
argv.append('PyQt5.sip')
_run_command(' '.join(argv), verbose)
if not os.access(os.path.join(target_config.sip_inc_dir, 'sip.h'), os.F_OK):
error(
"sip-module failed to install sip.h in %s." %
target_config.sip_inc_dir)
else:
if target_config.sip_inc_dir is None:
target_config.sip_inc_dir = target_config.py_venv_inc_dir
target_config.sip_version = version
target_config.sip_version_str = version_str
def _main(argv, pkg_config):
""" Create the configured package. argv is the list of command line
arguments. pkg_config is the package configuration.
"""
# Create the default target configuration.
target_config = _TargetConfiguration(pkg_config)
# Parse the command line.
p = _create_optparser(target_config, pkg_config)
opts, target_config.qmake_variables = p.parse_args()
target_config.apply_pre_options(opts)
# Query qmake for the basic configuration information.
target_config.get_qt_configuration(opts)
# Update the target configuration.
if pkg_config.user_configuration_file_is_supported:
config_file = opts.config_file
else:
config_file = None
if config_file is not None:
target_config.update_from_configuration_file(config_file)
else:
target_config.apply_sysroot()
target_config.apply_post_options(opts, pkg_config)
if target_config.pyqt_package is not None:
if target_config.pyqt_sip_flags is None:
target_config.introspect_pyqt(pkg_config)
# Check SIP is new enough.
_check_sip(target_config, pkg_config, opts.verbose)
# Perform any package specific checks now that all other information has
# been captured.
pkg_config.check_package(target_config)
# Tell the user what's been found.
_inform_user(target_config, pkg_config)
# Allow for module specific hacks.
pkg_config.pre_code_generation(target_config)
# Generate the code.
all_installs = []
for module_config in pkg_config.modules:
_generate_code(target_config, opts, pkg_config, module_config,
all_installs)
# Concatenate any .api files.
if pkg_config.qscintilla_api_file and target_config.api_dir != '':
inform("Generating the QScintilla API file...")
f = open(pkg_config.qscintilla_api_file + '.api', 'w')
for module_config in pkg_config.modules:
api = open(module_config.name + '.api')
for l in api:
if target_config.pyqt_package is not None:
l = target_config.pyqt_package + '.' + l
f.write(l)
api.close()
os.remove(module_config.name + '.api')
f.close()
# Generate the top-level .pro file.
inform("Generating the top-level .pro file...")
pro_name = pkg_config.descriptive_name + '.pro'
pro = open(pro_name, 'w')
pro.write('''TEMPLATE = subdirs
CONFIG += ordered nostrip
SUBDIRS = %s
''' % ' '.join([module.name for module in pkg_config.modules]))
if target_config.stubs_dir != '':
stubs = [module.pep484_stub_file + '.pyi' for module in pkg_config.modules if module.pep484_stub_file]
if stubs:
pro.write('''
pep484_stubs.path = %s
pep484_stubs.files = %s
INSTALLS += pep484_stubs
''' % (target_config.stubs_dir, ' '.join(stubs)))
all_installs.extend(
[target_config.stubs_dir + '/' + pyi for pyi in stubs])
if pkg_config.qscintilla_api_file and target_config.api_dir != '':
api_dir = target_config.api_dir + '/api/python'
api_file = pkg_config.qscintilla_api_file + '.api'
pro.write('''
api.path = %s
api.files = %s
INSTALLS += api
''' % (api_dir, api_file))
all_installs.append(api_dir + '/' + api_file)
if target_config.distinfo:
# Allow for out-of-tree builds.
distinfo_dir = os.path.join(target_config.py_module_dir,
pkg_config.distinfo_name + '-' + pkg_config.version + '.dist-info')
mk_distinfo = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'mk_distinfo.py')
run_mk_distinfo = '%s %s \\"$(INSTALL_ROOT)\\" %s installed.txt' % (
sys.executable, mk_distinfo, distinfo_dir)
pro.write('''
distinfo.extra = %s
distinfo.path = %s
INSTALLS += distinfo
''' % (run_mk_distinfo, target_config.module_dir))
# Create the file containing the names of all installed files.
installed = open('installed.txt', 'w')
for install in all_installs:
installed.write(install + '\n')
installed.close()
pro.close()
# Generate the Makefile.
_run_qmake(target_config, opts.verbose, pro_name)
###############################################################################
# The script starts here.
###############################################################################
if __name__ == '__main__':
# Assume the product is a package containing multiple modules. If it isn't
# then create a dummy package containing the single module.
try:
pkg_config_type = PackageConfiguration
except NameError:
pkg_config_type = type('PackageConfiguration', (object, ), {})
if hasattr(pkg_config_type, 'modules'):
# Provide some default values.
pkg_config_type.distinfo_name = getattr(pkg_config_type,
'distinfo_name', '')
else:
mod_config_type = ModuleConfiguration
# Extract the package-specific attributes and methods.
pkg_config_type.descriptive_name = mod_config_type.descriptive_name
pkg_config_type.distinfo_name = getattr(mod_config_type,
'distinfo_name', '')
pkg_config_type.legacy_configuration_script = mod_config_type.legacy_configuration_script
pkg_config_type.minimum_sip_version = mod_config_type.minimum_sip_version
pkg_config_type.protected_is_public_is_supported = mod_config_type.protected_is_public_is_supported
pkg_config_type.pyqt4_is_supported = mod_config_type.pyqt4_is_supported
pkg_config_type.pyqt5_is_supported = mod_config_type.pyqt5_is_supported
pkg_config_type.pyqt5_is_default = mod_config_type.pyqt5_is_default
pkg_config_type.qscintilla_api_file = mod_config_type.qscintilla_api_file
pkg_config_type.support_email_address = mod_config_type.support_email_address
pkg_config_type.user_configuration_file_is_supported = mod_config_type.user_configuration_file_is_supported
pkg_config_type.user_pyqt_sip_flags_is_supported = mod_config_type.user_pyqt_sip_flags_is_supported
pkg_config_type.version = mod_config_type.version
pkg_config_type.init_target_configuration = staticmethod(
mod_config_type.init_target_configuration)
pkg_config_type.init_optparser = staticmethod(
mod_config_type.init_optparser)
pkg_config_type.apply_options = staticmethod(
mod_config_type.apply_options)
pkg_config_type.inform_user = staticmethod(
mod_config_type.inform_user)
pkg_config_type.pre_code_generation = staticmethod(
mod_config_type.pre_code_generation)
pkg_config_type.get_sip_flags = staticmethod(
mod_config_type.get_sip_flags)
# Note the name change.
pkg_config_type.check_package = staticmethod(
mod_config_type.check_module)
pkg_config_type.modules = [mod_config_type()]
pkg_config = pkg_config_type()
try:
_main(sys.argv, pkg_config)
except SystemExit:
raise
except:
if pkg_config.support_email_address:
sys.stderr.write(
"""An internal error occured. Please report all the output from the program,
including the following traceback, to %s.
""" % pkg_config.support_email_address)
raise
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.343859
PyQtWebEngine-5.14.0/LICENSE 0000644 0000765 0000024 00000104513 00000000000 015353 0 ustar 00phil staff 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.343259
PyQtWebEngine-5.14.0/ChangeLog 0000644 0000765 0000024 00000012203 00000000000 016112 0 ustar 00phil staff 0000000 0000000 2019-12-18 Phil Thompson
* NEWS:
Released as v5.14.0.
[f00d480d4a0f] [5.14.0]
* pyproject.toml:
Fixed requires-dist for commercial wheels.
[23c5bb98a8dd]
2019-12-16 Phil Thompson
* NEWS:
Updated the NEWS file.
[b3130010a22c]
2019-12-14 Phil Thompson
* PyQtWebEngine.msp:
Updated for Qt v5.14.0.
[08b5399115c5]
2019-12-12 Phil Thompson
* Merged the 5.13-maint branch.
[3be79b99e71c]
2019-11-02 Phil Thompson
* .hgtags:
Added tag 5.13.2 for changeset 5627b4a59e44
[e8c569058a97] <5.13-maint>
* NEWS:
Released as v5.13.2.
[5627b4a59e44] [5.13.2] <5.13-maint>
* NEWS:
Updated the NEWS file.
[b2d827860c80] <5.13-maint>
2019-10-03 Phil Thompson
* pyproject.toml:
Fixed the name of PEP 566.
[5a397978105b] <5.13-maint>
* pyproject.toml:
Requires PyQt-builder v1.
[31bb17aa756b] <5.13-maint>
2019-10-01 Phil Thompson
* pyproject.toml:
Fixed the name of the PyQt-builder project.
[a5e7ae0b670c] <5.13-maint>
2019-09-18 Phil Thompson
* configure.py:
Fixed building against Qt v5.12.5 and later.
[c2040bb2bee2] <5.13-maint>
* PyQtWebEngine.msp:
Added PYQT_WEBENGINE_VERSION and PYQT_WEBENGINE_VERSION_STR ot
QtWebEngine.
[0a4790429fad] <5.13-maint>
2019-09-14 Phil Thompson
* pyproject.toml:
Added the requires-dist meta-data.
[77195f172cbd] <5.13-maint>
2019-09-07 Phil Thompson
* .hgtags:
Added tag 5.13.1 for changeset e7b3704583be
[6d1079a1d9d7] <5.13-maint>
* NEWS:
Released as v5.13.1.
[e7b3704583be] [5.13.1] <5.13-maint>
* NEWS:
Updated the NEWS file.
[ac313a7714c3] <5.13-maint>
* pyproject.toml:
Temporarily specify PyQt-build v0.1 as the build system.
[4a7ce6f828af] <5.13-maint>
2019-08-30 Phil Thompson
* METADATA.in, README, pyproject.toml:
Added support for sip v5.
[3ec37bd4ae78] <5.13-maint>
2019-07-20 Phil Thompson
* PyQtWebEngine.msp:
Fixed building when Qt doesn't support QtWebChannel.
[091f34543aea] <5.13-maint>
2019-07-13 Phil Thompson
* PyQtWebEngine.msp:
Fix building against Qt v5.12 and earlier.
[8cb9a50c17c2] <5.13-maint>
2019-07-05 Phil Thompson
* PyQtWebEngine.msp:
Added the missing QWebEnginePage.Feature.Notifications enum member.
[54f5dff7983d] <5.13-maint>
2019-07-03 Phil Thompson
* .hgtags:
Added tag 5.13.0 for changeset fe9bb03004fd
[09c8c2e672ce]
* NEWS:
Released as v5.13.0.
[fe9bb03004fd] [5.13.0]
2019-07-02 Phil Thompson
* NEWS:
Updated the NEWS file.
[1c0db7013251]
2019-06-30 Phil Thompson
* PyQtWebEngine.msp, QtWebEngineCore.versions:
Updated for Qt v5.13.0.
[4e2c0056d0f9]
2019-06-20 Phil Thompson
* rb-product:
Updated the minimum PyQt5 wheel.
[6eb69c15f896]
* Merged the 5.12-maint branch.
[baeb73a545a6]
* PyQtWebEngine.msp:
Updated for Qt v5.12.4.
[9e68d6e3e8d9] <5.12-maint>
2019-04-19 Phil Thompson
* PyQtWebEngine.msp:
Updated for Qt v5.12.3.
[2905d2eac4b4] <5.12-maint>
2019-03-19 Phil Thompson
* .hgtags:
Added tag 5.12.1 for changeset f0583eb7da8a
[03e09b7b4953] <5.12-maint>
* NEWS:
Released as v5.12.1.
[f0583eb7da8a] [5.12.1] <5.12-maint>
2019-03-18 Phil Thompson
* NEWS:
Updated the NEWS file.
[598cae9d0f9f] <5.12-maint>
2019-03-17 Phil Thompson
* PyQtWebEngine.msp:
Updated for Qt v5.12.2.
[525c367f8949] <5.12-maint>
2019-03-08 Phil Thompson
* PyQtWebEngine.msp:
Fixed building without SSL support.
[a0b9d2b41efc] <5.12-maint>
* configure.py:
Fixed the configure.py options that relate to stub files.
[f089ac081a92] <5.12-maint>
2019-02-10 Phil Thompson
* METADATA.in:
Fixes for the PyPI project description.
[537ba6f4f470] <5.12-maint>
2019-02-04 Phil Thompson
* .hgtags:
Added tag 5.12 for changeset c4c19b66da43
[38d16c6e0c93]
* NEWS:
Released as v5.12.
[c4c19b66da43] [5.12]
2019-02-02 Phil Thompson
* NEWS, PyQtWebEngine.msp:
Updated for Qt v5.12.1.
[5c423a35c4e8]
2018-12-21 Phil Thompson
* METADATA.in:
Corrected the wheel meta-data version.
[b8125a567523]
2018-12-15 Phil Thompson
* NEWS:
Updated the NEWS file.
[88b124dd7c9a]
2018-12-13 Phil Thompson
* PyQtWebEngine.msp:
Updated for Qt v5.12.0.
[2c85932592b2]
2018-10-03 Phil Thompson
* .hgignore, METADATA.in, NEWS, PyQtWebEngine.msp,
QtWebEngine.versions, QtWebEngineWidgets.versions, README,
configure.py, rb-product:
Initial commit of repository.
[3fe9991351ad]
././@PaxHeader 0000000 0000000 0000000 00000000032 00000000000 011450 x ustar 00 0000000 0000000 26 mtime=1576763382.34899
PyQtWebEngine-5.14.0/pyproject.toml 0000644 0000765 0000024 00000001561 00000000000 017261 0 ustar 00phil staff 0000000 0000000 # Specify PyQt-builder v1.0 as the build system for the package.
[build-system]
requires = ["PyQt-builder >=1, <2"]
build-backend = "sipbuild.api"
# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
name = "PyQtWebEngine"
version = "5.14.0"
summary = "Python bindings for the Qt WebEngine framework"
home-page = "https://www.riverbankcomputing.com/software/pyqtwebengine/"
author = "Riverbank Computing Limited"
author-email = "info@riverbankcomputing.com"
license = "GPL v3"
requires-dist = "PyQt5 (>=5.14)"
description-file = "README"
# Specify a PyQt-based project.
[tool.sip]
project-factory = "pyqtbuild:PyQtProject"
# Define and configure each set of bindings.
[tool.sip.bindings.QtWebEngineCore]
qmake-QT = ["webenginecore"]
[tool.sip.bindings.QtWebEngine]
qmake-QT = ["webengine"]
[tool.sip.bindings.QtWebEngineWidgets]
qmake-QT = ["webenginewidgets"]
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576718477.645678
PyQtWebEngine-5.14.0/mk_distinfo.py 0000644 0000765 0000024 00000006716 00000000000 017234 0 ustar 00phil staff 0000000 0000000 # This script handles the creation of the PEP 376 .dist-info directory for a
# package.
#
# Copyright (c) 2018 Riverbank Computing Limited
#
# This script is distributed under the terms of the GNU General Public License
# v3 as published by the Free Software Foundation.
#
# This script is supplied WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
import base64
import hashlib
import os
import shutil
import sys
def error(message):
""" Display an error message and terminate. """
sys.stderr.write(message + '\n')
sys.exit(1)
# Parse the command line.
if len(sys.argv) != 4:
error("usage: {0} prefix dist-info installed".format(sys.argv[0]))
prefix_dir = sys.argv[1]
distinfo_dir = sys.argv[2]
installed_fn = sys.argv[3]
# Read the list of installed files.
installed_f = open(installed_fn)
installed = installed_f.read().strip().split('\n')
installed_f.close()
# The prefix directory corresponds to DESTDIR or INSTALL_ROOT.
real_distinfo_dir = prefix_dir + distinfo_dir
# Remove any existing dist-info directory and create an empty one.
if os.path.exists(real_distinfo_dir):
try:
shutil.rmtree(real_distinfo_dir)
except:
error("unable to delete existing {0}".format(real_distinfo_dir))
try:
os.mkdir(real_distinfo_dir)
except:
error("unable to create {0}".format(real_distinfo_dir))
# Create the INSTALLER file. We pretend that pip was the installer.
installer_fn = os.path.join(distinfo_dir, 'INSTALLER')
installer_f = open(prefix_dir + installer_fn, 'w')
installer_f.write('pip\n')
installer_f.close()
installed.append(installer_fn)
# Create the METADATA file.
METADATA = '''Metadata-Version: 1.1
Name: {0}
Version: {1}
'''
distinfo_path, distinfo_base = os.path.split(distinfo_dir)
pkg_name, version = os.path.splitext(distinfo_base)[0].split('-')
metadata_fn = os.path.join(distinfo_dir, 'METADATA')
metadata_f = open(prefix_dir + metadata_fn, 'w')
metadata_f.write(METADATA.format(pkg_name, version))
metadata_f.close()
installed.append(metadata_fn)
# Create the RECORD file.
record_fn = os.path.join(distinfo_dir, 'RECORD')
record_f = open(prefix_dir + record_fn, 'w')
for name in installed:
native_name = prefix_dir + name.replace('/', os.sep)
if os.path.isdir(native_name):
all_fns = []
for root, dirs, files in os.walk(native_name):
# Reproducable builds.
dirs.sort()
files.sort()
for f in files:
all_fns.append(os.path.join(root, f).replace(os.sep, '/'))
if '__pycache__' in dirs:
dirs.remove('__pycache__')
else:
all_fns = [prefix_dir + name]
for fn in all_fns:
real_distinfo_path = prefix_dir + distinfo_path
if fn.startswith(real_distinfo_path):
fn_name = fn[len(real_distinfo_path) + 1:].replace('\\', '/')
elif fn.startswith(prefix_dir + sys.prefix):
fn_name = os.path.relpath(
fn, real_distinfo_path).replace('\\', '/')
else:
fn_name = fn[len(prefix_dir):]
fn_f = open(fn, 'rb')
data = fn_f.read()
fn_f.close()
digest = base64.urlsafe_b64encode(
hashlib.sha256(data).digest()).rstrip(b'=').decode('ascii')
record_f.write(
'{0},sha256={1},{2}\n'.format(fn_name, digest, len(data)))
record_f.write('{0}/RECORD,,\n'.format(distinfo_base))
record_f.close()
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763330.852844
PyQtWebEngine-5.14.0/README 0000644 0000765 0000024 00000002752 00000000000 015230 0 ustar 00phil staff 0000000 0000000 PyQtWebEngine - Python Bindings for the Qt WebEngine Framework
==============================================================
PyQtWebEngine is a set of Python bindings for The Qt Company's Qt WebEngine
framework. The framework provides the ability to embed web content in
applications and is based on the Chrome browser. The bindings sit on top of
PyQt5 and are implemented as three separate modules corresponding to the
different libraries that make up the framework.
Author
------
PyQtWebEngine is copyright (c) Riverbank Computing Limited. Its homepage is
https://www.riverbankcomputing.com/software/pyqtwebengine/.
Support may be obtained from the PyQt mailing list at
https://www.riverbankcomputing.com/mailman/listinfo/pyqt/.
License
-------
PyQtWebEngine is released under the GPL v3 license and under a commercial
license that allows for the development of proprietary applications.
Documentation
-------------
The documentation for the latest release can be found
`here `__.
Installation
------------
The GPL version of PyQtWebEngine can be installed from PyPI::
pip install PyQtWebEngine
The wheels include a copy of the required parts of the LGPL version of Qt.
``pip`` will also build and install the bindings from the sdist package but
Qt's ``qmake`` tool must be on ``PATH``.
The ``sip-install`` tool will also install the bindings from the sdist package
but will allow you to configure many aspects of the installation.
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763330.848138
PyQtWebEngine-5.14.0/NEWS 0000644 0000765 0000024 00000001003 00000000000 015033 0 ustar 00phil staff 0000000 0000000 v5.14.0 19th December 2019
- Added support for Qt v5.14.0.
v5.13.2 3rd November 2019
- Added PYQT_WEBENGINE_VERSION and PYQT_WEBENGINE_VERSION_STR.
- Added support for SIP v5.
v5.13.1 14th September 2019
- Added the missing QWebEnginePage.Feature.Notifications enum member.
v5.13.0 5th July 2019
- Added support for Qt v5.13.0.
v5.12.1 19th March 2019
- Added support for Qt v5.12.2.
v5.12 10th February 2019
- The first release based on Qt v5.12. Previously the modules were part of
PyQt5.
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1576763383.0652337
PyQtWebEngine-5.14.0/sip/ 0000755 0000765 0000024 00000000000 00000000000 015135 5 ustar 00phil staff 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1576763383.0630536
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/ 0000755 0000765 0000024 00000000000 00000000000 020634 5 ustar 00phil staff 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.875332
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebengineprofile.sip 0000644 0000765 0000024 00000013773 00000000000 025071 0 ustar 00phil staff 0000000 0000000 // qwebengineprofile.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_5_0 -)
class QWebEngineProfile : QObject
{
%TypeHeaderCode
#include
%End
%TypeCode
#if QT_VERSION >= 0x050d00
// For QWebEngineProfile.setNotificationPresenter().
#include
#endif
%End
public:
explicit QWebEngineProfile(QObject *parent /TransferThis/ = 0);
QWebEngineProfile(const QString &name, QObject *parent /TransferThis/ = 0);
virtual ~QWebEngineProfile();
enum HttpCacheType
{
MemoryHttpCache,
DiskHttpCache,
%If (QtWebEngine_5_7_0 -)
NoCache,
%End
};
enum PersistentCookiesPolicy
{
NoPersistentCookies,
AllowPersistentCookies,
ForcePersistentCookies,
};
QString storageName() const;
bool isOffTheRecord() const;
QString persistentStoragePath() const;
void setPersistentStoragePath(const QString &path);
QString cachePath() const;
void setCachePath(const QString &path);
QString httpUserAgent() const;
void setHttpUserAgent(const QString &userAgent);
QWebEngineProfile::HttpCacheType httpCacheType() const;
void setHttpCacheType(QWebEngineProfile::HttpCacheType);
QWebEngineProfile::PersistentCookiesPolicy persistentCookiesPolicy() const;
void setPersistentCookiesPolicy(QWebEngineProfile::PersistentCookiesPolicy);
int httpCacheMaximumSize() const;
void setHttpCacheMaximumSize(int maxSize);
void clearAllVisitedLinks();
void clearVisitedLinks(const QList &urls);
bool visitedLinksContainsUrl(const QUrl &url) const;
QWebEngineSettings *settings() const;
QWebEngineScriptCollection *scripts() const;
static QWebEngineProfile *defaultProfile() /Transfer/;
signals:
void downloadRequested(QWebEngineDownloadItem *download);
public:
%If (QtWebEngine_5_6_0 -)
void setHttpAcceptLanguage(const QString &httpAcceptLanguage);
%End
%If (QtWebEngine_5_6_0 -)
QString httpAcceptLanguage() const;
%End
%If (QtWebEngine_5_6_0 -)
QWebEngineCookieStore *cookieStore() /Transfer/;
%End
%If (QtWebEngine_5_13_0 -)
void setUrlRequestInterceptor(QWebEngineUrlRequestInterceptor *interceptor);
%End
%If (QtWebEngine_5_6_0 -)
void setRequestInterceptor(QWebEngineUrlRequestInterceptor *interceptor);
%End
%If (QtWebEngine_5_6_0 -)
const QWebEngineUrlSchemeHandler *urlSchemeHandler(const QByteArray &) const;
%End
%If (QtWebEngine_5_6_0 -)
void installUrlSchemeHandler(const QByteArray &scheme, QWebEngineUrlSchemeHandler *);
%End
%If (QtWebEngine_5_6_0 -)
void removeUrlScheme(const QByteArray &scheme);
%End
%If (QtWebEngine_5_6_0 -)
void removeUrlSchemeHandler(QWebEngineUrlSchemeHandler *);
%End
%If (QtWebEngine_5_6_0 -)
void removeAllUrlSchemeHandlers();
%End
%If (QtWebEngine_5_7_0 -)
void clearHttpCache();
%End
%If (QtWebEngine_5_8_0 -)
void setSpellCheckLanguages(const QStringList &languages);
%End
%If (QtWebEngine_5_8_0 -)
QStringList spellCheckLanguages() const;
%End
%If (QtWebEngine_5_8_0 -)
void setSpellCheckEnabled(bool enabled);
%End
%If (QtWebEngine_5_8_0 -)
bool isSpellCheckEnabled() const;
%End
private:
%If (QtWebEngine_5_6_0 -)
QWebEngineProfile(const QWebEngineProfile &);
%End
public:
%If (QtWebEngine_5_13_0 -)
void setUseForGlobalCertificateVerification(bool enabled = true);
%End
%If (QtWebEngine_5_13_0 -)
bool isUsedForGlobalCertificateVerification() const;
%End
%If (QtWebEngine_5_13_0 -)
QString downloadPath() const;
%End
%If (QtWebEngine_5_13_0 -)
void setDownloadPath(const QString &path);
%End
%If (QtWebEngine_5_13_0 -)
void setNotificationPresenter(SIP_PYCALLABLE /AllowNone, TypeHint="Callable[[QWebEngineNotification], None]"/);
%MethodCode
// Make sure any callable doesn't get garbage collected.
Py_XINCREF(a0);
Py_BEGIN_ALLOW_THREADS
sipCpp->setNotificationPresenter([a0](std::unique_ptr arg) {
if (a0)
{
SIP_BLOCK_THREADS
// We have to find the generated type structure because a name isn't
// automatically generated as it isn't used anywhere else in the
// module.
PyObject *arg_obj = sipConvertFromType(arg.get(),
sipFindType("QWebEngineNotification"), NULL);
if (arg_obj)
{
PyObject *res = PyObject_CallFunctionObjArgs(a0, arg_obj, NULL);
Py_DECREF(arg_obj);
Py_DECREF(a0);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
}
else
{
Py_DECREF(a0);
pyqt5_qtwebenginewidgets_err_print();
}
SIP_UNBLOCK_THREADS
}
});
Py_END_ALLOW_THREADS
%End
%End
%If (QtWebEngine_5_13_0 -)
%If (PyQt_SSL)
QWebEngineClientCertificateStore *clientCertificateStore();
%End
%End
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.876123
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginehistory.sip 0000644 0000765 0000024 00000004731 00000000000 025124 0 ustar 00phil staff 0000000 0000000 // qwebenginehistory.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_4_0 -)
class QWebEngineHistoryItem
{
%TypeHeaderCode
#include
%End
public:
QWebEngineHistoryItem(const QWebEngineHistoryItem &other);
~QWebEngineHistoryItem();
QUrl originalUrl() const;
QUrl url() const;
QString title() const;
QDateTime lastVisited() const;
QUrl iconUrl() const;
bool isValid() const;
%If (QtWebEngine_5_6_0 -)
void swap(QWebEngineHistoryItem &other /Constrained/);
%End
};
%End
%If (QtWebEngine_5_4_0 -)
class QWebEngineHistory /NoDefaultCtors/
{
%TypeHeaderCode
#include
%End
public:
void clear();
QList items() const;
QList backItems(int maxItems) const;
QList forwardItems(int maxItems) const;
bool canGoBack() const;
bool canGoForward() const;
void back();
void forward();
void goToItem(const QWebEngineHistoryItem &item);
QWebEngineHistoryItem backItem() const;
QWebEngineHistoryItem currentItem() const;
QWebEngineHistoryItem forwardItem() const;
QWebEngineHistoryItem itemAt(int i) const;
int currentItemIndex() const;
int count() const /__len__/;
private:
~QWebEngineHistory();
QWebEngineHistory(const QWebEngineHistory &);
};
%End
%If (QtWebEngine_5_4_0 -)
QDataStream &operator<<(QDataStream &, const QWebEngineHistory & /Constrained/) /ReleaseGIL/;
%End
%If (QtWebEngine_5_4_0 -)
QDataStream &operator>>(QDataStream &, QWebEngineHistory & /Constrained/) /ReleaseGIL/;
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.876761
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginescript.sip 0000644 0000765 0000024 00000003703 00000000000 024725 0 ustar 00phil staff 0000000 0000000 // qwebenginescript.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_5_0 -)
class QWebEngineScript
{
%TypeHeaderCode
#include
%End
public:
enum InjectionPoint
{
Deferred,
DocumentReady,
DocumentCreation,
};
enum ScriptWorldId
{
MainWorld,
ApplicationWorld,
UserWorld,
};
QWebEngineScript();
QWebEngineScript(const QWebEngineScript &other);
~QWebEngineScript();
bool isNull() const;
QString name() const;
void setName(const QString &);
QString sourceCode() const;
void setSourceCode(const QString &);
QWebEngineScript::InjectionPoint injectionPoint() const;
void setInjectionPoint(QWebEngineScript::InjectionPoint);
quint32 worldId() const;
void setWorldId(quint32);
bool runsOnSubFrames() const;
void setRunsOnSubFrames(bool on);
bool operator==(const QWebEngineScript &other) const;
bool operator!=(const QWebEngineScript &other) const;
void swap(QWebEngineScript &other /Constrained/);
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.877269
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebengineclientcertificateselection.sip 0000644 0000765 0000024 00000002664 00000000000 031015 0 ustar 00phil staff 0000000 0000000 // qwebengineclientcertificateselection.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_12_0 -)
%If (PyQt_SSL)
class QWebEngineClientCertificateSelection
{
%TypeHeaderCode
#include
%End
public:
QWebEngineClientCertificateSelection(const QWebEngineClientCertificateSelection &);
~QWebEngineClientCertificateSelection();
QUrl host() const;
void select(const QSslCertificate &certificate);
void selectNone();
QVector certificates() const;
};
%End
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.878494
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginedownloaditem.sip 0000644 0000765 0000024 00000010131 00000000000 026100 0 ustar 00phil staff 0000000 0000000 // qwebenginedownloaditem.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_5_0 -)
class QWebEngineDownloadItem : QObject /NoDefaultCtors/
{
%TypeHeaderCode
#include
%End
public:
virtual ~QWebEngineDownloadItem();
enum DownloadState
{
DownloadRequested,
DownloadInProgress,
DownloadCompleted,
DownloadCancelled,
DownloadInterrupted,
};
quint32 id() const;
QWebEngineDownloadItem::DownloadState state() const;
qint64 totalBytes() const;
qint64 receivedBytes() const;
QUrl url() const;
QString path() const;
void setPath(QString path);
bool isFinished() const;
public slots:
void accept();
void cancel();
signals:
void finished();
void stateChanged(QWebEngineDownloadItem::DownloadState state);
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
public:
%If (QtWebEngine_5_6_0 -)
QString mimeType() const;
%End
%If (QtWebEngine_5_7_0 -)
enum SavePageFormat
{
UnknownSaveFormat,
SingleHtmlSaveFormat,
CompleteHtmlSaveFormat,
MimeHtmlSaveFormat,
};
%End
%If (QtWebEngine_5_7_0 -)
QWebEngineDownloadItem::SavePageFormat savePageFormat() const;
%End
%If (QtWebEngine_5_7_0 -)
void setSavePageFormat(QWebEngineDownloadItem::SavePageFormat format);
%End
%If (QtWebEngine_5_8_0 -)
enum DownloadType
{
Attachment,
DownloadAttribute,
UserRequested,
SavePage,
};
%End
%If (QtWebEngine_5_8_0 -)
QWebEngineDownloadItem::DownloadType type() const;
%End
%If (QtWebEngine_5_9_0 -)
enum DownloadInterruptReason
{
NoReason,
FileFailed,
FileAccessDenied,
FileNoSpace,
FileNameTooLong,
FileTooLarge,
FileVirusInfected,
FileTransientError,
FileBlocked,
FileSecurityCheckFailed,
FileTooShort,
FileHashMismatch,
NetworkFailed,
NetworkTimeout,
NetworkDisconnected,
NetworkServerDown,
NetworkInvalidRequest,
ServerFailed,
ServerBadContent,
ServerUnauthorized,
ServerCertProblem,
ServerForbidden,
ServerUnreachable,
UserCanceled,
};
%End
%If (QtWebEngine_5_9_0 -)
QWebEngineDownloadItem::DownloadInterruptReason interruptReason() const;
%End
%If (QtWebEngine_5_9_0 -)
QString interruptReasonString() const;
%End
%If (QtWebEngine_5_10_0 -)
bool isPaused() const;
%End
public slots:
%If (QtWebEngine_5_10_0 -)
void pause();
%End
%If (QtWebEngine_5_10_0 -)
void resume();
%End
signals:
%If (QtWebEngine_5_10_0 -)
void isPausedChanged(bool isPaused);
%End
public:
%If (QtWebEngine_5_11_0 -)
bool isSavePageDownload() const;
%End
%If (QtWebEngine_5_12_0 -)
QWebEnginePage *page() const;
%End
%If (QtWebEngine_5_14_0 -)
QString suggestedFileName() const;
%End
%If (QtWebEngine_5_14_0 -)
QString downloadDirectory() const;
%End
%If (QtWebEngine_5_14_0 -)
void setDownloadDirectory(const QString &directory);
%End
%If (QtWebEngine_5_14_0 -)
QString downloadFileName() const;
%End
%If (QtWebEngine_5_14_0 -)
void setDownloadFileName(const QString &fileName);
%End
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.879217
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginecertificateerror.sip 0000644 0000765 0000024 00000004711 00000000000 026755 0 ustar 00phil staff 0000000 0000000 // qwebenginecertificateerror.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QWebEngineCertificateError /NoDefaultCtors/
{
%TypeHeaderCode
#include
%End
public:
enum Error
{
SslPinnedKeyNotInCertificateChain,
CertificateCommonNameInvalid,
CertificateDateInvalid,
CertificateAuthorityInvalid,
CertificateContainsErrors,
CertificateNoRevocationMechanism,
CertificateUnableToCheckRevocation,
CertificateRevoked,
CertificateInvalid,
CertificateWeakSignatureAlgorithm,
CertificateNonUniqueName,
CertificateWeakKey,
CertificateNameConstraintViolation,
%If (QtWebEngine_5_7_1 -)
CertificateValidityTooLong,
%End
%If (QtWebEngine_5_8_0 -)
CertificateTransparencyRequired,
%End
};
QWebEngineCertificateError::Error error() const;
QUrl url() const;
bool isOverridable() const;
QString errorDescription() const;
%If (QtWebEngine_5_14_0 -)
QWebEngineCertificateError(const QWebEngineCertificateError &other);
%End
private:
%If (- QtWebEngine_5_14_0)
QWebEngineCertificateError(const QWebEngineCertificateError &);
%End
public:
%If (QtWebEngine_5_14_0 -)
void defer();
%End
%If (QtWebEngine_5_14_0 -)
bool deferred() const;
%End
%If (QtWebEngine_5_14_0 -)
void rejectCertificate();
%End
%If (QtWebEngine_5_14_0 -)
void ignoreCertificateError();
%End
%If (QtWebEngine_5_14_0 -)
bool answered() const;
%End
%If (QtWebEngine_5_14_0 -)
QList certificateChain() const;
%End
};
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.879737
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginescriptcollection.sip 0000644 0000765 0000024 00000003224 00000000000 026777 0 ustar 00phil staff 0000000 0000000 // qwebenginescriptcollection.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_5_0 -)
class QWebEngineScriptCollection
{
%TypeHeaderCode
#include
%End
public:
~QWebEngineScriptCollection();
bool isEmpty() const;
int count() const /__len__/;
bool contains(const QWebEngineScript &value) const;
QWebEngineScript findScript(const QString &name) const;
QList findScripts(const QString &name) const;
void insert(const QWebEngineScript &);
void insert(const QList &list);
bool remove(const QWebEngineScript &);
void clear();
QList toList() const;
private:
QWebEngineScriptCollection(const QWebEngineScriptCollection &);
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.881126
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebengineview.sip 0000644 0000765 0000024 00000014163 00000000000 024375 0 ustar 00phil staff 0000000 0000000 // qwebengineview.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QWebEngineView : QWidget
{
%TypeHeaderCode
#include
%End
%ConvertToSubClassCode
static struct class_graph {
const char *name;
sipTypeDef **type;
int yes, no;
} graph[] = {
#if QT_VERSION >= 0x050500
{sipName_QWebEngineProfile, &sipType_QWebEngineProfile, -1, 1},
#else
{0, 0, -1, 1},
#endif
{sipName_QWebEnginePage, &sipType_QWebEnginePage, -1, 2},
{sipName_QWebEngineView, &sipType_QWebEngineView, -1, 3},
#if QT_VERSION >= 0x050500
{sipName_QWebEngineDownloadItem, &sipType_QWebEngineDownloadItem, -1, -1},
#else
{0, 0, -1, -1},
#endif
};
int i = 0;
sipType = NULL;
do
{
struct class_graph *cg = &graph[i];
if (cg->name != NULL && sipCpp->inherits(cg->name))
{
sipType = *cg->type;
i = cg->yes;
}
else
i = cg->no;
}
while (i >= 0);
%End
public:
explicit QWebEngineView(QWidget *parent /TransferThis/ = 0);
virtual ~QWebEngineView();
QWebEnginePage *page() const;
void setPage(QWebEnginePage *page);
void load(const QUrl &url);
%If (QtWebEngine_5_9_0 -)
void load(const QWebEngineHttpRequest &request);
%End
void setHtml(const QString &html, const QUrl &baseUrl = QUrl());
void setContent(const QByteArray &data, const QString &mimeType = QString(), const QUrl &baseUrl = QUrl());
QWebEngineHistory *history() const;
QString title() const;
void setUrl(const QUrl &url);
QUrl url() const;
QUrl iconUrl() const;
bool hasSelection() const;
QString selectedText() const;
QAction *pageAction(QWebEnginePage::WebAction action) const;
void triggerPageAction(QWebEnginePage::WebAction action, bool checked = false);
qreal zoomFactor() const;
void setZoomFactor(qreal factor);
void findText(const QString &subString, QWebEnginePage::FindFlags options = QWebEnginePage::FindFlags(), SIP_PYCALLABLE resultCallback /AllowNone,TypeHint="Callable[[bool], None]"/ = 0);
%MethodCode
// Make sure any callable doesn't get garbage collected.
Py_XINCREF(a2);
Py_BEGIN_ALLOW_THREADS
sipCpp->findText(*a0, *a1, [a2](bool arg) {
if (a2)
{
SIP_BLOCK_THREADS
PyObject *res;
res = PyObject_CallFunctionObjArgs(a2, (arg ? Py_True : Py_False), NULL);
Py_DECREF(a2);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
SIP_UNBLOCK_THREADS
}
});
Py_END_ALLOW_THREADS
%End
virtual QSize sizeHint() const;
QWebEngineSettings *settings() const;
public slots:
void stop();
void back();
void forward();
void reload();
signals:
void loadStarted();
void loadProgress(int progress);
void loadFinished(bool);
void titleChanged(const QString &title);
void selectionChanged();
void urlChanged(const QUrl &);
void iconUrlChanged(const QUrl &);
%If (QtWebEngine_5_6_0 -)
void renderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus terminationStatus, int exitCode);
%End
protected:
virtual QWebEngineView *createWindow(QWebEnginePage::WebWindowType type);
virtual void contextMenuEvent(QContextMenuEvent *);
virtual bool event(QEvent *);
%If (QtWebEngine_5_6_0 -)
virtual void showEvent(QShowEvent *);
%End
%If (QtWebEngine_5_6_0 -)
virtual void hideEvent(QHideEvent *);
%End
public:
%If (QtWebEngine_5_7_0 -)
QIcon icon() const;
%End
signals:
%If (QtWebEngine_5_7_0 -)
void iconChanged(const QIcon &);
%End
protected:
%If (QtWebEngine_5_7_0 -)
virtual void dragEnterEvent(QDragEnterEvent *e);
%End
%If (QtWebEngine_5_7_0 -)
virtual void dragLeaveEvent(QDragLeaveEvent *e);
%End
%If (QtWebEngine_5_7_0 -)
virtual void dragMoveEvent(QDragMoveEvent *e);
%End
%If (QtWebEngine_5_7_0 -)
virtual void dropEvent(QDropEvent *e);
%End
%If (QtWebEngine_5_14_0 -)
virtual void closeEvent(QCloseEvent *);
%End
};
%ModuleHeaderCode
// Imports from QtCore.
typedef void (*pyqt5_qtwebenginewidgets_err_print_t)();
extern pyqt5_qtwebenginewidgets_err_print_t pyqt5_qtwebenginewidgets_err_print;
%End
%ModuleCode
// Imports from QtCore.
pyqt5_qtwebenginewidgets_err_print_t pyqt5_qtwebenginewidgets_err_print;
// Needed by the %PreInitialisationCode.
#include
%End
%PreInitialisationCode
// QtWebEngineWidgets uses Q_COREAPP_STARTUP_FUNCTION so, in order to make sure
// things work (particularly on Windows) when we dynamically load the code, we
// check things have been done in the right order.
if (QCoreApplication::instance())
{
PyErr_SetString(PyExc_ImportError,
"QtWebEngineWidgets must be imported before a QCoreApplication instance is created");
SIP_MODULE_RETURN(NULL);
}
%End
%PostInitialisationCode
// Imports from QtCore.
pyqt5_qtwebenginewidgets_err_print = (pyqt5_qtwebenginewidgets_err_print_t)sipImportSymbol("pyqt5_err_print");
Q_ASSERT(pyqt5_qtwebenginewidgets_err_print);
%End
././@PaxHeader 0000000 0000000 0000000 00000000032 00000000000 011450 x ustar 00 0000000 0000000 26 mtime=1576763382.88496
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginepage.sip 0000644 0000765 0000024 00000043133 00000000000 024336 0 ustar 00phil staff 0000000 0000000 // qwebenginepage.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QWebEnginePage : QObject
{
%TypeHeaderCode
#include
%End
public:
enum WebAction
{
NoWebAction,
Back,
Forward,
Stop,
Reload,
Cut,
Copy,
Paste,
Undo,
Redo,
SelectAll,
ReloadAndBypassCache,
PasteAndMatchStyle,
%If (QtWebEngine_5_6_0 -)
OpenLinkInThisWindow,
%End
%If (QtWebEngine_5_6_0 -)
OpenLinkInNewWindow,
%End
%If (QtWebEngine_5_6_0 -)
OpenLinkInNewTab,
%End
%If (QtWebEngine_5_6_0 -)
CopyLinkToClipboard,
%End
%If (QtWebEngine_5_6_0 -)
DownloadLinkToDisk,
%End
%If (QtWebEngine_5_6_0 -)
CopyImageToClipboard,
%End
%If (QtWebEngine_5_6_0 -)
CopyImageUrlToClipboard,
%End
%If (QtWebEngine_5_6_0 -)
DownloadImageToDisk,
%End
%If (QtWebEngine_5_6_0 -)
CopyMediaUrlToClipboard,
%End
%If (QtWebEngine_5_6_0 -)
ToggleMediaControls,
%End
%If (QtWebEngine_5_6_0 -)
ToggleMediaLoop,
%End
%If (QtWebEngine_5_6_0 -)
ToggleMediaPlayPause,
%End
%If (QtWebEngine_5_6_0 -)
ToggleMediaMute,
%End
%If (QtWebEngine_5_6_0 -)
DownloadMediaToDisk,
%End
%If (QtWebEngine_5_6_0 -)
InspectElement,
%End
%If (QtWebEngine_5_6_0 -)
ExitFullScreen,
%End
%If (QtWebEngine_5_6_0 -)
RequestClose,
%End
%If (QtWebEngine_5_7_0 -)
Unselect,
%End
%If (QtWebEngine_5_7_0 -)
SavePage,
%End
%If (QtWebEngine_5_7_0 -)
OpenLinkInNewBackgroundTab,
%End
%If (QtWebEngine_5_8_0 -)
ViewSource,
%End
%If (QtWebEngine_5_10_0 -)
ToggleBold,
%End
%If (QtWebEngine_5_10_0 -)
ToggleItalic,
%End
%If (QtWebEngine_5_10_0 -)
ToggleUnderline,
%End
%If (QtWebEngine_5_10_0 -)
ToggleStrikethrough,
%End
%If (QtWebEngine_5_10_0 -)
AlignLeft,
%End
%If (QtWebEngine_5_10_0 -)
AlignCenter,
%End
%If (QtWebEngine_5_10_0 -)
AlignRight,
%End
%If (QtWebEngine_5_10_0 -)
AlignJustified,
%End
%If (QtWebEngine_5_10_0 -)
Indent,
%End
%If (QtWebEngine_5_10_0 -)
Outdent,
%End
%If (QtWebEngine_5_10_0 -)
InsertOrderedList,
%End
%If (QtWebEngine_5_10_0 -)
InsertUnorderedList,
%End
};
enum FindFlag
{
FindBackward,
FindCaseSensitively,
};
typedef QFlags FindFlags;
enum WebWindowType
{
WebBrowserWindow,
WebBrowserTab,
WebDialog,
%If (QtWebEngine_5_7_0 -)
WebBrowserBackgroundTab,
%End
};
enum PermissionPolicy
{
PermissionUnknown,
PermissionGrantedByUser,
PermissionDeniedByUser,
};
enum Feature
{
%If (QtWebEngine_5_13_0 -)
Notifications,
%End
Geolocation,
MediaAudioCapture,
MediaVideoCapture,
MediaAudioVideoCapture,
%If (QtWebEngine_5_5_0 -)
MouseLock,
%End
%If (QtWebEngine_5_10_0 -)
DesktopVideoCapture,
%End
%If (QtWebEngine_5_10_0 -)
DesktopAudioVideoCapture,
%End
};
enum FileSelectionMode
{
FileSelectOpen,
FileSelectOpenMultiple,
};
enum JavaScriptConsoleMessageLevel
{
InfoMessageLevel,
WarningMessageLevel,
ErrorMessageLevel,
};
explicit QWebEnginePage(QObject *parent /TransferThis/ = 0);
%If (QtWebEngine_5_5_0 -)
QWebEnginePage(QWebEngineProfile *profile, QObject *parent /TransferThis/ = 0);
%End
virtual ~QWebEnginePage();
QWebEngineHistory *history() const;
void setView(QWidget *view);
QWidget *view() const;
bool hasSelection() const;
QString selectedText() const;
QAction *action(QWebEnginePage::WebAction action) const;
virtual void triggerAction(QWebEnginePage::WebAction action, bool checked = false);
virtual bool event(QEvent *);
void findText(const QString &subString, QWebEnginePage::FindFlags options = QWebEnginePage::FindFlags(), SIP_PYCALLABLE resultCallback /AllowNone,TypeHint="Callable[[bool], None]"/ = 0);
%MethodCode
// Make sure any callable doesn't get garbage collected.
Py_XINCREF(a2);
Py_BEGIN_ALLOW_THREADS
sipCpp->findText(*a0, *a1, [a2](bool arg) {
if (a2)
{
SIP_BLOCK_THREADS
PyObject *res;
res = PyObject_CallFunctionObjArgs(a2, (arg ? Py_True : Py_False), NULL);
Py_DECREF(a2);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
SIP_UNBLOCK_THREADS
}
});
Py_END_ALLOW_THREADS
%End
QMenu *createStandardContextMenu() /Factory/;
void setFeaturePermission(const QUrl &securityOrigin, QWebEnginePage::Feature feature, QWebEnginePage::PermissionPolicy policy);
void load(const QUrl &url);
%If (QtWebEngine_5_9_0 -)
void load(const QWebEngineHttpRequest &request);
%End
void setHtml(const QString &html, const QUrl &baseUrl = QUrl());
void setContent(const QByteArray &data, const QString &mimeType = QString(), const QUrl &baseUrl = QUrl());
void toHtml(SIP_PYCALLABLE resultCallback /TypeHint="Callable[[QString], None]"/) const;
%MethodCode
// Make sure the callable doesn't get garbage collected.
Py_INCREF(a0);
Py_BEGIN_ALLOW_THREADS
sipCpp->toHtml([a0](const QString &arg) {
SIP_BLOCK_THREADS
PyObject *res;
res = sipCallMethod(NULL, a0, "N", new QString(arg), sipType_QString, NULL);
Py_DECREF(a0);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
SIP_UNBLOCK_THREADS
});
Py_END_ALLOW_THREADS
%End
void toPlainText(SIP_PYCALLABLE resultCallback /TypeHint="Callable[[QString], None]"/) const;
%MethodCode
// Make sure the callable doesn't get garbage collected.
Py_INCREF(a0);
Py_BEGIN_ALLOW_THREADS
sipCpp->toPlainText([a0](const QString &arg) {
SIP_BLOCK_THREADS
PyObject *res;
res = sipCallMethod(NULL, a0, "N", new QString(arg), sipType_QString, NULL);
Py_DECREF(a0);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
SIP_UNBLOCK_THREADS
});
Py_END_ALLOW_THREADS
%End
QString title() const;
void setUrl(const QUrl &url);
QUrl url() const;
QUrl requestedUrl() const;
QUrl iconUrl() const;
qreal zoomFactor() const;
void setZoomFactor(qreal factor);
%If (QtWebEngine_5_7_0 -)
void runJavaScript(const QString &scriptSource, quint32 worldId);
%End
%If (QtWebEngine_5_7_0 -)
void runJavaScript(const QString &scriptSource, quint32 worldId, SIP_PYCALLABLE resultCallback);
%MethodCode
// Make sure the callable doesn't get garbage collected.
Py_INCREF(a2);
Py_BEGIN_ALLOW_THREADS
sipCpp->runJavaScript(*a0, a1, [a2](const QVariant &arg) {
SIP_BLOCK_THREADS
PyObject *res;
res = sipCallMethod(NULL, a2, "N", new QVariant(arg), sipType_QVariant, NULL);
Py_DECREF(a2);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
SIP_UNBLOCK_THREADS
});
Py_END_ALLOW_THREADS
%End
%End
void runJavaScript(const QString &scriptSource);
void runJavaScript(const QString &scriptSource, SIP_PYCALLABLE resultCallback /TypeHint="Callable[[Any], None]"/);
%MethodCode
// Make sure the callable doesn't get garbage collected.
Py_INCREF(a1);
Py_BEGIN_ALLOW_THREADS
sipCpp->runJavaScript(*a0, [a1](const QVariant &arg) {
SIP_BLOCK_THREADS
PyObject *res;
res = sipCallMethod(NULL, a1, "N", new QVariant(arg), sipType_QVariant, NULL);
Py_DECREF(a1);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
SIP_UNBLOCK_THREADS
});
Py_END_ALLOW_THREADS
%End
QWebEngineSettings *settings() const;
signals:
void loadStarted();
void loadProgress(int progress);
void loadFinished(bool ok);
void linkHovered(const QString &url);
void selectionChanged();
void geometryChangeRequested(const QRect &geom);
void windowCloseRequested();
void featurePermissionRequested(const QUrl &securityOrigin, QWebEnginePage::Feature feature);
void featurePermissionRequestCanceled(const QUrl &securityOrigin, QWebEnginePage::Feature feature);
void authenticationRequired(const QUrl &requestUrl, QAuthenticator *authenticator);
void proxyAuthenticationRequired(const QUrl &requestUrl, QAuthenticator *authenticator, const QString &proxyHost);
void titleChanged(const QString &title);
void urlChanged(const QUrl &url);
void iconUrlChanged(const QUrl &url);
protected:
virtual QWebEnginePage *createWindow(QWebEnginePage::WebWindowType type);
virtual QStringList chooseFiles(QWebEnginePage::FileSelectionMode mode, const QStringList &oldFiles, const QStringList &acceptedMimeTypes);
virtual void javaScriptAlert(const QUrl &securityOrigin, const QString &msg);
virtual bool javaScriptConfirm(const QUrl &securityOrigin, const QString &msg);
virtual bool javaScriptPrompt(const QUrl &securityOrigin, const QString &msg, const QString &defaultValue, QString *result /Out/);
virtual void javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &sourceID);
virtual bool certificateError(const QWebEngineCertificateError &certificateError /NoCopy/);
public:
%If (QtWebEngine_5_5_0 -)
enum NavigationType
{
NavigationTypeLinkClicked,
NavigationTypeTyped,
NavigationTypeFormSubmitted,
NavigationTypeBackForward,
NavigationTypeReload,
%If (QtWebEngine_5_14_0 -)
NavigationTypeRedirect,
%End
NavigationTypeOther,
};
%End
%If (QtWebEngine_5_5_0 -)
QWebEngineProfile *profile() const;
%End
%If (QtWebEngine_5_5_0 -)
QWebEngineScriptCollection &scripts();
%End
%If (QtWebEngine_5_5_0 -)
%If (PyQt_WebChannel)
QWebChannel *webChannel() const;
%End
%End
%If (QtWebEngine_5_5_0 -)
%If (PyQt_WebChannel)
void setWebChannel(QWebChannel *);
%End
%End
%If (QtWebEngine_5_7_0 -)
%If (PyQt_WebChannel)
void setWebChannel(QWebChannel *, uint worldId);
%End
%End
protected:
%If (QtWebEngine_5_5_0 -)
virtual bool acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame);
%End
public:
%If (QtWebEngine_5_6_0 -)
enum RenderProcessTerminationStatus
{
NormalTerminationStatus,
AbnormalTerminationStatus,
CrashedTerminationStatus,
KilledTerminationStatus,
};
%End
%If (QtWebEngine_5_6_0 -)
QColor backgroundColor() const;
%End
%If (QtWebEngine_5_6_0 -)
void setBackgroundColor(const QColor &color);
%End
signals:
%If (QtWebEngine_5_6_0 -)
void fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest);
%End
%If (QtWebEngine_5_6_0 -)
void renderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus terminationStatus /ScopesStripped=1/, int exitCode);
%End
public:
%If (QtWebEngine_5_7_0 -)
QIcon icon() const;
%End
%If (QtWebEngine_5_7_0 -)
QPointF scrollPosition() const;
%End
%If (QtWebEngine_5_7_0 -)
QSizeF contentsSize() const;
%End
%If (QtWebEngine_5_7_0 -)
bool isAudioMuted() const;
%End
%If (QtWebEngine_5_7_0 -)
void setAudioMuted(bool muted);
%End
%If (QtWebEngine_5_7_0 -)
bool recentlyAudible() const;
%End
%If (QtWebEngine_5_7_0 -)
void printToPdf(const QString &filePath, const QPageLayout &pageLayout = QPageLayout(QPageSize(QPageSize::PageSizeId::A4), QPageLayout::Orientation::Portrait, QMarginsF()));
%End
%If (QtWebEngine_5_7_0 -)
void printToPdf(SIP_PYCALLABLE resultCallback /TypeHint="Callable[[QByteArray], None]"/, const QPageLayout &pageLayout = QPageLayout(QPageSize(QPageSize::PageSizeId::A4), QPageLayout::Orientation::Portrait, QMarginsF()));
%MethodCode
// Make sure the callable doesn't get garbage collected.
Py_INCREF(a0);
Py_BEGIN_ALLOW_THREADS
sipCpp->printToPdf([a0](const QByteArray &arg) {
SIP_BLOCK_THREADS
PyObject *res;
res = sipCallMethod(NULL, a0, "N", new QByteArray(arg), sipType_QByteArray, NULL);
Py_DECREF(a0);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
SIP_UNBLOCK_THREADS
}, *a1);
Py_END_ALLOW_THREADS
%End
%End
%If (QtWebEngine_5_7_0 -)
const QWebEngineContextMenuData &contextMenuData() const;
%End
signals:
%If (QtWebEngine_5_7_0 -)
void iconChanged(const QIcon &icon);
%End
%If (QtWebEngine_5_7_0 -)
void scrollPositionChanged(const QPointF &position);
%End
%If (QtWebEngine_5_7_0 -)
void contentsSizeChanged(const QSizeF &size);
%End
%If (QtWebEngine_5_7_0 -)
void audioMutedChanged(bool muted);
%End
%If (QtWebEngine_5_7_0 -)
void recentlyAudibleChanged(bool recentlyAudible);
%End
%If (QtWebEngine_5_9_0 -)
void pdfPrintingFinished(const QString &filePath, bool success);
%End
public:
%If (QtWebEngine_5_8_0 -)
void replaceMisspelledWord(const QString &replacement);
%End
%If (QtWebEngine_5_8_0 -)
void save(const QString &filePath, QWebEngineDownloadItem::SavePageFormat format = QWebEngineDownloadItem::MimeHtmlSaveFormat) const /ReleaseGIL/;
%End
%If (QtWebEngine_5_8_0 -)
%If (Py_v3)
%If (PyQt_Printer)
void print(QPrinter *printer, SIP_PYCALLABLE resultCallback /TypeHint="Callable[[bool], None]"/);
%MethodCode
// Make sure the callable doesn't get garbage collected.
Py_INCREF(a1);
Py_BEGIN_ALLOW_THREADS
sipCpp->print(a0, [a1](bool arg) {
SIP_BLOCK_THREADS
PyObject *res;
res = sipCallMethod(NULL, a1, "b", arg);
Py_DECREF(a1);
if (!res)
pyqt5_qtwebenginewidgets_err_print();
else
Py_DECREF(res);
SIP_UNBLOCK_THREADS
});
Py_END_ALLOW_THREADS
%End
%End
%End
%End
%If (QtWebEngine_5_10_0 -)
void download(const QUrl &url, const QString &filename = QString());
%End
%If (QtWebEngine_5_11_0 -)
void setInspectedPage(QWebEnginePage *page);
%End
%If (QtWebEngine_5_11_0 -)
QWebEnginePage *inspectedPage() const;
%End
%If (QtWebEngine_5_11_0 -)
void setDevToolsPage(QWebEnginePage *page);
%End
%If (QtWebEngine_5_11_0 -)
QWebEnginePage *devToolsPage() const;
%End
signals:
%If (QtWebEngine_5_11_0 -)
void quotaRequested(QWebEngineQuotaRequest quotaRequest);
%End
%If (QtWebEngine_5_11_0 -)
void registerProtocolHandlerRequested(QWebEngineRegisterProtocolHandlerRequest request);
%End
%If (QtWebEngine_5_12_0 -)
%If (PyQt_SSL)
void selectClientCertificate(QWebEngineClientCertificateSelection clientCertSelection);
%End
%End
%If (QtWebEngine_5_12_0 -)
void printRequested();
%End
public:
%If (QtWebEngine_5_13_0 -)
void setUrlRequestInterceptor(QWebEngineUrlRequestInterceptor *interceptor);
%End
%If (QtWebEngine_5_14_0 -)
enum class LifecycleState
{
Active,
Frozen,
Discarded,
};
%End
%If (QtWebEngine_5_14_0 -)
QWebEnginePage::LifecycleState lifecycleState() const;
%End
%If (QtWebEngine_5_14_0 -)
void setLifecycleState(QWebEnginePage::LifecycleState state);
%End
%If (QtWebEngine_5_14_0 -)
QWebEnginePage::LifecycleState recommendedState() const;
%End
%If (QtWebEngine_5_14_0 -)
bool isVisible() const;
%End
%If (QtWebEngine_5_14_0 -)
void setVisible(bool visible);
%End
signals:
%If (QtWebEngine_5_14_0 -)
void visibleChanged(bool visible);
%End
%If (QtWebEngine_5_14_0 -)
void lifecycleStateChanged(QWebEnginePage::LifecycleState state);
%End
%If (QtWebEngine_5_14_0 -)
void recommendedStateChanged(QWebEnginePage::LifecycleState state);
%End
%If (QtWebEngine_5_14_0 -)
void findTextFinished(const QWebEngineFindTextResult &result);
%End
};
%If (QtWebEngine_5_11_0 -)
QFlags operator|(QWebEnginePage::FindFlag f1, QFlags f2);
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.885442
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginefullscreenrequest.sip 0000644 0000765 0000024 00000002456 00000000000 027200 0 ustar 00phil staff 0000000 0000000 // qwebenginefullscreenrequest.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_6_0 -)
class QWebEngineFullScreenRequest
{
%TypeHeaderCode
#include
%End
public:
void reject();
void accept();
bool toggleOn() const;
const QUrl &origin() const;
private:
QWebEngineFullScreenRequest(QWebEnginePage *page, const QUrl &origin, bool toggleOn);
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.886346
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginecontextmenudata.sip 0000644 0000765 0000024 00000006114 00000000000 026623 0 ustar 00phil staff 0000000 0000000 // qwebenginecontextmenudata.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_7_0 -)
class QWebEngineContextMenuData
{
%TypeHeaderCode
#include
%End
public:
QWebEngineContextMenuData();
QWebEngineContextMenuData(const QWebEngineContextMenuData &other);
~QWebEngineContextMenuData();
enum MediaType
{
MediaTypeNone,
MediaTypeImage,
MediaTypeVideo,
MediaTypeAudio,
MediaTypeCanvas,
MediaTypeFile,
MediaTypePlugin,
};
bool isValid() const;
QPoint position() const;
QString selectedText() const;
QString linkText() const;
QUrl linkUrl() const;
QUrl mediaUrl() const;
QWebEngineContextMenuData::MediaType mediaType() const;
bool isContentEditable() const;
%If (QtWebEngine_5_8_0 -)
QString misspelledWord() const;
%End
%If (QtWebEngine_5_8_0 -)
QStringList spellCheckerSuggestions() const;
%End
%If (QtWebEngine_5_11_0 -)
enum MediaFlag
{
MediaInError,
MediaPaused,
MediaMuted,
MediaLoop,
MediaCanSave,
MediaHasAudio,
MediaCanToggleControls,
MediaControls,
MediaCanPrint,
MediaCanRotate,
};
%End
%If (QtWebEngine_5_11_0 -)
typedef QFlags MediaFlags;
%End
%If (QtWebEngine_5_11_0 -)
enum EditFlag
{
CanUndo,
CanRedo,
CanCut,
CanCopy,
CanPaste,
CanDelete,
CanSelectAll,
CanTranslate,
CanEditRichly,
};
%End
%If (QtWebEngine_5_11_0 -)
typedef QFlags EditFlags;
%End
%If (QtWebEngine_5_11_0 -)
QWebEngineContextMenuData::MediaFlags mediaFlags() const;
%End
%If (QtWebEngine_5_11_0 -)
QWebEngineContextMenuData::EditFlags editFlags() const;
%End
};
%End
%If (QtWebEngine_5_11_0 -)
QFlags operator|(QWebEngineContextMenuData::MediaFlag f1, QFlags f2);
%End
%If (QtWebEngine_5_11_0 -)
QFlags operator|(QWebEngineContextMenuData::EditFlag f1, QFlags f2);
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.886916
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/QtWebEngineWidgetsmod.sip 0000644 0000765 0000024 00000006543 00000000000 025560 0 ustar 00phil staff 0000000 0000000 // QtWebEngineWidgetsmod.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Module(name=PyQt5.QtWebEngineWidgets, keyword_arguments="Optional", use_limited_api=True)
%Import QtCore/QtCoremod.sip
%Import QtNetwork/QtNetworkmod.sip
%Import QtPrintSupport/QtPrintSupportmod.sip
%Import QtWidgets/QtWidgetsmod.sip
%Timeline {QtWebEngine_5_4_0 QtWebEngine_5_4_1 QtWebEngine_5_4_2 QtWebEngine_5_5_0 QtWebEngine_5_5_1 QtWebEngine_5_6_0 QtWebEngine_5_6_1 QtWebEngine_5_6_2 QtWebEngine_5_6_3 QtWebEngine_5_6_4 QtWebEngine_5_6_5 QtWebEngine_5_6_6 QtWebEngine_5_6_7 QtWebEngine_5_6_8 QtWebEngine_5_6_9 QtWebEngine_5_7_0 QtWebEngine_5_7_1 QtWebEngine_5_8_0 QtWebEngine_5_8_1 QtWebEngine_5_9_0 QtWebEngine_5_9_1 QtWebEngine_5_9_2 QtWebEngine_5_9_3 QtWebEngine_5_9_4 QtWebEngine_5_9_5 QtWebEngine_5_9_6 QtWebEngine_5_9_7 QtWebEngine_5_9_8 QtWebEngine_5_9_9 QtWebEngine_5_10_0 QtWebEngine_5_10_1 QtWebEngine_5_11_0 QtWebEngine_5_11_1 QtWebEngine_5_11_2 QtWebEngine_5_11_3 QtWebEngine_5_12_0 QtWebEngine_5_12_1 QtWebEngine_5_12_2 QtWebEngine_5_12_3 QtWebEngine_5_12_4 QtWebEngine_5_13_0 QtWebEngine_5_14_0}
%Copying
Copyright (c) 2019 Riverbank Computing Limited
This file is part of PyQtWebEngine.
This file may be used under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation and appearing in
the file LICENSE included in the packaging of this file. Please review the
following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you do not wish to use this file under the terms of the GPL version 3.0
then you may purchase a commercial license. For more information contact
info@riverbankcomputing.com.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%End
%DefaultSupertype sip.simplewrapper
%If (QtWebEngine_5_6_0 -)
%Import QtWebEngineCore/QtWebEngineCoremod.sip
%End
%If (PyQt_WebChannel)
%Import QtWebChannel/QtWebChannelmod.sip
%End
%Include qwebenginecertificateerror.sip
%Include qwebengineclientcertificateselection.sip
%Include qwebenginecontextmenudata.sip
%Include qwebenginedownloaditem.sip
%Include qwebenginefullscreenrequest.sip
%Include qwebenginehistory.sip
%Include qwebenginepage.sip
%Include qwebengineprofile.sip
%Include qwebenginescript.sip
%Include qwebenginescriptcollection.sip
%Include qwebenginesettings.sip
%Include qwebengineview.sip
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.888003
PyQtWebEngine-5.14.0/sip/QtWebEngineWidgets/qwebenginesettings.sip 0000644 0000765 0000024 00000010540 00000000000 025256 0 ustar 00phil staff 0000000 0000000 // qwebenginesettings.sip generated by MetaSIP
//
// This file is part of the QtWebEngineWidgets Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QWebEngineSettings
{
%TypeHeaderCode
#include
%End
public:
enum FontFamily
{
StandardFont,
FixedFont,
SerifFont,
SansSerifFont,
CursiveFont,
FantasyFont,
%If (QtWebEngine_5_7_0 -)
PictographFont,
%End
};
enum WebAttribute
{
AutoLoadImages,
JavascriptEnabled,
JavascriptCanOpenWindows,
JavascriptCanAccessClipboard,
LinksIncludedInFocusChain,
LocalStorageEnabled,
LocalContentCanAccessRemoteUrls,
XSSAuditingEnabled,
SpatialNavigationEnabled,
LocalContentCanAccessFileUrls,
HyperlinkAuditingEnabled,
ScrollAnimatorEnabled,
ErrorPageEnabled,
%If (QtWebEngine_5_6_0 -)
PluginsEnabled,
%End
%If (QtWebEngine_5_6_0 -)
FullScreenSupportEnabled,
%End
%If (QtWebEngine_5_7_0 -)
ScreenCaptureEnabled,
%End
%If (QtWebEngine_5_7_0 -)
WebGLEnabled,
%End
%If (QtWebEngine_5_7_0 -)
Accelerated2dCanvasEnabled,
%End
%If (QtWebEngine_5_7_0 -)
AutoLoadIconsForPage,
%End
%If (QtWebEngine_5_7_0 -)
TouchIconsEnabled,
%End
%If (QtWebEngine_5_8_0 -)
FocusOnNavigationEnabled,
%End
%If (QtWebEngine_5_8_0 -)
PrintElementBackgrounds,
%End
%If (QtWebEngine_5_8_0 -)
AllowRunningInsecureContent,
%End
%If (QtWebEngine_5_9_0 -)
AllowGeolocationOnInsecureOrigins,
%End
%If (QtWebEngine_5_10_0 -)
AllowWindowActivationFromJavaScript,
%End
%If (QtWebEngine_5_10_0 -)
ShowScrollBars,
%End
%If (QtWebEngine_5_11_0 -)
PlaybackRequiresUserGesture,
%End
%If (QtWebEngine_5_11_0 -)
WebRTCPublicInterfacesOnly,
%End
%If (QtWebEngine_5_11_0 -)
JavascriptCanPaste,
%End
%If (QtWebEngine_5_12_0 -)
DnsPrefetchEnabled,
%End
%If (QtWebEngine_5_13_0 -)
PdfViewerEnabled,
%End
};
enum FontSize
{
MinimumFontSize,
MinimumLogicalFontSize,
DefaultFontSize,
DefaultFixedFontSize,
};
%If (QtWebEngine_5_5_0 -)
static QWebEngineSettings *defaultSettings();
%End
static QWebEngineSettings *globalSettings();
void setFontFamily(QWebEngineSettings::FontFamily which, const QString &family);
QString fontFamily(QWebEngineSettings::FontFamily which) const;
void resetFontFamily(QWebEngineSettings::FontFamily which);
void setFontSize(QWebEngineSettings::FontSize type, int size);
int fontSize(QWebEngineSettings::FontSize type) const;
void resetFontSize(QWebEngineSettings::FontSize type);
void setAttribute(QWebEngineSettings::WebAttribute attr, bool on);
bool testAttribute(QWebEngineSettings::WebAttribute attr) const;
void resetAttribute(QWebEngineSettings::WebAttribute attr);
void setDefaultTextEncoding(const QString &encoding);
QString defaultTextEncoding() const;
%If (QtWebEngine_5_11_0 -)
enum UnknownUrlSchemePolicy
{
DisallowUnknownUrlSchemes,
AllowUnknownUrlSchemesFromUserInteraction,
AllowAllUnknownUrlSchemes,
};
%End
%If (QtWebEngine_5_11_0 -)
QWebEngineSettings::UnknownUrlSchemePolicy unknownUrlSchemePolicy() const;
%End
%If (QtWebEngine_5_11_0 -)
void setUnknownUrlSchemePolicy(QWebEngineSettings::UnknownUrlSchemePolicy policy);
%End
%If (QtWebEngine_5_11_0 -)
void resetUnknownUrlSchemePolicy();
%End
private:
QWebEngineSettings(const QWebEngineSettings &);
~QWebEngineSettings();
};
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1576763383.0647955
PyQtWebEngine-5.14.0/sip/QtWebEngine/ 0000755 0000765 0000024 00000000000 00000000000 017305 5 ustar 00phil staff 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.889204
PyQtWebEngine-5.14.0/sip/QtWebEngine/qquickwebengineprofile.sip 0000644 0000765 0000024 00000012274 00000000000 024572 0 ustar 00phil staff 0000000 0000000 // qquickwebengineprofile.sip generated by MetaSIP
//
// This file is part of the QtWebEngine Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_6_0 -)
class QQuickWebEngineProfile : QObject
{
%TypeHeaderCode
#include
%End
%ConvertToSubClassCode
static struct class_graph {
const char *name;
sipTypeDef **type;
int yes, no;
} graph[] = {
{sipName_QQuickWebEngineProfile, &sipType_QQuickWebEngineProfile, -1, 1},
#if QT_VERSION >= 0x050900
{sipName_QQuickWebEngineScript, &sipType_QQuickWebEngineScript, -1, -1},
#else
{0, 0, -1, -1},
#endif
};
int i = 0;
sipType = NULL;
do
{
struct class_graph *cg = &graph[i];
if (cg->name != NULL && sipCpp->inherits(cg->name))
{
sipType = *cg->type;
i = cg->yes;
}
else
i = cg->no;
}
while (i >= 0);
%End
public:
QQuickWebEngineProfile(QObject *parent /TransferThis/ = 0);
virtual ~QQuickWebEngineProfile();
enum HttpCacheType
{
MemoryHttpCache,
DiskHttpCache,
%If (QtWebEngine_5_7_0 -)
NoCache,
%End
};
enum PersistentCookiesPolicy
{
NoPersistentCookies,
AllowPersistentCookies,
ForcePersistentCookies,
};
QString storageName() const;
void setStorageName(const QString &name);
bool isOffTheRecord() const;
void setOffTheRecord(bool offTheRecord);
QString persistentStoragePath() const;
void setPersistentStoragePath(const QString &path);
QString cachePath() const;
void setCachePath(const QString &path);
QString httpUserAgent() const;
void setHttpUserAgent(const QString &userAgent);
QQuickWebEngineProfile::HttpCacheType httpCacheType() const;
void setHttpCacheType(QQuickWebEngineProfile::HttpCacheType);
QQuickWebEngineProfile::PersistentCookiesPolicy persistentCookiesPolicy() const;
void setPersistentCookiesPolicy(QQuickWebEngineProfile::PersistentCookiesPolicy);
int httpCacheMaximumSize() const;
void setHttpCacheMaximumSize(int maxSize);
QString httpAcceptLanguage() const;
void setHttpAcceptLanguage(const QString &httpAcceptLanguage);
QWebEngineCookieStore *cookieStore() const /Transfer/;
%If (QtWebEngine_5_13_0 -)
void setUrlRequestInterceptor(QWebEngineUrlRequestInterceptor *interceptor);
%End
void setRequestInterceptor(QWebEngineUrlRequestInterceptor *interceptor);
const QWebEngineUrlSchemeHandler *urlSchemeHandler(const QByteArray &) const;
void installUrlSchemeHandler(const QByteArray &scheme, QWebEngineUrlSchemeHandler *);
void removeUrlScheme(const QByteArray &scheme);
void removeUrlSchemeHandler(QWebEngineUrlSchemeHandler *);
void removeAllUrlSchemeHandlers();
%If (QtWebEngine_5_7_0 -)
void clearHttpCache();
%End
static QQuickWebEngineProfile *defaultProfile() /Transfer/;
signals:
void storageNameChanged();
void offTheRecordChanged();
void persistentStoragePathChanged();
void cachePathChanged();
void httpUserAgentChanged();
void httpCacheTypeChanged();
void persistentCookiesPolicyChanged();
void httpCacheMaximumSizeChanged();
void httpAcceptLanguageChanged();
public:
%If (QtWebEngine_5_8_0 -)
void setSpellCheckLanguages(const QStringList &languages);
%End
%If (QtWebEngine_5_8_0 -)
QStringList spellCheckLanguages() const;
%End
%If (QtWebEngine_5_8_0 -)
void setSpellCheckEnabled(bool enabled);
%End
%If (QtWebEngine_5_8_0 -)
bool isSpellCheckEnabled() const;
%End
signals:
%If (QtWebEngine_5_8_0 -)
void spellCheckLanguagesChanged();
%End
%If (QtWebEngine_5_8_0 -)
void spellCheckEnabledChanged();
%End
public:
%If (QtWebEngine_5_13_0 -)
void setUseForGlobalCertificateVerification(bool b);
%End
%If (QtWebEngine_5_13_0 -)
bool isUsedForGlobalCertificateVerification() const;
%End
%If (QtWebEngine_5_13_0 -)
QString downloadPath() const;
%End
%If (QtWebEngine_5_13_0 -)
void setDownloadPath(const QString &path);
%End
%If (QtWebEngine_5_13_0 -)
QWebEngineClientCertificateStore *clientCertificateStore();
%End
signals:
%If (QtWebEngine_5_13_0 -)
void useForGlobalCertificateVerificationChanged();
%End
%If (QtWebEngine_5_13_0 -)
void downloadPathChanged();
%End
%If (QtWebEngine_5_13_0 -)
void presentNotification(QWebEngineNotification *notification);
%End
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.889683
PyQtWebEngine-5.14.0/sip/QtWebEngine/qtwebengineglobal.sip 0000644 0000765 0000024 00000002465 00000000000 023522 0 ustar 00phil staff 0000000 0000000 // qtwebengineglobal.sip generated by MetaSIP
//
// This file is part of the QtWebEngine Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// PyQtWebEngine version information.
int PYQT_WEBENGINE_VERSION;
const char *PYQT_WEBENGINE_VERSION_STR;
%ModuleCode
static int PYQT_WEBENGINE_VERSION = 0x050e00;
static const char *PYQT_WEBENGINE_VERSION_STR = "5.14.0";
%End
%If (QtWebEngine_5_6_0 -)
namespace QtWebEngine
{
%TypeHeaderCode
#include
%End
void initialize();
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.890307
PyQtWebEngine-5.14.0/sip/QtWebEngine/qquickwebenginescript.sip 0000644 0000765 0000024 00000004640 00000000000 024434 0 ustar 00phil staff 0000000 0000000 // qquickwebenginescript.sip generated by MetaSIP
//
// This file is part of the QtWebEngine Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_9_0 -)
class QQuickWebEngineScript : QObject
{
%TypeHeaderCode
#include
%End
public:
enum InjectionPoint
{
Deferred,
DocumentReady,
DocumentCreation,
};
enum ScriptWorldId
{
MainWorld,
ApplicationWorld,
UserWorld,
};
explicit QQuickWebEngineScript(QObject *parent /TransferThis/ = 0);
virtual ~QQuickWebEngineScript();
QString toString() const;
QString name() const;
QUrl sourceUrl() const;
QString sourceCode() const;
QQuickWebEngineScript::InjectionPoint injectionPoint() const;
QQuickWebEngineScript::ScriptWorldId worldId() const;
bool runOnSubframes() const;
void setName(const QString &name);
void setSourceUrl(const QUrl &url);
void setSourceCode(const QString &code);
void setInjectionPoint(QQuickWebEngineScript::InjectionPoint injectionPoint);
void setWorldId(QQuickWebEngineScript::ScriptWorldId scriptWorldId);
void setRunOnSubframes(bool on);
signals:
void nameChanged(const QString &name);
void sourceUrlChanged(const QUrl &url);
void sourceCodeChanged(const QString &code);
void injectionPointChanged(QQuickWebEngineScript::InjectionPoint injectionPoint /ScopesStripped=1/);
void worldIdChanged(QQuickWebEngineScript::ScriptWorldId scriptWorldId /ScopesStripped=1/);
void runOnSubframesChanged(bool on);
protected:
virtual void timerEvent(QTimerEvent *e);
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.890737
PyQtWebEngine-5.14.0/sip/QtWebEngine/QtWebEnginemod.sip 0000644 0000765 0000024 00000004007 00000000000 022673 0 ustar 00phil staff 0000000 0000000 // QtWebEnginemod.sip generated by MetaSIP
//
// This file is part of the QtWebEngine Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Module(name=PyQt5.QtWebEngine, keyword_arguments="Optional", use_limited_api=True)
%Import QtWebEngineCore/QtWebEngineCoremod.sip
%Copying
Copyright (c) 2019 Riverbank Computing Limited
This file is part of PyQtWebEngine.
This file may be used under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation and appearing in
the file LICENSE included in the packaging of this file. Please review the
following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you do not wish to use this file under the terms of the GPL version 3.0
then you may purchase a commercial license. For more information contact
info@riverbankcomputing.com.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%End
%DefaultSupertype sip.simplewrapper
%Include qquickwebengineprofile.sip
%Include qquickwebenginescript.sip
%Include qtwebengineglobal.sip
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1576763383.0691395
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/ 0000755 0000765 0000024 00000000000 00000000000 020116 5 ustar 00phil staff 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.891312
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebengineclientcertificatestore.sip 0000644 0000765 0000024 00000003031 00000000000 027433 0 ustar 00phil staff 0000000 0000000 // qwebengineclientcertificatestore.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_13_0 -)
namespace QtWebEngineCore
{
%TypeHeaderCode
#include
%End
};
%End
%If (QtWebEngine_5_13_0 -)
%If (PyQt_SSL)
class QWebEngineClientCertificateStore /NoDefaultCtors/
{
%TypeHeaderCode
#include
%End
public:
void add(const QSslCertificate &certificate, const QSslKey &privateKey);
QVector certificates() const;
void remove(const QSslCertificate &certificate);
void clear();
private:
~QWebEngineClientCertificateStore();
};
%End
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.891735
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebengineurlrequestinterceptor.sip 0000644 0000765 0000024 00000002555 00000000000 027401 0 ustar 00phil staff 0000000 0000000 // qwebengineurlrequestinterceptor.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_6_0 -)
class QWebEngineUrlRequestInterceptor : QObject
{
%TypeHeaderCode
#include
%End
public:
explicit QWebEngineUrlRequestInterceptor(QObject *parent /TransferThis/ = 0);
virtual void interceptRequest(QWebEngineUrlRequestInfo &info) = 0;
private:
QWebEngineUrlRequestInterceptor(const QWebEngineUrlRequestInterceptor &);
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.892462
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebengineurlrequestinfo.sip 0000644 0000765 0000024 00000005334 00000000000 025774 0 ustar 00phil staff 0000000 0000000 // qwebengineurlrequestinfo.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_6_0 -)
class QWebEngineUrlRequestInfo
{
%TypeHeaderCode
#include
%End
public:
enum ResourceType
{
ResourceTypeMainFrame,
ResourceTypeSubFrame,
ResourceTypeStylesheet,
ResourceTypeScript,
ResourceTypeImage,
ResourceTypeFontResource,
ResourceTypeSubResource,
ResourceTypeObject,
ResourceTypeMedia,
ResourceTypeWorker,
ResourceTypeSharedWorker,
ResourceTypePrefetch,
ResourceTypeFavicon,
ResourceTypeXhr,
ResourceTypePing,
ResourceTypeServiceWorker,
ResourceTypeUnknown,
%If (QtWebEngine_5_7_0 -)
ResourceTypeCspReport,
%End
%If (QtWebEngine_5_7_0 -)
ResourceTypePluginResource,
%End
%If (QtWebEngine_5_14_0 -)
ResourceTypeNavigationPreloadMainFrame,
%End
%If (QtWebEngine_5_14_0 -)
ResourceTypeNavigationPreloadSubFrame,
%End
};
enum NavigationType
{
NavigationTypeLink,
NavigationTypeTyped,
NavigationTypeFormSubmitted,
NavigationTypeBackForward,
NavigationTypeReload,
%If (QtWebEngine_5_14_0 -)
NavigationTypeRedirect,
%End
NavigationTypeOther,
};
QWebEngineUrlRequestInfo::ResourceType resourceType() const;
QWebEngineUrlRequestInfo::NavigationType navigationType() const;
QUrl requestUrl() const;
QUrl firstPartyUrl() const;
QByteArray requestMethod() const;
void block(bool shouldBlock);
void redirect(const QUrl &url);
void setHttpHeader(const QByteArray &name, const QByteArray &value);
%If (QtWebEngine_5_14_0 -)
QUrl initiator() const;
%End
private:
QWebEngineUrlRequestInfo(const QWebEngineUrlRequestInfo &);
~QWebEngineUrlRequestInfo();
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.892981
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebengineurlrequestjob.sip 0000644 0000765 0000024 00000003256 00000000000 025614 0 ustar 00phil staff 0000000 0000000 // qwebengineurlrequestjob.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_6_0 -)
class QWebEngineUrlRequestJob : QObject /NoDefaultCtors/
{
%TypeHeaderCode
#include
%End
public:
virtual ~QWebEngineUrlRequestJob();
enum Error
{
NoError,
UrlNotFound,
UrlInvalid,
RequestAborted,
RequestDenied,
RequestFailed,
};
QUrl requestUrl() const;
QByteArray requestMethod() const;
void reply(const QByteArray &contentType, QIODevice *device);
void fail(QWebEngineUrlRequestJob::Error error);
void redirect(const QUrl &url);
%If (QtWebEngine_5_11_0 -)
QUrl initiator() const;
%End
%If (QtWebEngine_5_13_0 -)
QMap requestHeaders() const;
%End
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000032 00000000000 011450 x ustar 00 0000000 0000000 26 mtime=1576763382.89341
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebenginefindtextresult.sip 0000644 0000765 0000024 00000002442 00000000000 025766 0 ustar 00phil staff 0000000 0000000 // qwebenginefindtextresult.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_14_0 -)
class QWebEngineFindTextResult
{
%TypeHeaderCode
#include
%End
public:
int numberOfMatches() const;
int activeMatch() const;
QWebEngineFindTextResult();
QWebEngineFindTextResult(const QWebEngineFindTextResult &other);
~QWebEngineFindTextResult();
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000032 00000000000 011450 x ustar 00 0000000 0000000 26 mtime=1576763382.89406
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebengineurlscheme.sip 0000644 0000765 0000024 00000004745 00000000000 024701 0 ustar 00phil staff 0000000 0000000 // qwebengineurlscheme.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_12_0 -)
class QWebEngineUrlScheme
{
%TypeHeaderCode
#include
%End
public:
enum class Syntax
{
HostPortAndUserInformation,
HostAndPort,
Host,
Path,
};
enum SpecialPort
{
PortUnspecified,
};
enum Flag
{
SecureScheme,
LocalScheme,
LocalAccessAllowed,
NoAccessAllowed,
ServiceWorkersAllowed,
ViewSourceAllowed,
ContentSecurityPolicyIgnored,
%If (QtWebEngine_5_14_0 -)
CorsEnabled,
%End
};
typedef QFlags Flags;
QWebEngineUrlScheme();
explicit QWebEngineUrlScheme(const QByteArray &name);
QWebEngineUrlScheme(const QWebEngineUrlScheme &that);
~QWebEngineUrlScheme();
bool operator==(const QWebEngineUrlScheme &that) const;
bool operator!=(const QWebEngineUrlScheme &that) const;
QByteArray name() const;
void setName(const QByteArray &newValue);
QWebEngineUrlScheme::Syntax syntax() const;
void setSyntax(QWebEngineUrlScheme::Syntax newValue);
int defaultPort() const;
void setDefaultPort(int newValue);
QWebEngineUrlScheme::Flags flags() const;
void setFlags(QWebEngineUrlScheme::Flags newValue);
static void registerScheme(const QWebEngineUrlScheme &scheme);
static QWebEngineUrlScheme schemeByName(const QByteArray &name);
};
%End
%If (QtWebEngine_5_12_0 -)
QFlags operator|(QWebEngineUrlScheme::Flag f1, QFlags f2);
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.894573
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebenginequotarequest.sip 0000644 0000765 0000024 00000002717 00000000000 025451 0 ustar 00phil staff 0000000 0000000 // qwebenginequotarequest.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_11_0 -)
namespace QtWebEngineCore
{
%TypeHeaderCode
#include
%End
};
%End
%If (QtWebEngine_5_11_0 -)
class QWebEngineQuotaRequest
{
%TypeHeaderCode
#include
%End
public:
QWebEngineQuotaRequest();
void accept();
void reject();
QUrl origin() const;
qint64 requestedSize() const;
bool operator==(const QWebEngineQuotaRequest &that) const;
bool operator!=(const QWebEngineQuotaRequest &that) const;
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.895189
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/QtWebEngineCoremod.sip 0000644 0000765 0000024 00000006300 00000000000 024313 0 ustar 00phil staff 0000000 0000000 // QtWebEngineCoremod.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Module(name=PyQt5.QtWebEngineCore, keyword_arguments="Optional", use_limited_api=True)
%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
%Import QtNetwork/QtNetworkmod.sip
%Timeline {QtWebEngine_5_4_0 QtWebEngine_5_4_1 QtWebEngine_5_4_2 QtWebEngine_5_5_0 QtWebEngine_5_5_1 QtWebEngine_5_6_0 QtWebEngine_5_6_1 QtWebEngine_5_6_2 QtWebEngine_5_6_3 QtWebEngine_5_6_4 QtWebEngine_5_6_5 QtWebEngine_5_6_6 QtWebEngine_5_6_7 QtWebEngine_5_6_8 QtWebEngine_5_6_9 QtWebEngine_5_7_0 QtWebEngine_5_7_1 QtWebEngine_5_8_0 QtWebEngine_5_8_1 QtWebEngine_5_9_0 QtWebEngine_5_9_1 QtWebEngine_5_9_2 QtWebEngine_5_9_3 QtWebEngine_5_9_4 QtWebEngine_5_9_5 QtWebEngine_5_9_6 QtWebEngine_5_9_7 QtWebEngine_5_9_8 QtWebEngine_5_9_9 QtWebEngine_5_10_0 QtWebEngine_5_10_1 QtWebEngine_5_11_0 QtWebEngine_5_11_1 QtWebEngine_5_11_2 QtWebEngine_5_11_3 QtWebEngine_5_12_0 QtWebEngine_5_12_1 QtWebEngine_5_12_2 QtWebEngine_5_12_3 QtWebEngine_5_12_4 QtWebEngine_5_13_0 QtWebEngine_5_14_0}
%Copying
Copyright (c) 2019 Riverbank Computing Limited
This file is part of PyQtWebEngine.
This file may be used under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation and appearing in
the file LICENSE included in the packaging of this file. Please review the
following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you do not wish to use this file under the terms of the GPL version 3.0
then you may purchase a commercial license. For more information contact
info@riverbankcomputing.com.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%End
%DefaultSupertype sip.simplewrapper
%Include qwebengineclientcertificatestore.sip
%Include qwebenginecookiestore.sip
%Include qwebenginefindtextresult.sip
%Include qwebenginehttprequest.sip
%Include qwebenginenotification.sip
%Include qwebenginequotarequest.sip
%Include qwebengineregisterprotocolhandlerrequest.sip
%Include qwebengineurlrequestinfo.sip
%Include qwebengineurlrequestinterceptor.sip
%Include qwebengineurlrequestjob.sip
%Include qwebengineurlscheme.sip
%Include qwebengineurlschemehandler.sip
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.895728
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebengineregisterprotocolhandlerrequest.sip 0000644 0000765 0000024 00000003107 00000000000 031256 0 ustar 00phil staff 0000000 0000000 // qwebengineregisterprotocolhandlerrequest.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_11_0 -)
namespace QtWebEngineCore
{
%TypeHeaderCode
#include
%End
};
%End
%If (QtWebEngine_5_11_0 -)
class QWebEngineRegisterProtocolHandlerRequest
{
%TypeHeaderCode
#include
%End
public:
QWebEngineRegisterProtocolHandlerRequest();
void accept();
void reject();
QUrl origin() const;
QString scheme() const;
bool operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const;
bool operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const;
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.896285
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebenginehttprequest.sip 0000644 0000765 0000024 00000004225 00000000000 025273 0 ustar 00phil staff 0000000 0000000 // qwebenginehttprequest.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_9_0 -)
class QWebEngineHttpRequest
{
%TypeHeaderCode
#include
%End
public:
enum Method
{
Get,
Post,
};
QWebEngineHttpRequest(const QUrl &url = QUrl(), const QWebEngineHttpRequest::Method &method = QWebEngineHttpRequest::Method::Get);
QWebEngineHttpRequest(const QWebEngineHttpRequest &other);
~QWebEngineHttpRequest();
static QWebEngineHttpRequest postRequest(const QUrl &url, const QMap &postData);
void swap(QWebEngineHttpRequest &other);
bool operator==(const QWebEngineHttpRequest &other) const;
bool operator!=(const QWebEngineHttpRequest &other) const;
QWebEngineHttpRequest::Method method() const;
void setMethod(QWebEngineHttpRequest::Method method);
QUrl url() const;
void setUrl(const QUrl &url);
QByteArray postData() const;
void setPostData(const QByteArray &postData);
bool hasHeader(const QByteArray &headerName) const;
QVector headers() const;
QByteArray header(const QByteArray &headerName) const;
void setHeader(const QByteArray &headerName, const QByteArray &value);
void unsetHeader(const QByteArray &headerName);
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000032 00000000000 011450 x ustar 00 0000000 0000000 26 mtime=1576763382.89682
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebenginenotification.sip 0000644 0000765 0000024 00000003026 00000000000 025367 0 ustar 00phil staff 0000000 0000000 // qwebenginenotification.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_13_0 -)
class QWebEngineNotification : QObject /NoDefaultCtors/
{
%TypeHeaderCode
#include
%End
public:
virtual ~QWebEngineNotification();
bool matches(const QWebEngineNotification *other) const;
QUrl origin() const;
QImage icon() const;
QString title() const;
QString message() const;
QString tag() const;
QString language() const;
Qt::LayoutDirection direction() const;
public slots:
void show() const;
void click() const;
void close() const;
signals:
void closed();
};
%End
././@PaxHeader 0000000 0000000 0000000 00000000032 00000000000 011450 x ustar 00 0000000 0000000 26 mtime=1576763382.89799
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebenginecookiestore.sip 0000644 0000765 0000024 00000010655 00000000000 025235 0 ustar 00phil staff 0000000 0000000 // qwebenginecookiestore.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_6_0 -)
class QWebEngineCookieStore : QObject
{
%TypeHeaderCode
#include
%End
%ConvertToSubClassCode
static struct class_graph {
const char *name;
sipTypeDef **type;
int yes, no;
} graph[] = {
{sipName_QWebEngineCookieStore, &sipType_QWebEngineCookieStore, -1, 1},
#if QT_VERSION >= 0x050d00
{sipName_QWebEngineNotification, &sipType_QWebEngineNotification, -1, 2},
#else
{0, 0, -1, 2},
#endif
{sipName_QWebEngineUrlRequestInterceptor, &sipType_QWebEngineUrlRequestInterceptor, -1, 3},
{sipName_QWebEngineUrlRequestJob, &sipType_QWebEngineUrlRequestJob, -1, 4},
{sipName_QWebEngineUrlSchemeHandler, &sipType_QWebEngineUrlSchemeHandler, -1, -1},
};
int i = 0;
sipType = NULL;
do
{
struct class_graph *cg = &graph[i];
if (cg->name != NULL && sipCpp->inherits(cg->name))
{
sipType = *cg->type;
i = cg->yes;
}
else
i = cg->no;
}
while (i >= 0);
%End
public:
virtual ~QWebEngineCookieStore();
void setCookie(const QNetworkCookie &cookie, const QUrl &origin = QUrl());
void deleteCookie(const QNetworkCookie &cookie, const QUrl &origin = QUrl());
void deleteSessionCookies();
void deleteAllCookies();
void loadAllCookies();
signals:
void cookieAdded(const QNetworkCookie &cookie);
void cookieRemoved(const QNetworkCookie &cookie);
private:
explicit QWebEngineCookieStore(QObject *parent = 0);
public:
%If (QtWebEngine_5_11_0 -)
struct FilterRequest
{
%TypeHeaderCode
#include
%End
QUrl firstPartyUrl;
QUrl origin;
bool thirdParty;
};
%End
%If (QtWebEngine_5_11_0 -)
void setCookieFilter(SIP_PYCALLABLE filterCallback /AllowNone,KeepReference,TypeHint="Callable[[FilterRequest], bool]"/ = 0);
%MethodCode
Py_BEGIN_ALLOW_THREADS
sipCpp->setCookieFilter([a0](const QWebEngineCookieStore::FilterRequest &arg) {
int res_int = 1;
if (a0)
{
SIP_BLOCK_THREADS
PyObject *res;
res = sipCallMethod(NULL, a0, "N",
new QWebEngineCookieStore::FilterRequest(arg),
sipType_QWebEngineCookieStore_FilterRequest, NULL);
if (!res)
{
res_int = -1;
}
else
{
res_int = sipConvertToBool(res);
Py_DECREF(res);
}
if (res_int < 0)
{
pyqt5_qtwebenginecore_err_print();
res_int = 0;
}
SIP_UNBLOCK_THREADS
}
return res_int;
});
Py_END_ALLOW_THREADS
%End
%End
};
%End
%ModuleHeaderCode
// Imports from QtCore.
typedef void (*pyqt5_qtwebenginecore_err_print_t)();
extern pyqt5_qtwebenginecore_err_print_t pyqt5_qtwebenginecore_err_print;
%End
%ModuleCode
// Imports from QtCore.
pyqt5_qtwebenginecore_err_print_t pyqt5_qtwebenginecore_err_print;
%End
%PostInitialisationCode
// Imports from QtCore.
pyqt5_qtwebenginecore_err_print = (pyqt5_qtwebenginecore_err_print_t)sipImportSymbol("pyqt5_err_print");
Q_ASSERT(pyqt5_qtwebenginecore_err_print);
%End
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 011451 x ustar 00 0000000 0000000 27 mtime=1576763382.898512
PyQtWebEngine-5.14.0/sip/QtWebEngineCore/qwebengineurlschemehandler.sip 0000644 0000765 0000024 00000002552 00000000000 026231 0 ustar 00phil staff 0000000 0000000 // qwebengineurlschemehandler.sip generated by MetaSIP
//
// This file is part of the QtWebEngineCore Python extension module.
//
// Copyright (c) 2019 Riverbank Computing Limited
//
// This file is part of PyQtWebEngine.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtWebEngine_5_6_0 -)
class QWebEngineUrlSchemeHandler : QObject
{
%TypeHeaderCode
#include
%End
public:
QWebEngineUrlSchemeHandler(QObject *parent /TransferThis/ = 0);
virtual ~QWebEngineUrlSchemeHandler();
virtual void requestStarted(QWebEngineUrlRequestJob *) = 0;
private:
QWebEngineUrlSchemeHandler(const QWebEngineUrlSchemeHandler &);
};
%End