Switch to PyQt 5.15's (slightly broken) built-in stubs

This commit is contained in:
Damien Elmes 2020-06-02 17:52:18 +10:00
parent 14a5ab353e
commit 2a52314d58
31 changed files with 2 additions and 42564 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,514 +0,0 @@
# The PEP 484 type hints stub file for the QtDBus module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QDBusAbstractAdaptor(QtCore.QObject):
def __init__(self, parent: QtCore.QObject) -> None: ...
def autoRelaySignals(self) -> bool: ...
def setAutoRelaySignals(self, enable: bool) -> None: ...
class QDBusAbstractInterface(QtCore.QObject):
def __init__(self, service: str, path: str, interface: str, connection: 'QDBusConnection', parent: QtCore.QObject) -> None: ...
def disconnectNotify(self, signal: QtCore.QMetaMethod) -> None: ...
def connectNotify(self, signal: QtCore.QMetaMethod) -> None: ...
def asyncCallWithArgumentList(self, method: str, args: typing.Iterable[typing.Any]) -> 'QDBusPendingCall': ...
def asyncCall(self, method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusPendingCall': ...
@typing.overload
def callWithCallback(self, method: str, args: typing.Iterable[typing.Any], returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT) -> bool: ...
@typing.overload
def callWithCallback(self, method: str, args: typing.Iterable[typing.Any], slot: PYQT_SLOT) -> bool: ...
def callWithArgumentList(self, mode: 'QDBus.CallMode', method: str, args: typing.Iterable[typing.Any]) -> 'QDBusMessage': ...
@typing.overload
def call(self, method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusMessage': ...
@typing.overload
def call(self, mode: 'QDBus.CallMode', method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusMessage': ...
def timeout(self) -> int: ...
def setTimeout(self, timeout: int) -> None: ...
def lastError(self) -> 'QDBusError': ...
def interface(self) -> str: ...
def path(self) -> str: ...
def service(self) -> str: ...
def connection(self) -> 'QDBusConnection': ...
def isValid(self) -> bool: ...
class QDBusArgument(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusArgument') -> None: ...
@typing.overload
def __init__(self, arg: typing.Any, id: int = ...) -> None: ...
def swap(self, other: 'QDBusArgument') -> None: ...
def endMapEntry(self) -> None: ...
def beginMapEntry(self) -> None: ...
def endMap(self) -> None: ...
def beginMap(self, kid: int, vid: int) -> None: ...
def endArray(self) -> None: ...
def beginArray(self, id: int) -> None: ...
def endStructure(self) -> None: ...
def beginStructure(self) -> None: ...
def add(self, arg: typing.Any, id: int = ...) -> None: ...
class QDBus(sip.simplewrapper):
class CallMode(int): ...
NoBlock = ... # type: 'QDBus.CallMode'
Block = ... # type: 'QDBus.CallMode'
BlockWithGui = ... # type: 'QDBus.CallMode'
AutoDetect = ... # type: 'QDBus.CallMode'
class QDBusConnection(sip.simplewrapper):
class ConnectionCapability(int): ...
UnixFileDescriptorPassing = ... # type: 'QDBusConnection.ConnectionCapability'
class UnregisterMode(int): ...
UnregisterNode = ... # type: 'QDBusConnection.UnregisterMode'
UnregisterTree = ... # type: 'QDBusConnection.UnregisterMode'
class RegisterOption(int): ...
ExportAdaptors = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableContents = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableContents = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportAllProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportAllInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportAllContents = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSignal = ... # type: 'QDBusConnection.RegisterOption'
ExportChildObjects = ... # type: 'QDBusConnection.RegisterOption'
class BusType(int): ...
SessionBus = ... # type: 'QDBusConnection.BusType'
SystemBus = ... # type: 'QDBusConnection.BusType'
ActivationBus = ... # type: 'QDBusConnection.BusType'
class RegisterOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusConnection.RegisterOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusConnection.RegisterOptions': ...
def __int__(self) -> int: ...
class ConnectionCapabilities(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusConnection.ConnectionCapabilities', 'QDBusConnection.ConnectionCapability']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusConnection.ConnectionCapabilities') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusConnection.ConnectionCapabilities': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self, name: str) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusConnection') -> None: ...
def swap(self, other: 'QDBusConnection') -> None: ...
@staticmethod
def sender() -> 'QDBusConnection': ...
@staticmethod
def systemBus() -> 'QDBusConnection': ...
@staticmethod
def sessionBus() -> 'QDBusConnection': ...
@staticmethod
def localMachineId() -> QtCore.QByteArray: ...
@staticmethod
def disconnectFromPeer(name: str) -> None: ...
@staticmethod
def disconnectFromBus(name: str) -> None: ...
@staticmethod
def connectToPeer(address: str, name: str) -> 'QDBusConnection': ...
@typing.overload
@staticmethod
def connectToBus(type: 'QDBusConnection.BusType', name: str) -> 'QDBusConnection': ...
@typing.overload
@staticmethod
def connectToBus(address: str, name: str) -> 'QDBusConnection': ...
def interface(self) -> 'QDBusConnectionInterface': ...
def unregisterService(self, serviceName: str) -> bool: ...
def registerService(self, serviceName: str) -> bool: ...
def objectRegisteredAt(self, path: str) -> QtCore.QObject: ...
def unregisterObject(self, path: str, mode: 'QDBusConnection.UnregisterMode' = ...) -> None: ...
@typing.overload
def registerObject(self, path: str, object: QtCore.QObject, options: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption'] = ...) -> bool: ...
@typing.overload
def registerObject(self, path: str, interface: str, object: QtCore.QObject, options: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption'] = ...) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, argumentMatch: typing.Iterable[str], signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, argumentMatch: typing.Iterable[str], signature: str, slot: PYQT_SLOT) -> bool: ...
def asyncCall(self, message: 'QDBusMessage', timeout: int = ...) -> 'QDBusPendingCall': ...
def call(self, message: 'QDBusMessage', mode: QDBus.CallMode = ..., timeout: int = ...) -> 'QDBusMessage': ...
def callWithCallback(self, message: 'QDBusMessage', returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT, timeout: int = ...) -> bool: ...
def send(self, message: 'QDBusMessage') -> bool: ...
def connectionCapabilities(self) -> 'QDBusConnection.ConnectionCapabilities': ...
def name(self) -> str: ...
def lastError(self) -> 'QDBusError': ...
def baseService(self) -> str: ...
def isConnected(self) -> bool: ...
class QDBusConnectionInterface(QDBusAbstractInterface):
class RegisterServiceReply(int): ...
ServiceNotRegistered = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
ServiceRegistered = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
ServiceQueued = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
class ServiceReplacementOptions(int): ...
DontAllowReplacement = ... # type: 'QDBusConnectionInterface.ServiceReplacementOptions'
AllowReplacement = ... # type: 'QDBusConnectionInterface.ServiceReplacementOptions'
class ServiceQueueOptions(int): ...
DontQueueService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
QueueService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
ReplaceExistingService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
def disconnectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
def callWithCallbackFailed(self, error: 'QDBusError', call: 'QDBusMessage') -> None: ...
def serviceOwnerChanged(self, name: str, oldOwner: str, newOwner: str) -> None: ...
def serviceUnregistered(self, service: str) -> None: ...
def serviceRegistered(self, service: str) -> None: ...
def startService(self, name: str) -> 'QDBusReply': ...
def serviceUid(self, serviceName: str) -> 'QDBusReply': ...
def servicePid(self, serviceName: str) -> 'QDBusReply': ...
def registerService(self, serviceName: str, qoption: 'QDBusConnectionInterface.ServiceQueueOptions' = ..., roption: 'QDBusConnectionInterface.ServiceReplacementOptions' = ...) -> 'QDBusReply': ...
def unregisterService(self, serviceName: str) -> 'QDBusReply': ...
def serviceOwner(self, name: str) -> 'QDBusReply': ...
def isServiceRegistered(self, serviceName: str) -> 'QDBusReply': ...
def registeredServiceNames(self) -> 'QDBusReply': ...
class QDBusError(sip.simplewrapper):
class ErrorType(int): ...
NoError = ... # type: 'QDBusError.ErrorType'
Other = ... # type: 'QDBusError.ErrorType'
Failed = ... # type: 'QDBusError.ErrorType'
NoMemory = ... # type: 'QDBusError.ErrorType'
ServiceUnknown = ... # type: 'QDBusError.ErrorType'
NoReply = ... # type: 'QDBusError.ErrorType'
BadAddress = ... # type: 'QDBusError.ErrorType'
NotSupported = ... # type: 'QDBusError.ErrorType'
LimitsExceeded = ... # type: 'QDBusError.ErrorType'
AccessDenied = ... # type: 'QDBusError.ErrorType'
NoServer = ... # type: 'QDBusError.ErrorType'
Timeout = ... # type: 'QDBusError.ErrorType'
NoNetwork = ... # type: 'QDBusError.ErrorType'
AddressInUse = ... # type: 'QDBusError.ErrorType'
Disconnected = ... # type: 'QDBusError.ErrorType'
InvalidArgs = ... # type: 'QDBusError.ErrorType'
UnknownMethod = ... # type: 'QDBusError.ErrorType'
TimedOut = ... # type: 'QDBusError.ErrorType'
InvalidSignature = ... # type: 'QDBusError.ErrorType'
UnknownInterface = ... # type: 'QDBusError.ErrorType'
InternalError = ... # type: 'QDBusError.ErrorType'
UnknownObject = ... # type: 'QDBusError.ErrorType'
InvalidService = ... # type: 'QDBusError.ErrorType'
InvalidObjectPath = ... # type: 'QDBusError.ErrorType'
InvalidInterface = ... # type: 'QDBusError.ErrorType'
InvalidMember = ... # type: 'QDBusError.ErrorType'
UnknownProperty = ... # type: 'QDBusError.ErrorType'
PropertyReadOnly = ... # type: 'QDBusError.ErrorType'
def __init__(self, other: 'QDBusError') -> None: ...
def swap(self, other: 'QDBusError') -> None: ...
@staticmethod
def errorString(error: 'QDBusError.ErrorType') -> str: ...
def isValid(self) -> bool: ...
def message(self) -> str: ...
def name(self) -> str: ...
def type(self) -> 'QDBusError.ErrorType': ...
class QDBusObjectPath(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, objectPath: str) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusObjectPath') -> None: ...
def swap(self, other: 'QDBusObjectPath') -> None: ...
def __hash__(self) -> int: ...
def setPath(self, objectPath: str) -> None: ...
def path(self) -> str: ...
class QDBusSignature(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, dBusSignature: str) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusSignature') -> None: ...
def swap(self, other: 'QDBusSignature') -> None: ...
def __hash__(self) -> int: ...
def setSignature(self, dBusSignature: str) -> None: ...
def signature(self) -> str: ...
class QDBusVariant(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, dBusVariant: typing.Any) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusVariant') -> None: ...
def swap(self, other: 'QDBusVariant') -> None: ...
def setVariant(self, dBusVariant: typing.Any) -> None: ...
def variant(self) -> typing.Any: ...
class QDBusInterface(QDBusAbstractInterface):
def __init__(self, service: str, path: str, interface: str = ..., connection: QDBusConnection = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
class QDBusMessage(sip.simplewrapper):
class MessageType(int): ...
InvalidMessage = ... # type: 'QDBusMessage.MessageType'
MethodCallMessage = ... # type: 'QDBusMessage.MessageType'
ReplyMessage = ... # type: 'QDBusMessage.MessageType'
ErrorMessage = ... # type: 'QDBusMessage.MessageType'
SignalMessage = ... # type: 'QDBusMessage.MessageType'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusMessage') -> None: ...
def isInteractiveAuthorizationAllowed(self) -> bool: ...
def setInteractiveAuthorizationAllowed(self, enable: bool) -> None: ...
@staticmethod
def createTargetedSignal(service: str, path: str, interface: str, name: str) -> 'QDBusMessage': ...
def swap(self, other: 'QDBusMessage') -> None: ...
def arguments(self) -> typing.List[typing.Any]: ...
def setArguments(self, arguments: typing.Iterable[typing.Any]) -> None: ...
def autoStartService(self) -> bool: ...
def setAutoStartService(self, enable: bool) -> None: ...
def isDelayedReply(self) -> bool: ...
def setDelayedReply(self, enable: bool) -> None: ...
def isReplyRequired(self) -> bool: ...
def signature(self) -> str: ...
def type(self) -> 'QDBusMessage.MessageType': ...
def errorMessage(self) -> str: ...
def errorName(self) -> str: ...
def member(self) -> str: ...
def interface(self) -> str: ...
def path(self) -> str: ...
def service(self) -> str: ...
@typing.overload
def createErrorReply(self, name: str, msg: str) -> 'QDBusMessage': ...
@typing.overload
def createErrorReply(self, error: QDBusError) -> 'QDBusMessage': ...
@typing.overload
def createErrorReply(self, type: QDBusError.ErrorType, msg: str) -> 'QDBusMessage': ...
@typing.overload
def createReply(self, arguments: typing.Iterable[typing.Any] = ...) -> 'QDBusMessage': ...
@typing.overload
def createReply(self, argument: typing.Any) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(name: str, msg: str) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(error: QDBusError) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(type: QDBusError.ErrorType, msg: str) -> 'QDBusMessage': ...
@staticmethod
def createMethodCall(service: str, path: str, interface: str, method: str) -> 'QDBusMessage': ...
@staticmethod
def createSignal(path: str, interface: str, name: str) -> 'QDBusMessage': ...
class QDBusPendingCall(sip.simplewrapper):
def __init__(self, other: 'QDBusPendingCall') -> None: ...
def swap(self, other: 'QDBusPendingCall') -> None: ...
@staticmethod
def fromCompletedCall(message: QDBusMessage) -> 'QDBusPendingCall': ...
@staticmethod
def fromError(error: QDBusError) -> 'QDBusPendingCall': ...
class QDBusPendingCallWatcher(QtCore.QObject, QDBusPendingCall):
def __init__(self, call: QDBusPendingCall, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def finished(self, watcher: typing.Optional['QDBusPendingCallWatcher'] = ...) -> None: ...
def waitForFinished(self) -> None: ...
def isFinished(self) -> bool: ...
class QDBusServiceWatcher(QtCore.QObject):
class WatchModeFlag(int): ...
WatchForRegistration = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
WatchForUnregistration = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
WatchForOwnerChange = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
class WatchMode(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusServiceWatcher.WatchMode') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusServiceWatcher.WatchMode': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, service: str, connection: QDBusConnection, watchMode: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag'] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def serviceOwnerChanged(self, service: str, oldOwner: str, newOwner: str) -> None: ...
def serviceUnregistered(self, service: str) -> None: ...
def serviceRegistered(self, service: str) -> None: ...
def setConnection(self, connection: QDBusConnection) -> None: ...
def connection(self) -> QDBusConnection: ...
def setWatchMode(self, mode: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ...
def watchMode(self) -> 'QDBusServiceWatcher.WatchMode': ...
def removeWatchedService(self, service: str) -> bool: ...
def addWatchedService(self, newService: str) -> None: ...
def setWatchedServices(self, services: typing.Iterable[str]) -> None: ...
def watchedServices(self) -> typing.List[str]: ...
class QDBusUnixFileDescriptor(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, fileDescriptor: int) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusUnixFileDescriptor') -> None: ...
def swap(self, other: 'QDBusUnixFileDescriptor') -> None: ...
@staticmethod
def isSupported() -> bool: ...
def setFileDescriptor(self, fileDescriptor: int) -> None: ...
def fileDescriptor(self) -> int: ...
def isValid(self) -> bool: ...
class QDBusReply(sip.simplewrapper):
@typing.overload
def __init__(self, reply: QDBusMessage) -> None: ...
@typing.overload
def __init__(self, call: QDBusPendingCall) -> None: ...
@typing.overload
def __init__(self, error: QDBusError) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusReply') -> None: ...
def value(self, type: typing.Any = ...) -> typing.Any: ...
def isValid(self) -> bool: ...
def error(self) -> QDBusError: ...
class QDBusPendingReply(QDBusPendingCall):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusPendingReply') -> None: ...
@typing.overload
def __init__(self, call: QDBusPendingCall) -> None: ...
@typing.overload
def __init__(self, reply: QDBusMessage) -> None: ...
def value(self, type: typing.Any = ...) -> typing.Any: ...
def waitForFinished(self) -> None: ...
def reply(self) -> QDBusMessage: ...
def isValid(self) -> bool: ...
def isFinished(self) -> bool: ...
def isError(self) -> bool: ...
def error(self) -> QDBusError: ...
def argumentAt(self, index: int) -> typing.Any: ...

View File

@ -1,481 +0,0 @@
# The PEP 484 type hints stub file for the QtDesigner module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QDesignerActionEditorInterface(QtWidgets.QWidget):
def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def setFormWindow(self, formWindow: 'QDesignerFormWindowInterface') -> None: ...
def unmanageAction(self, action: QtWidgets.QAction) -> None: ...
def manageAction(self, action: QtWidgets.QAction) -> None: ...
def core(self) -> 'QDesignerFormEditorInterface': ...
class QAbstractFormBuilder(sip.simplewrapper):
def __init__(self) -> None: ...
def errorString(self) -> str: ...
def workingDirectory(self) -> QtCore.QDir: ...
def setWorkingDirectory(self, directory: QtCore.QDir) -> None: ...
def save(self, dev: QtCore.QIODevice, widget: QtWidgets.QWidget) -> None: ...
def load(self, device: QtCore.QIODevice, parent: typing.Optional[QtWidgets.QWidget] = ...) -> QtWidgets.QWidget: ...
class QDesignerFormEditorInterface(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def setActionEditor(self, actionEditor: QDesignerActionEditorInterface) -> None: ...
def setObjectInspector(self, objectInspector: 'QDesignerObjectInspectorInterface') -> None: ...
def setPropertyEditor(self, propertyEditor: 'QDesignerPropertyEditorInterface') -> None: ...
def setWidgetBox(self, widgetBox: 'QDesignerWidgetBoxInterface') -> None: ...
def actionEditor(self) -> QDesignerActionEditorInterface: ...
def formWindowManager(self) -> 'QDesignerFormWindowManagerInterface': ...
def objectInspector(self) -> 'QDesignerObjectInspectorInterface': ...
def propertyEditor(self) -> 'QDesignerPropertyEditorInterface': ...
def widgetBox(self) -> 'QDesignerWidgetBoxInterface': ...
def topLevel(self) -> QtWidgets.QWidget: ...
def extensionManager(self) -> 'QExtensionManager': ...
class QDesignerFormWindowInterface(QtWidgets.QWidget):
class FeatureFlag(int): ...
EditFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag'
GridFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag'
TabOrderFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag'
DefaultFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag'
class Feature(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDesignerFormWindowInterface.Feature') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDesignerFormWindowInterface.Feature': ...
def __int__(self) -> int: ...
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def activateResourceFilePaths(self, paths: typing.Iterable[str]) -> typing.Tuple[int, str]: ...
def formContainer(self) -> QtWidgets.QWidget: ...
def activeResourceFilePaths(self) -> typing.List[str]: ...
def checkContents(self) -> typing.List[str]: ...
def objectRemoved(self, o: QtCore.QObject) -> None: ...
def widgetRemoved(self, w: QtWidgets.QWidget) -> None: ...
def changed(self) -> None: ...
def activated(self, widget: QtWidgets.QWidget) -> None: ...
def aboutToUnmanageWidget(self, widget: QtWidgets.QWidget) -> None: ...
def widgetUnmanaged(self, widget: QtWidgets.QWidget) -> None: ...
def widgetManaged(self, widget: QtWidgets.QWidget) -> None: ...
def resourceFilesChanged(self) -> None: ...
def geometryChanged(self) -> None: ...
def selectionChanged(self) -> None: ...
def featureChanged(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ...
def fileNameChanged(self, fileName: str) -> None: ...
def mainContainerChanged(self, mainContainer: QtWidgets.QWidget) -> None: ...
def setFileName(self, fileName: str) -> None: ...
def setGrid(self, grid: QtCore.QPoint) -> None: ...
def selectWidget(self, widget: QtWidgets.QWidget, select: bool = ...) -> None: ...
def clearSelection(self, update: bool = ...) -> None: ...
def setDirty(self, dirty: bool) -> None: ...
def setFeatures(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ...
def unmanageWidget(self, widget: QtWidgets.QWidget) -> None: ...
def manageWidget(self, widget: QtWidgets.QWidget) -> None: ...
def removeResourceFile(self, path: str) -> None: ...
def addResourceFile(self, path: str) -> None: ...
def resourceFiles(self) -> typing.List[str]: ...
def emitSelectionChanged(self) -> None: ...
@typing.overload
@staticmethod
def findFormWindow(w: QtWidgets.QWidget) -> 'QDesignerFormWindowInterface': ...
@typing.overload
@staticmethod
def findFormWindow(obj: QtCore.QObject) -> 'QDesignerFormWindowInterface': ...
def isDirty(self) -> bool: ...
def isManaged(self, widget: QtWidgets.QWidget) -> bool: ...
def setMainContainer(self, mainContainer: QtWidgets.QWidget) -> None: ...
def mainContainer(self) -> QtWidgets.QWidget: ...
def grid(self) -> QtCore.QPoint: ...
def cursor(self) -> 'QDesignerFormWindowCursorInterface': ...
def core(self) -> QDesignerFormEditorInterface: ...
def setIncludeHints(self, includeHints: typing.Iterable[str]) -> None: ...
def includeHints(self) -> typing.List[str]: ...
def setExportMacro(self, exportMacro: str) -> None: ...
def exportMacro(self) -> str: ...
def setPixmapFunction(self, pixmapFunction: str) -> None: ...
def pixmapFunction(self) -> str: ...
def setLayoutFunction(self, margin: str, spacing: str) -> None: ...
def layoutFunction(self) -> typing.Tuple[str, str]: ...
def setLayoutDefault(self, margin: int, spacing: int) -> None: ...
def layoutDefault(self) -> typing.Tuple[int, int]: ...
def setComment(self, comment: str) -> None: ...
def comment(self) -> str: ...
def setAuthor(self, author: str) -> None: ...
def author(self) -> str: ...
def hasFeature(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> bool: ...
def features(self) -> 'QDesignerFormWindowInterface.Feature': ...
@typing.overload
def setContents(self, dev: QtCore.QIODevice, errorMessage: typing.Optional[str] = ...) -> bool: ...
@typing.overload
def setContents(self, contents: str) -> bool: ...
def contents(self) -> str: ...
def absoluteDir(self) -> QtCore.QDir: ...
def fileName(self) -> str: ...
class QDesignerFormWindowCursorInterface(sip.simplewrapper):
class MoveMode(int): ...
MoveAnchor = ... # type: 'QDesignerFormWindowCursorInterface.MoveMode'
KeepAnchor = ... # type: 'QDesignerFormWindowCursorInterface.MoveMode'
class MoveOperation(int): ...
NoMove = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
Start = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
End = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
Next = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
Prev = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
Left = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
Right = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
Up = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
Down = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDesignerFormWindowCursorInterface') -> None: ...
def isWidgetSelected(self, widget: QtWidgets.QWidget) -> bool: ...
def resetWidgetProperty(self, widget: QtWidgets.QWidget, name: str) -> None: ...
def setWidgetProperty(self, widget: QtWidgets.QWidget, name: str, value: typing.Any) -> None: ...
def setProperty(self, name: str, value: typing.Any) -> None: ...
def selectedWidget(self, index: int) -> QtWidgets.QWidget: ...
def selectedWidgetCount(self) -> int: ...
def hasSelection(self) -> bool: ...
def widget(self, index: int) -> QtWidgets.QWidget: ...
def widgetCount(self) -> int: ...
def current(self) -> QtWidgets.QWidget: ...
def setPosition(self, pos: int, mode: 'QDesignerFormWindowCursorInterface.MoveMode' = ...) -> None: ...
def position(self) -> int: ...
def movePosition(self, op: 'QDesignerFormWindowCursorInterface.MoveOperation', mode: 'QDesignerFormWindowCursorInterface.MoveMode' = ...) -> bool: ...
def formWindow(self) -> QDesignerFormWindowInterface: ...
class QDesignerFormWindowManagerInterface(QtCore.QObject):
class ActionGroup(int): ...
StyledPreviewActionGroup = ... # type: 'QDesignerFormWindowManagerInterface.ActionGroup'
class Action(int): ...
CutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
CopyAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
PasteAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
DeleteAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
SelectAllAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
LowerAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
RaiseAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
UndoAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
RedoAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
HorizontalLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
VerticalLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
SplitHorizontalAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
SplitVerticalAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
GridLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
FormLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
BreakLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
AdjustSizeAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
SimplifyLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
DefaultPreviewAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
FormWindowSettingsDialogAction = ... # type: 'QDesignerFormWindowManagerInterface.Action'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def showPluginDialog(self) -> None: ...
def closeAllPreviews(self) -> None: ...
def showPreview(self) -> None: ...
def actionGroup(self, actionGroup: 'QDesignerFormWindowManagerInterface.ActionGroup') -> QtWidgets.QActionGroup: ...
def action(self, action: 'QDesignerFormWindowManagerInterface.Action') -> QtWidgets.QAction: ...
def setActiveFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ...
def removeFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ...
def addFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ...
def formWindowSettingsChanged(self, fw: QDesignerFormWindowInterface) -> None: ...
def activeFormWindowChanged(self, formWindow: QDesignerFormWindowInterface) -> None: ...
def formWindowRemoved(self, formWindow: QDesignerFormWindowInterface) -> None: ...
def formWindowAdded(self, formWindow: QDesignerFormWindowInterface) -> None: ...
def core(self) -> QDesignerFormEditorInterface: ...
def createFormWindow(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> QDesignerFormWindowInterface: ...
def formWindow(self, index: int) -> QDesignerFormWindowInterface: ...
def formWindowCount(self) -> int: ...
def activeFormWindow(self) -> QDesignerFormWindowInterface: ...
def actionSimplifyLayout(self) -> QtWidgets.QAction: ...
def actionFormLayout(self) -> QtWidgets.QAction: ...
class QDesignerObjectInspectorInterface(QtWidgets.QWidget):
def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def setFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ...
def core(self) -> QDesignerFormEditorInterface: ...
class QDesignerPropertyEditorInterface(QtWidgets.QWidget):
def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def setReadOnly(self, readOnly: bool) -> None: ...
def setPropertyValue(self, name: str, value: typing.Any, changed: bool = ...) -> None: ...
def setObject(self, object: QtCore.QObject) -> None: ...
def propertyChanged(self, name: str, value: typing.Any) -> None: ...
def currentPropertyName(self) -> str: ...
def object(self) -> QtCore.QObject: ...
def isReadOnly(self) -> bool: ...
def core(self) -> QDesignerFormEditorInterface: ...
class QDesignerWidgetBoxInterface(QtWidgets.QWidget):
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def save(self) -> bool: ...
def load(self) -> bool: ...
def fileName(self) -> str: ...
def setFileName(self, file_name: str) -> None: ...
class QDesignerContainerExtension(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDesignerContainerExtension') -> None: ...
def canRemove(self, index: int) -> bool: ...
def canAddWidget(self) -> bool: ...
def remove(self, index: int) -> None: ...
def insertWidget(self, index: int, widget: QtWidgets.QWidget) -> None: ...
def addWidget(self, widget: QtWidgets.QWidget) -> None: ...
def setCurrentIndex(self, index: int) -> None: ...
def currentIndex(self) -> int: ...
def widget(self, index: int) -> QtWidgets.QWidget: ...
def __len__(self) -> int: ...
def count(self) -> int: ...
class QDesignerCustomWidgetInterface(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDesignerCustomWidgetInterface') -> None: ...
def codeTemplate(self) -> str: ...
def domXml(self) -> str: ...
def initialize(self, core: QDesignerFormEditorInterface) -> None: ...
def isInitialized(self) -> bool: ...
def createWidget(self, parent: QtWidgets.QWidget) -> QtWidgets.QWidget: ...
def isContainer(self) -> bool: ...
def icon(self) -> QtGui.QIcon: ...
def includeFile(self) -> str: ...
def whatsThis(self) -> str: ...
def toolTip(self) -> str: ...
def group(self) -> str: ...
def name(self) -> str: ...
class QDesignerCustomWidgetCollectionInterface(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDesignerCustomWidgetCollectionInterface') -> None: ...
def customWidgets(self) -> typing.List[QDesignerCustomWidgetInterface]: ...
class QAbstractExtensionFactory(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QAbstractExtensionFactory') -> None: ...
def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ...
class QExtensionFactory(QtCore.QObject, QAbstractExtensionFactory):
def __init__(self, parent: typing.Optional['QExtensionManager'] = ...) -> None: ...
def createExtension(self, object: QtCore.QObject, iid: str, parent: QtCore.QObject) -> QtCore.QObject: ...
def extensionManager(self) -> 'QExtensionManager': ...
def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ...
class QAbstractExtensionManager(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QAbstractExtensionManager') -> None: ...
def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ...
def unregisterExtensions(self, factory: QAbstractExtensionFactory, iid: str) -> None: ...
def registerExtensions(self, factory: QAbstractExtensionFactory, iid: str) -> None: ...
class QFormBuilder(QAbstractFormBuilder):
def __init__(self) -> None: ...
def customWidgets(self) -> typing.List[QDesignerCustomWidgetInterface]: ...
def setPluginPath(self, pluginPaths: typing.Iterable[str]) -> None: ...
def addPluginPath(self, pluginPath: str) -> None: ...
def clearPluginPaths(self) -> None: ...
def pluginPaths(self) -> typing.List[str]: ...
class QDesignerMemberSheetExtension(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDesignerMemberSheetExtension') -> None: ...
def parameterNames(self, index: int) -> typing.List[QtCore.QByteArray]: ...
def parameterTypes(self, index: int) -> typing.List[QtCore.QByteArray]: ...
def signature(self, index: int) -> str: ...
def declaredInClass(self, index: int) -> str: ...
def inheritedFromWidget(self, index: int) -> bool: ...
def isSlot(self, index: int) -> bool: ...
def isSignal(self, index: int) -> bool: ...
def setVisible(self, index: int, b: bool) -> None: ...
def isVisible(self, index: int) -> bool: ...
def setMemberGroup(self, index: int, group: str) -> None: ...
def memberGroup(self, index: int) -> str: ...
def memberName(self, index: int) -> str: ...
def indexOf(self, name: str) -> int: ...
def __len__(self) -> int: ...
def count(self) -> int: ...
class QDesignerPropertySheetExtension(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDesignerPropertySheetExtension') -> None: ...
def isEnabled(self, index: int) -> bool: ...
def setChanged(self, index: int, changed: bool) -> None: ...
def isChanged(self, index: int) -> bool: ...
def setProperty(self, index: int, value: typing.Any) -> None: ...
def property(self, index: int) -> typing.Any: ...
def setAttribute(self, index: int, b: bool) -> None: ...
def isAttribute(self, index: int) -> bool: ...
def setVisible(self, index: int, b: bool) -> None: ...
def isVisible(self, index: int) -> bool: ...
def reset(self, index: int) -> bool: ...
def hasReset(self, index: int) -> bool: ...
def setPropertyGroup(self, index: int, group: str) -> None: ...
def propertyGroup(self, index: int) -> str: ...
def propertyName(self, index: int) -> str: ...
def indexOf(self, name: str) -> int: ...
def __len__(self) -> int: ...
def count(self) -> int: ...
class QExtensionManager(QtCore.QObject, QAbstractExtensionManager):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ...
def unregisterExtensions(self, factory: QAbstractExtensionFactory, iid: str = ...) -> None: ...
def registerExtensions(self, factory: QAbstractExtensionFactory, iid: str = ...) -> None: ...
class QDesignerTaskMenuExtension(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDesignerTaskMenuExtension') -> None: ...
def preferredEditAction(self) -> QtWidgets.QAction: ...
def taskActions(self) -> typing.List[QtWidgets.QAction]: ...
class QPyDesignerContainerExtension(QtCore.QObject, QDesignerContainerExtension):
def __init__(self, parent: QtCore.QObject) -> None: ...
class QPyDesignerCustomWidgetCollectionPlugin(QtCore.QObject, QDesignerCustomWidgetCollectionInterface):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
class QPyDesignerCustomWidgetPlugin(QtCore.QObject, QDesignerCustomWidgetInterface):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
class QPyDesignerTaskMenuExtension(QtCore.QObject, QDesignerTaskMenuExtension):
def __init__(self, parent: QtCore.QObject) -> None: ...
class QPyDesignerPropertySheetExtension(QtCore.QObject, QDesignerPropertySheetExtension):
def __init__(self, parent: QtCore.QObject) -> None: ...
class QPyDesignerMemberSheetExtension(QtCore.QObject, QDesignerMemberSheetExtension):
def __init__(self, parent: QtCore.QObject) -> None: ...

File diff suppressed because it is too large Load Diff

View File

@ -1,273 +0,0 @@
# The PEP 484 type hints stub file for the QtHelp module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QCompressedHelpInfo(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QCompressedHelpInfo') -> None: ...
@staticmethod
def fromCompressedHelpFile(documentationFileName: str) -> 'QCompressedHelpInfo': ...
def version(self) -> QtCore.QVersionNumber: ...
def component(self) -> str: ...
def namespaceName(self) -> str: ...
def swap(self, other: 'QCompressedHelpInfo') -> None: ...
class QHelpContentItem(sip.simplewrapper):
def childPosition(self, child: 'QHelpContentItem') -> int: ...
def parent(self) -> 'QHelpContentItem': ...
def row(self) -> int: ...
def url(self) -> QtCore.QUrl: ...
def title(self) -> str: ...
def childCount(self) -> int: ...
def child(self, row: int) -> 'QHelpContentItem': ...
class QHelpContentModel(QtCore.QAbstractItemModel):
def contentsCreated(self) -> None: ...
def contentsCreationStarted(self) -> None: ...
def isCreatingContents(self) -> bool: ...
def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
def contentItemAt(self, index: QtCore.QModelIndex) -> QHelpContentItem: ...
def createContents(self, customFilterName: str) -> None: ...
class QHelpContentWidget(QtWidgets.QTreeView):
def linkActivated(self, link: QtCore.QUrl) -> None: ...
def indexOf(self, link: QtCore.QUrl) -> QtCore.QModelIndex: ...
class QHelpEngineCore(QtCore.QObject):
def __init__(self, collectionFile: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def usesFilterEngine(self) -> bool: ...
def setUsesFilterEngine(self, uses: bool) -> None: ...
def filterEngine(self) -> 'QHelpFilterEngine': ...
def readersAboutToBeInvalidated(self) -> None: ...
def warning(self, msg: str) -> None: ...
def currentFilterChanged(self, newFilter: str) -> None: ...
def setupFinished(self) -> None: ...
def setupStarted(self) -> None: ...
def setAutoSaveFilter(self, save: bool) -> None: ...
def autoSaveFilter(self) -> bool: ...
def error(self) -> str: ...
@staticmethod
def metaData(documentationFileName: str, name: str) -> typing.Any: ...
def setCustomValue(self, key: str, value: typing.Any) -> bool: ...
def customValue(self, key: str, defaultValue: typing.Any = ...) -> typing.Any: ...
def removeCustomValue(self, key: str) -> bool: ...
def linksForKeyword(self, keyword: str) -> typing.Dict[str, QtCore.QUrl]: ...
def linksForIdentifier(self, id: str) -> typing.Dict[str, QtCore.QUrl]: ...
def fileData(self, url: QtCore.QUrl) -> QtCore.QByteArray: ...
def findFile(self, url: QtCore.QUrl) -> QtCore.QUrl: ...
@typing.overload
def files(self, namespaceName: str, filterAttributes: typing.Iterable[str], extensionFilter: str = ...) -> typing.List[QtCore.QUrl]: ...
@typing.overload
def files(self, namespaceName: str, filterName: str, extensionFilter: str = ...) -> typing.List[QtCore.QUrl]: ...
def filterAttributeSets(self, namespaceName: str) -> typing.List[typing.List[str]]: ...
def registeredDocumentations(self) -> typing.List[str]: ...
def setCurrentFilter(self, filterName: str) -> None: ...
def currentFilter(self) -> str: ...
@typing.overload
def filterAttributes(self) -> typing.List[str]: ...
@typing.overload
def filterAttributes(self, filterName: str) -> typing.List[str]: ...
def addCustomFilter(self, filterName: str, attributes: typing.Iterable[str]) -> bool: ...
def removeCustomFilter(self, filterName: str) -> bool: ...
def customFilters(self) -> typing.List[str]: ...
def documentationFileName(self, namespaceName: str) -> str: ...
def unregisterDocumentation(self, namespaceName: str) -> bool: ...
def registerDocumentation(self, documentationFileName: str) -> bool: ...
@staticmethod
def namespaceName(documentationFileName: str) -> str: ...
def copyCollectionFile(self, fileName: str) -> bool: ...
def setCollectionFile(self, fileName: str) -> None: ...
def collectionFile(self) -> str: ...
def setupData(self) -> bool: ...
class QHelpEngine(QHelpEngineCore):
def __init__(self, collectionFile: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def searchEngine(self) -> 'QHelpSearchEngine': ...
def indexWidget(self) -> 'QHelpIndexWidget': ...
def contentWidget(self) -> QHelpContentWidget: ...
def indexModel(self) -> 'QHelpIndexModel': ...
def contentModel(self) -> QHelpContentModel: ...
class QHelpFilterData(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QHelpFilterData') -> None: ...
def versions(self) -> typing.List[QtCore.QVersionNumber]: ...
def components(self) -> typing.List[str]: ...
def setVersions(self, versions: typing.Iterable[QtCore.QVersionNumber]) -> None: ...
def setComponents(self, components: typing.Iterable[str]) -> None: ...
def swap(self, other: 'QHelpFilterData') -> None: ...
class QHelpFilterEngine(QtCore.QObject):
def filterActivated(self, newFilter: str) -> None: ...
def namespacesForFilter(self, filterName: str) -> typing.List[str]: ...
def removeFilter(self, filterName: str) -> bool: ...
def setFilterData(self, filterName: str, filterData: QHelpFilterData) -> bool: ...
def filterData(self, filterName: str) -> QHelpFilterData: ...
def availableComponents(self) -> typing.List[str]: ...
def setActiveFilter(self, filterName: str) -> bool: ...
def activeFilter(self) -> str: ...
def filters(self) -> typing.List[str]: ...
def namespaceToVersion(self) -> typing.Dict[str, QtCore.QVersionNumber]: ...
def namespaceToComponent(self) -> typing.Dict[str, str]: ...
class QHelpIndexModel(QtCore.QStringListModel):
def indexCreated(self) -> None: ...
def indexCreationStarted(self) -> None: ...
def isCreatingIndex(self) -> bool: ...
def linksForKeyword(self, keyword: str) -> typing.Dict[str, QtCore.QUrl]: ...
def filter(self, filter: str, wildcard: str = ...) -> QtCore.QModelIndex: ...
def createIndex(self, customFilterName: str) -> None: ...
class QHelpIndexWidget(QtWidgets.QListView):
def activateCurrentItem(self) -> None: ...
def filterIndices(self, filter: str, wildcard: str = ...) -> None: ...
def linksActivated(self, links: typing.Dict[str, QtCore.QUrl], keyword: str) -> None: ...
def linkActivated(self, link: QtCore.QUrl, keyword: str) -> None: ...
class QHelpSearchQuery(sip.simplewrapper):
class FieldName(int): ...
DEFAULT = ... # type: 'QHelpSearchQuery.FieldName'
FUZZY = ... # type: 'QHelpSearchQuery.FieldName'
WITHOUT = ... # type: 'QHelpSearchQuery.FieldName'
PHRASE = ... # type: 'QHelpSearchQuery.FieldName'
ALL = ... # type: 'QHelpSearchQuery.FieldName'
ATLEAST = ... # type: 'QHelpSearchQuery.FieldName'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, field: 'QHelpSearchQuery.FieldName', wordList: typing.Iterable[str]) -> None: ...
@typing.overload
def __init__(self, a0: 'QHelpSearchQuery') -> None: ...
class QHelpSearchEngine(QtCore.QObject):
def __init__(self, helpEngine: QHelpEngineCore, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def searchInput(self) -> str: ...
def searchResults(self, start: int, end: int) -> typing.List['QHelpSearchResult']: ...
def searchResultCount(self) -> int: ...
def searchingFinished(self, hits: int) -> None: ...
def searchingStarted(self) -> None: ...
def indexingFinished(self) -> None: ...
def indexingStarted(self) -> None: ...
def cancelSearching(self) -> None: ...
@typing.overload
def search(self, queryList: typing.Iterable[QHelpSearchQuery]) -> None: ...
@typing.overload
def search(self, searchInput: str) -> None: ...
def cancelIndexing(self) -> None: ...
def reindexDocumentation(self) -> None: ...
def hits(self, start: int, end: int) -> typing.List[typing.Tuple[str, str]]: ...
def hitCount(self) -> int: ...
def resultWidget(self) -> 'QHelpSearchResultWidget': ...
def queryWidget(self) -> 'QHelpSearchQueryWidget': ...
def query(self) -> typing.List[QHelpSearchQuery]: ...
class QHelpSearchResult(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QHelpSearchResult') -> None: ...
@typing.overload
def __init__(self, url: QtCore.QUrl, title: str, snippet: str) -> None: ...
def snippet(self) -> str: ...
def url(self) -> QtCore.QUrl: ...
def title(self) -> str: ...
class QHelpSearchQueryWidget(QtWidgets.QWidget):
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def setSearchInput(self, searchInput: str) -> None: ...
def searchInput(self) -> str: ...
def setCompactMode(self, on: bool) -> None: ...
def isCompactMode(self) -> bool: ...
def search(self) -> None: ...
def collapseExtendedSearch(self) -> None: ...
def expandExtendedSearch(self) -> None: ...
def setQuery(self, queryList: typing.Iterable[QHelpSearchQuery]) -> None: ...
def query(self) -> typing.List[QHelpSearchQuery]: ...
class QHelpSearchResultWidget(QtWidgets.QWidget):
def requestShowLink(self, url: QtCore.QUrl) -> None: ...
def linkAt(self, point: QtCore.QPoint) -> QtCore.QUrl: ...

File diff suppressed because it is too large Load Diff

View File

@ -1,119 +0,0 @@
# The PEP 484 type hints stub file for the QtMacExtras module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QMacPasteboardMime(sip.simplewrapper):
class QMacPasteboardMimeType(int): ...
MIME_DND = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType'
MIME_CLIP = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType'
MIME_QT_CONVERTOR = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType'
MIME_QT3_CONVERTOR = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType'
MIME_ALL = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType'
@typing.overload
def __init__(self, t: int) -> None: ...
@typing.overload
def __init__(self, a0: 'QMacPasteboardMime') -> None: ...
def count(self, mimeData: QtCore.QMimeData) -> int: ...
def convertFromMime(self, mime: str, data: typing.Any, flav: str) -> typing.List[QtCore.QByteArray]: ...
def convertToMime(self, mime: str, data: typing.Iterable[typing.Union[QtCore.QByteArray, bytes, bytearray]], flav: str) -> typing.Any: ...
def flavorFor(self, mime: str) -> str: ...
def mimeFor(self, flav: str) -> str: ...
def canConvert(self, mime: str, flav: str) -> bool: ...
def convertorName(self) -> str: ...
class NSToolbar(sip.simplewrapper): ...
class QMacToolBar(QtCore.QObject):
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, identifier: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def nativeToolbar(self) -> NSToolbar: ...
def detachFromWindow(self) -> None: ...
def attachToWindow(self, window: QtGui.QWindow) -> None: ...
def allowedItems(self) -> typing.List['QMacToolBarItem']: ...
def setAllowedItems(self, allowedItems: typing.Iterable['QMacToolBarItem']) -> None: ...
def items(self) -> typing.List['QMacToolBarItem']: ...
def setItems(self, items: typing.Iterable['QMacToolBarItem']) -> None: ...
def addSeparator(self) -> None: ...
def addAllowedItem(self, icon: QtGui.QIcon, text: str) -> 'QMacToolBarItem': ...
def addItem(self, icon: QtGui.QIcon, text: str) -> 'QMacToolBarItem': ...
class NSToolbarItem(sip.simplewrapper): ...
class QMacToolBarItem(QtCore.QObject):
class StandardItem(int): ...
NoStandardItem = ... # type: 'QMacToolBarItem.StandardItem'
Space = ... # type: 'QMacToolBarItem.StandardItem'
FlexibleSpace = ... # type: 'QMacToolBarItem.StandardItem'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def activated(self) -> None: ...
def nativeToolBarItem(self) -> NSToolbarItem: ...
def setIcon(self, icon: QtGui.QIcon) -> None: ...
def icon(self) -> QtGui.QIcon: ...
def setText(self, text: str) -> None: ...
def text(self) -> str: ...
def setStandardItem(self, standardItem: 'QMacToolBarItem.StandardItem') -> None: ...
def standardItem(self) -> 'QMacToolBarItem.StandardItem': ...
def setSelectable(self, selectable: bool) -> None: ...
def selectable(self) -> bool: ...
class QtMac(sip.simplewrapper):
def isMainWindow(self, window: QtGui.QWindow) -> bool: ...
def badgeLabelText(self) -> str: ...
def setBadgeLabelText(self, text: str) -> None: ...
def qRegisterDraggedTypes(types: typing.Iterable[str]) -> None: ...

File diff suppressed because it is too large Load Diff

View File

@ -1,100 +0,0 @@
# The PEP 484 type hints stub file for the QtMultimediaWidgets module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtMultimedia
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QVideoWidget(QtWidgets.QWidget, QtMultimedia.QMediaBindableInterface):
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ...
def paintEvent(self, event: QtGui.QPaintEvent) -> None: ...
def moveEvent(self, event: QtGui.QMoveEvent) -> None: ...
def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ...
def hideEvent(self, event: QtGui.QHideEvent) -> None: ...
def showEvent(self, event: QtGui.QShowEvent) -> None: ...
def event(self, event: QtCore.QEvent) -> bool: ...
def saturationChanged(self, saturation: int) -> None: ...
def hueChanged(self, hue: int) -> None: ...
def contrastChanged(self, contrast: int) -> None: ...
def brightnessChanged(self, brightness: int) -> None: ...
def fullScreenChanged(self, fullScreen: bool) -> None: ...
def setSaturation(self, saturation: int) -> None: ...
def setHue(self, hue: int) -> None: ...
def setContrast(self, contrast: int) -> None: ...
def setBrightness(self, brightness: int) -> None: ...
def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ...
def setFullScreen(self, fullScreen: bool) -> None: ...
def sizeHint(self) -> QtCore.QSize: ...
def saturation(self) -> int: ...
def hue(self) -> int: ...
def contrast(self) -> int: ...
def brightness(self) -> int: ...
def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ...
def mediaObject(self) -> QtMultimedia.QMediaObject: ...
class QCameraViewfinder(QVideoWidget):
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ...
def mediaObject(self) -> QtMultimedia.QMediaObject: ...
class QGraphicsVideoItem(QtWidgets.QGraphicsObject, QtMultimedia.QMediaBindableInterface):
def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ...
def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ...
def itemChange(self, change: QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ...
def timerEvent(self, event: QtCore.QTimerEvent) -> None: ...
def nativeSizeChanged(self, size: QtCore.QSizeF) -> None: ...
def paint(self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def boundingRect(self) -> QtCore.QRectF: ...
def nativeSize(self) -> QtCore.QSizeF: ...
def setSize(self, size: QtCore.QSizeF) -> None: ...
def size(self) -> QtCore.QSizeF: ...
def setOffset(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ...
def offset(self) -> QtCore.QPointF: ...
def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ...
def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ...
def mediaObject(self) -> QtMultimedia.QMediaObject: ...

File diff suppressed because it is too large Load Diff

View File

@ -1,431 +0,0 @@
# The PEP 484 type hints stub file for the QtNfc module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QNdefFilter(sip.simplewrapper):
class Record(sip.simplewrapper):
maximum = ... # type: int
minimum = ... # type: int
type = ... # type: typing.Union[QtCore.QByteArray, bytes, bytearray]
typeNameFormat = ... # type: 'QNdefRecord.TypeNameFormat'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QNdefFilter.Record') -> None: ...
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QNdefFilter') -> None: ...
def recordAt(self, i: int) -> 'QNdefFilter.Record': ...
def __len__(self) -> int: ...
def recordCount(self) -> int: ...
@typing.overload
def appendRecord(self, typeNameFormat: 'QNdefRecord.TypeNameFormat', type: typing.Union[QtCore.QByteArray, bytes, bytearray], min: int = ..., max: int = ...) -> None: ...
@typing.overload
def appendRecord(self, record: 'QNdefFilter.Record') -> None: ...
def orderMatch(self) -> bool: ...
def setOrderMatch(self, on: bool) -> None: ...
def clear(self) -> None: ...
class QNdefMessage(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, record: 'QNdefRecord') -> None: ...
@typing.overload
def __init__(self, message: 'QNdefMessage') -> None: ...
@typing.overload
def __init__(self, records: typing.Iterable['QNdefRecord']) -> None: ...
@staticmethod
def fromByteArray(message: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNdefMessage': ...
def __delitem__(self, i: int) -> None: ...
def __setitem__(self, i: int, value: 'QNdefRecord') -> None: ...
def __getitem__(self, i: int) -> 'QNdefRecord': ...
def __len__(self) -> int: ...
def toByteArray(self) -> QtCore.QByteArray: ...
class QNdefRecord(sip.simplewrapper):
class TypeNameFormat(int): ...
Empty = ... # type: 'QNdefRecord.TypeNameFormat'
NfcRtd = ... # type: 'QNdefRecord.TypeNameFormat'
Mime = ... # type: 'QNdefRecord.TypeNameFormat'
Uri = ... # type: 'QNdefRecord.TypeNameFormat'
ExternalRtd = ... # type: 'QNdefRecord.TypeNameFormat'
Unknown = ... # type: 'QNdefRecord.TypeNameFormat'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QNdefRecord') -> None: ...
def __hash__(self) -> int: ...
def isEmpty(self) -> bool: ...
def payload(self) -> QtCore.QByteArray: ...
def setPayload(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def id(self) -> QtCore.QByteArray: ...
def setId(self, id: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def type(self) -> QtCore.QByteArray: ...
def setType(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def typeNameFormat(self) -> 'QNdefRecord.TypeNameFormat': ...
def setTypeNameFormat(self, typeNameFormat: 'QNdefRecord.TypeNameFormat') -> None: ...
class QNdefNfcIconRecord(QNdefRecord):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: QNdefRecord) -> None: ...
@typing.overload
def __init__(self, a0: 'QNdefNfcIconRecord') -> None: ...
def data(self) -> QtCore.QByteArray: ...
def setData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
class QNdefNfcSmartPosterRecord(QNdefRecord):
class Action(int): ...
UnspecifiedAction = ... # type: 'QNdefNfcSmartPosterRecord.Action'
DoAction = ... # type: 'QNdefNfcSmartPosterRecord.Action'
SaveAction = ... # type: 'QNdefNfcSmartPosterRecord.Action'
EditAction = ... # type: 'QNdefNfcSmartPosterRecord.Action'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QNdefNfcSmartPosterRecord') -> None: ...
@typing.overload
def __init__(self, other: QNdefRecord) -> None: ...
def setTypeInfo(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def typeInfo(self) -> QtCore.QByteArray: ...
def setSize(self, size: int) -> None: ...
def size(self) -> int: ...
def setIcons(self, icons: typing.Iterable[QNdefNfcIconRecord]) -> None: ...
@typing.overload
def removeIcon(self, icon: QNdefNfcIconRecord) -> bool: ...
@typing.overload
def removeIcon(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ...
@typing.overload
def addIcon(self, icon: QNdefNfcIconRecord) -> None: ...
@typing.overload
def addIcon(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray], data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def iconRecords(self) -> typing.List[QNdefNfcIconRecord]: ...
def iconRecord(self, index: int) -> QNdefNfcIconRecord: ...
def icon(self, mimetype: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> QtCore.QByteArray: ...
def iconCount(self) -> int: ...
def setAction(self, act: 'QNdefNfcSmartPosterRecord.Action') -> None: ...
def action(self) -> 'QNdefNfcSmartPosterRecord.Action': ...
@typing.overload
def setUri(self, url: 'QNdefNfcUriRecord') -> None: ...
@typing.overload
def setUri(self, url: QtCore.QUrl) -> None: ...
def uriRecord(self) -> 'QNdefNfcUriRecord': ...
def uri(self) -> QtCore.QUrl: ...
def setTitles(self, titles: typing.Iterable['QNdefNfcTextRecord']) -> None: ...
@typing.overload
def removeTitle(self, text: 'QNdefNfcTextRecord') -> bool: ...
@typing.overload
def removeTitle(self, locale: str) -> bool: ...
@typing.overload
def addTitle(self, text: 'QNdefNfcTextRecord') -> bool: ...
@typing.overload
def addTitle(self, text: str, locale: str, encoding: 'QNdefNfcTextRecord.Encoding') -> bool: ...
def titleRecords(self) -> typing.List['QNdefNfcTextRecord']: ...
def titleRecord(self, index: int) -> 'QNdefNfcTextRecord': ...
def title(self, locale: str = ...) -> str: ...
def titleCount(self) -> int: ...
def hasTypeInfo(self) -> bool: ...
def hasSize(self) -> bool: ...
def hasIcon(self, mimetype: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> bool: ...
def hasAction(self) -> bool: ...
def hasTitle(self, locale: str = ...) -> bool: ...
def setPayload(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
class QNdefNfcTextRecord(QNdefRecord):
class Encoding(int): ...
Utf8 = ... # type: 'QNdefNfcTextRecord.Encoding'
Utf16 = ... # type: 'QNdefNfcTextRecord.Encoding'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: QNdefRecord) -> None: ...
@typing.overload
def __init__(self, a0: 'QNdefNfcTextRecord') -> None: ...
def setEncoding(self, encoding: 'QNdefNfcTextRecord.Encoding') -> None: ...
def encoding(self) -> 'QNdefNfcTextRecord.Encoding': ...
def setText(self, text: str) -> None: ...
def text(self) -> str: ...
def setLocale(self, locale: str) -> None: ...
def locale(self) -> str: ...
class QNdefNfcUriRecord(QNdefRecord):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: QNdefRecord) -> None: ...
@typing.overload
def __init__(self, a0: 'QNdefNfcUriRecord') -> None: ...
def setUri(self, uri: QtCore.QUrl) -> None: ...
def uri(self) -> QtCore.QUrl: ...
class QNearFieldManager(QtCore.QObject):
class AdapterState(int): ...
Offline = ... # type: 'QNearFieldManager.AdapterState'
TurningOn = ... # type: 'QNearFieldManager.AdapterState'
Online = ... # type: 'QNearFieldManager.AdapterState'
TurningOff = ... # type: 'QNearFieldManager.AdapterState'
class TargetAccessMode(int): ...
NoTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode'
NdefReadTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode'
NdefWriteTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode'
TagTypeSpecificTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode'
class TargetAccessModes(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QNearFieldManager.TargetAccessModes', 'QNearFieldManager.TargetAccessMode']) -> None: ...
@typing.overload
def __init__(self, a0: 'QNearFieldManager.TargetAccessModes') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QNearFieldManager.TargetAccessModes': ...
def __int__(self) -> int: ...
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def adapterStateChanged(self, state: 'QNearFieldManager.AdapterState') -> None: ...
def isSupported(self) -> bool: ...
def targetLost(self, target: 'QNearFieldTarget') -> None: ...
def targetDetected(self, target: 'QNearFieldTarget') -> None: ...
def unregisterNdefMessageHandler(self, handlerId: int) -> bool: ...
@typing.overload
def registerNdefMessageHandler(self, slot: PYQT_SLOT) -> int: ...
@typing.overload
def registerNdefMessageHandler(self, typeNameFormat: QNdefRecord.TypeNameFormat, type: typing.Union[QtCore.QByteArray, bytes, bytearray], slot: PYQT_SLOT) -> int: ...
@typing.overload
def registerNdefMessageHandler(self, filter: QNdefFilter, slot: PYQT_SLOT) -> int: ...
def stopTargetDetection(self) -> None: ...
def startTargetDetection(self) -> bool: ...
def targetAccessModes(self) -> 'QNearFieldManager.TargetAccessModes': ...
def setTargetAccessModes(self, accessModes: typing.Union['QNearFieldManager.TargetAccessModes', 'QNearFieldManager.TargetAccessMode']) -> None: ...
def isAvailable(self) -> bool: ...
class QNearFieldShareManager(QtCore.QObject):
class ShareMode(int): ...
NoShare = ... # type: 'QNearFieldShareManager.ShareMode'
NdefShare = ... # type: 'QNearFieldShareManager.ShareMode'
FileShare = ... # type: 'QNearFieldShareManager.ShareMode'
class ShareError(int): ...
NoError = ... # type: 'QNearFieldShareManager.ShareError'
UnknownError = ... # type: 'QNearFieldShareManager.ShareError'
InvalidShareContentError = ... # type: 'QNearFieldShareManager.ShareError'
ShareCanceledError = ... # type: 'QNearFieldShareManager.ShareError'
ShareInterruptedError = ... # type: 'QNearFieldShareManager.ShareError'
ShareRejectedError = ... # type: 'QNearFieldShareManager.ShareError'
UnsupportedShareModeError = ... # type: 'QNearFieldShareManager.ShareError'
ShareAlreadyInProgressError = ... # type: 'QNearFieldShareManager.ShareError'
SharePermissionDeniedError = ... # type: 'QNearFieldShareManager.ShareError'
class ShareModes(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ...
@typing.overload
def __init__(self, a0: 'QNearFieldShareManager.ShareModes') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QNearFieldShareManager.ShareModes': ...
def __int__(self) -> int: ...
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def error(self, error: 'QNearFieldShareManager.ShareError') -> None: ...
def shareModesChanged(self, modes: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ...
def targetDetected(self, shareTarget: 'QNearFieldShareTarget') -> None: ...
def shareError(self) -> 'QNearFieldShareManager.ShareError': ...
def shareModes(self) -> 'QNearFieldShareManager.ShareModes': ...
def setShareModes(self, modes: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ...
@staticmethod
def supportedShareModes() -> 'QNearFieldShareManager.ShareModes': ...
class QNearFieldShareTarget(QtCore.QObject):
def shareFinished(self) -> None: ...
def error(self, error: QNearFieldShareManager.ShareError) -> None: ...
def shareError(self) -> QNearFieldShareManager.ShareError: ...
def isShareInProgress(self) -> bool: ...
def cancel(self) -> None: ...
@typing.overload
def share(self, message: QNdefMessage) -> bool: ...
@typing.overload
def share(self, files: typing.Iterable[QtCore.QFileInfo]) -> bool: ...
def shareModes(self) -> QNearFieldShareManager.ShareModes: ...
class QNearFieldTarget(QtCore.QObject):
class Error(int): ...
NoError = ... # type: 'QNearFieldTarget.Error'
UnknownError = ... # type: 'QNearFieldTarget.Error'
UnsupportedError = ... # type: 'QNearFieldTarget.Error'
TargetOutOfRangeError = ... # type: 'QNearFieldTarget.Error'
NoResponseError = ... # type: 'QNearFieldTarget.Error'
ChecksumMismatchError = ... # type: 'QNearFieldTarget.Error'
InvalidParametersError = ... # type: 'QNearFieldTarget.Error'
NdefReadError = ... # type: 'QNearFieldTarget.Error'
NdefWriteError = ... # type: 'QNearFieldTarget.Error'
CommandError = ... # type: 'QNearFieldTarget.Error'
class AccessMethod(int): ...
UnknownAccess = ... # type: 'QNearFieldTarget.AccessMethod'
NdefAccess = ... # type: 'QNearFieldTarget.AccessMethod'
TagTypeSpecificAccess = ... # type: 'QNearFieldTarget.AccessMethod'
LlcpAccess = ... # type: 'QNearFieldTarget.AccessMethod'
class Type(int): ...
ProprietaryTag = ... # type: 'QNearFieldTarget.Type'
NfcTagType1 = ... # type: 'QNearFieldTarget.Type'
NfcTagType2 = ... # type: 'QNearFieldTarget.Type'
NfcTagType3 = ... # type: 'QNearFieldTarget.Type'
NfcTagType4 = ... # type: 'QNearFieldTarget.Type'
MifareTag = ... # type: 'QNearFieldTarget.Type'
class AccessMethods(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QNearFieldTarget.AccessMethods', 'QNearFieldTarget.AccessMethod']) -> None: ...
@typing.overload
def __init__(self, a0: 'QNearFieldTarget.AccessMethods') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QNearFieldTarget.AccessMethods': ...
def __int__(self) -> int: ...
class RequestId(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QNearFieldTarget.RequestId') -> None: ...
def refCount(self) -> int: ...
def isValid(self) -> bool: ...
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def maxCommandLength(self) -> int: ...
def disconnect(self) -> bool: ...
def setKeepConnection(self, isPersistent: bool) -> bool: ...
def keepConnection(self) -> bool: ...
def error(self, error: 'QNearFieldTarget.Error', id: 'QNearFieldTarget.RequestId') -> None: ...
def requestCompleted(self, id: 'QNearFieldTarget.RequestId') -> None: ...
def ndefMessagesWritten(self) -> None: ...
def ndefMessageRead(self, message: QNdefMessage) -> None: ...
def disconnected(self) -> None: ...
def reportError(self, error: 'QNearFieldTarget.Error', id: 'QNearFieldTarget.RequestId') -> None: ...
def handleResponse(self, id: 'QNearFieldTarget.RequestId', response: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ...
def setResponseForRequest(self, id: 'QNearFieldTarget.RequestId', response: typing.Any, emitRequestCompleted: bool = ...) -> None: ...
def requestResponse(self, id: 'QNearFieldTarget.RequestId') -> typing.Any: ...
def waitForRequestCompleted(self, id: 'QNearFieldTarget.RequestId', msecs: int = ...) -> bool: ...
def sendCommands(self, commands: typing.Iterable[typing.Union[QtCore.QByteArray, bytes, bytearray]]) -> 'QNearFieldTarget.RequestId': ...
def sendCommand(self, command: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNearFieldTarget.RequestId': ...
def writeNdefMessages(self, messages: typing.Iterable[QNdefMessage]) -> 'QNearFieldTarget.RequestId': ...
def readNdefMessages(self) -> 'QNearFieldTarget.RequestId': ...
def hasNdefMessage(self) -> bool: ...
def isProcessingCommand(self) -> bool: ...
def accessMethods(self) -> 'QNearFieldTarget.AccessMethods': ...
def type(self) -> 'QNearFieldTarget.Type': ...
def url(self) -> QtCore.QUrl: ...
def uid(self) -> QtCore.QByteArray: ...
class QQmlNdefRecord(QtCore.QObject):
class TypeNameFormat(int): ...
Empty = ... # type: 'QQmlNdefRecord.TypeNameFormat'
NfcRtd = ... # type: 'QQmlNdefRecord.TypeNameFormat'
Mime = ... # type: 'QQmlNdefRecord.TypeNameFormat'
Uri = ... # type: 'QQmlNdefRecord.TypeNameFormat'
ExternalRtd = ... # type: 'QQmlNdefRecord.TypeNameFormat'
Unknown = ... # type: 'QQmlNdefRecord.TypeNameFormat'
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, record: QNdefRecord, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def recordChanged(self) -> None: ...
def typeNameFormatChanged(self) -> None: ...
def typeChanged(self) -> None: ...
def setRecord(self, record: QNdefRecord) -> None: ...
def record(self) -> QNdefRecord: ...
def typeNameFormat(self) -> 'QQmlNdefRecord.TypeNameFormat': ...
def setTypeNameFormat(self, typeNameFormat: 'QQmlNdefRecord.TypeNameFormat') -> None: ...
def setType(self, t: str) -> None: ...
def type(self) -> str: ...

View File

@ -1,330 +0,0 @@
# The PEP 484 type hints stub file for the QtOpenGL module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QGL(sip.simplewrapper):
class FormatOption(int): ...
DoubleBuffer = ... # type: 'QGL.FormatOption'
DepthBuffer = ... # type: 'QGL.FormatOption'
Rgba = ... # type: 'QGL.FormatOption'
AlphaChannel = ... # type: 'QGL.FormatOption'
AccumBuffer = ... # type: 'QGL.FormatOption'
StencilBuffer = ... # type: 'QGL.FormatOption'
StereoBuffers = ... # type: 'QGL.FormatOption'
DirectRendering = ... # type: 'QGL.FormatOption'
HasOverlay = ... # type: 'QGL.FormatOption'
SampleBuffers = ... # type: 'QGL.FormatOption'
SingleBuffer = ... # type: 'QGL.FormatOption'
NoDepthBuffer = ... # type: 'QGL.FormatOption'
ColorIndex = ... # type: 'QGL.FormatOption'
NoAlphaChannel = ... # type: 'QGL.FormatOption'
NoAccumBuffer = ... # type: 'QGL.FormatOption'
NoStencilBuffer = ... # type: 'QGL.FormatOption'
NoStereoBuffers = ... # type: 'QGL.FormatOption'
IndirectRendering = ... # type: 'QGL.FormatOption'
NoOverlay = ... # type: 'QGL.FormatOption'
NoSampleBuffers = ... # type: 'QGL.FormatOption'
DeprecatedFunctions = ... # type: 'QGL.FormatOption'
NoDeprecatedFunctions = ... # type: 'QGL.FormatOption'
class FormatOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGL.FormatOptions', 'QGL.FormatOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGL.FormatOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGL.FormatOptions': ...
def __int__(self) -> int: ...
class QGLFormat(sip.simplewrapper):
class OpenGLContextProfile(int): ...
NoProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
CoreProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
CompatibilityProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
class OpenGLVersionFlag(int): ...
OpenGL_Version_None = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_4 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_5 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_2_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_2_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Common_Version_1_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_CommonLite_Version_1_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Common_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_CommonLite_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Version_2_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
class OpenGLVersionFlags(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGLFormat.OpenGLVersionFlags', 'QGLFormat.OpenGLVersionFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGLFormat.OpenGLVersionFlags') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGLFormat.OpenGLVersionFlags': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, options: typing.Union[QGL.FormatOptions, QGL.FormatOption], plane: int = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QGLFormat') -> None: ...
def profile(self) -> 'QGLFormat.OpenGLContextProfile': ...
def setProfile(self, profile: 'QGLFormat.OpenGLContextProfile') -> None: ...
def minorVersion(self) -> int: ...
def majorVersion(self) -> int: ...
def setVersion(self, major: int, minor: int) -> None: ...
@staticmethod
def openGLVersionFlags() -> 'QGLFormat.OpenGLVersionFlags': ...
def swapInterval(self) -> int: ...
def setSwapInterval(self, interval: int) -> None: ...
def blueBufferSize(self) -> int: ...
def setBlueBufferSize(self, size: int) -> None: ...
def greenBufferSize(self) -> int: ...
def setGreenBufferSize(self, size: int) -> None: ...
def redBufferSize(self) -> int: ...
def setRedBufferSize(self, size: int) -> None: ...
def sampleBuffers(self) -> bool: ...
def hasOverlay(self) -> bool: ...
def directRendering(self) -> bool: ...
def stereo(self) -> bool: ...
def stencil(self) -> bool: ...
def accum(self) -> bool: ...
def alpha(self) -> bool: ...
def rgba(self) -> bool: ...
def depth(self) -> bool: ...
def doubleBuffer(self) -> bool: ...
@staticmethod
def hasOpenGLOverlays() -> bool: ...
@staticmethod
def hasOpenGL() -> bool: ...
@staticmethod
def setDefaultOverlayFormat(f: 'QGLFormat') -> None: ...
@staticmethod
def defaultOverlayFormat() -> 'QGLFormat': ...
@staticmethod
def setDefaultFormat(f: 'QGLFormat') -> None: ...
@staticmethod
def defaultFormat() -> 'QGLFormat': ...
def testOption(self, opt: typing.Union[QGL.FormatOptions, QGL.FormatOption]) -> bool: ...
def setOption(self, opt: typing.Union[QGL.FormatOptions, QGL.FormatOption]) -> None: ...
def setPlane(self, plane: int) -> None: ...
def plane(self) -> int: ...
def setOverlay(self, enable: bool) -> None: ...
def setDirectRendering(self, enable: bool) -> None: ...
def setStereo(self, enable: bool) -> None: ...
def setStencil(self, enable: bool) -> None: ...
def setAccum(self, enable: bool) -> None: ...
def setAlpha(self, enable: bool) -> None: ...
def setRgba(self, enable: bool) -> None: ...
def setDepth(self, enable: bool) -> None: ...
def setDoubleBuffer(self, enable: bool) -> None: ...
def samples(self) -> int: ...
def setSamples(self, numSamples: int) -> None: ...
def setSampleBuffers(self, enable: bool) -> None: ...
def stencilBufferSize(self) -> int: ...
def setStencilBufferSize(self, size: int) -> None: ...
def alphaBufferSize(self) -> int: ...
def setAlphaBufferSize(self, size: int) -> None: ...
def accumBufferSize(self) -> int: ...
def setAccumBufferSize(self, size: int) -> None: ...
def depthBufferSize(self) -> int: ...
def setDepthBufferSize(self, size: int) -> None: ...
class QGLContext(sip.wrapper):
class BindOption(int): ...
NoBindOption = ... # type: 'QGLContext.BindOption'
InvertedYBindOption = ... # type: 'QGLContext.BindOption'
MipmapBindOption = ... # type: 'QGLContext.BindOption'
PremultipliedAlphaBindOption = ... # type: 'QGLContext.BindOption'
LinearFilteringBindOption = ... # type: 'QGLContext.BindOption'
DefaultBindOption = ... # type: 'QGLContext.BindOption'
class BindOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGLContext.BindOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGLContext.BindOptions': ...
def __int__(self) -> int: ...
def __init__(self, format: QGLFormat) -> None: ...
def moveToThread(self, thread: QtCore.QThread) -> None: ...
@staticmethod
def areSharing(context1: 'QGLContext', context2: 'QGLContext') -> bool: ...
def setInitialized(self, on: bool) -> None: ...
def initialized(self) -> bool: ...
def setWindowCreated(self, on: bool) -> None: ...
def windowCreated(self) -> bool: ...
def deviceIsPixmap(self) -> bool: ...
def chooseContext(self, shareContext: typing.Optional['QGLContext'] = ...) -> bool: ...
@staticmethod
def currentContext() -> 'QGLContext': ...
def overlayTransparentColor(self) -> QtGui.QColor: ...
def device(self) -> QtGui.QPaintDevice: ...
def getProcAddress(self, proc: str) -> sip.voidptr: ...
@staticmethod
def textureCacheLimit() -> int: ...
@staticmethod
def setTextureCacheLimit(size: int) -> None: ...
def deleteTexture(self, tx_id: int) -> None: ...
@typing.overload
def drawTexture(self, target: QtCore.QRectF, textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def drawTexture(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, fileName: str) -> int: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int, format: int, options: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int, format: int, options: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> int: ...
def swapBuffers(self) -> None: ...
def doneCurrent(self) -> None: ...
def makeCurrent(self) -> None: ...
def setFormat(self, format: QGLFormat) -> None: ...
def requestedFormat(self) -> QGLFormat: ...
def format(self) -> QGLFormat: ...
def reset(self) -> None: ...
def isSharing(self) -> bool: ...
def isValid(self) -> bool: ...
def create(self, shareContext: typing.Optional['QGLContext'] = ...) -> bool: ...
class QGLWidget(QtWidgets.QWidget):
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
@typing.overload
def __init__(self, context: QGLContext, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
@typing.overload
def __init__(self, format: QGLFormat, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def glDraw(self) -> None: ...
def glInit(self) -> None: ...
def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ...
def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ...
def autoBufferSwap(self) -> bool: ...
def setAutoBufferSwap(self, on: bool) -> None: ...
def paintOverlayGL(self) -> None: ...
def resizeOverlayGL(self, w: int, h: int) -> None: ...
def initializeOverlayGL(self) -> None: ...
def paintGL(self) -> None: ...
def resizeGL(self, w: int, h: int) -> None: ...
def initializeGL(self) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
def updateOverlayGL(self) -> None: ...
def updateGL(self) -> None: ...
def deleteTexture(self, tx_id: int) -> None: ...
@typing.overload
def drawTexture(self, target: QtCore.QRectF, textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def drawTexture(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, fileName: str) -> int: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int, format: int, options: typing.Union[QGLContext.BindOptions, QGLContext.BindOption]) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int, format: int, options: typing.Union[QGLContext.BindOptions, QGLContext.BindOption]) -> int: ...
def paintEngine(self) -> QtGui.QPaintEngine: ...
@typing.overload
def renderText(self, x: int, y: int, str: str, font: QtGui.QFont = ...) -> None: ...
@typing.overload
def renderText(self, x: float, y: float, z: float, str: str, font: QtGui.QFont = ...) -> None: ...
@staticmethod
def convertToGLFormat(img: QtGui.QImage) -> QtGui.QImage: ...
def overlayContext(self) -> QGLContext: ...
def makeOverlayCurrent(self) -> None: ...
def grabFrameBuffer(self, withAlpha: bool = ...) -> QtGui.QImage: ...
def renderPixmap(self, width: int = ..., height: int = ..., useContext: bool = ...) -> QtGui.QPixmap: ...
def setContext(self, context: QGLContext, shareContext: typing.Optional[QGLContext] = ..., deleteOldContext: bool = ...) -> None: ...
def context(self) -> QGLContext: ...
def format(self) -> QGLFormat: ...
def swapBuffers(self) -> None: ...
def doubleBuffer(self) -> bool: ...
def doneCurrent(self) -> None: ...
def makeCurrent(self) -> None: ...
def isSharing(self) -> bool: ...
def isValid(self) -> bool: ...
def qglClearColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
def qglColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...

View File

@ -1,517 +0,0 @@
# The PEP 484 type hints stub file for the QtPositioning module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QGeoAddress(sip.wrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoAddress') -> None: ...
def isTextGenerated(self) -> bool: ...
def clear(self) -> None: ...
def isEmpty(self) -> bool: ...
def setStreet(self, street: str) -> None: ...
def street(self) -> str: ...
def setPostalCode(self, postalCode: str) -> None: ...
def postalCode(self) -> str: ...
def setDistrict(self, district: str) -> None: ...
def district(self) -> str: ...
def setCity(self, city: str) -> None: ...
def city(self) -> str: ...
def setCounty(self, county: str) -> None: ...
def county(self) -> str: ...
def setState(self, state: str) -> None: ...
def state(self) -> str: ...
def setCountryCode(self, countryCode: str) -> None: ...
def countryCode(self) -> str: ...
def setCountry(self, country: str) -> None: ...
def country(self) -> str: ...
def setText(self, text: str) -> None: ...
def text(self) -> str: ...
class QGeoAreaMonitorInfo(sip.wrapper):
@typing.overload
def __init__(self, name: str = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoAreaMonitorInfo') -> None: ...
def setNotificationParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ...
def notificationParameters(self) -> typing.Dict[str, typing.Any]: ...
def setPersistent(self, isPersistent: bool) -> None: ...
def isPersistent(self) -> bool: ...
def setExpiration(self, expiry: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ...
def expiration(self) -> QtCore.QDateTime: ...
def setArea(self, newShape: 'QGeoShape') -> None: ...
def area(self) -> 'QGeoShape': ...
def isValid(self) -> bool: ...
def identifier(self) -> str: ...
def setName(self, name: str) -> None: ...
def name(self) -> str: ...
class QGeoAreaMonitorSource(QtCore.QObject):
class AreaMonitorFeature(int): ...
PersistentAreaMonitorFeature = ... # type: 'QGeoAreaMonitorSource.AreaMonitorFeature'
AnyAreaMonitorFeature = ... # type: 'QGeoAreaMonitorSource.AreaMonitorFeature'
class Error(int): ...
AccessError = ... # type: 'QGeoAreaMonitorSource.Error'
InsufficientPositionInfo = ... # type: 'QGeoAreaMonitorSource.Error'
UnknownSourceError = ... # type: 'QGeoAreaMonitorSource.Error'
NoError = ... # type: 'QGeoAreaMonitorSource.Error'
class AreaMonitorFeatures(sip.wrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGeoAreaMonitorSource.AreaMonitorFeatures', 'QGeoAreaMonitorSource.AreaMonitorFeature']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGeoAreaMonitorSource.AreaMonitorFeatures') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGeoAreaMonitorSource.AreaMonitorFeatures': ...
def __int__(self) -> int: ...
def __init__(self, parent: QtCore.QObject) -> None: ...
def monitorExpired(self, monitor: QGeoAreaMonitorInfo) -> None: ...
def areaExited(self, monitor: QGeoAreaMonitorInfo, update: 'QGeoPositionInfo') -> None: ...
def areaEntered(self, monitor: QGeoAreaMonitorInfo, update: 'QGeoPositionInfo') -> None: ...
@typing.overload
def activeMonitors(self) -> typing.List[QGeoAreaMonitorInfo]: ...
@typing.overload
def activeMonitors(self, lookupArea: 'QGeoShape') -> typing.List[QGeoAreaMonitorInfo]: ...
def requestUpdate(self, monitor: QGeoAreaMonitorInfo, signal: str) -> bool: ...
def stopMonitoring(self, monitor: QGeoAreaMonitorInfo) -> bool: ...
def startMonitoring(self, monitor: QGeoAreaMonitorInfo) -> bool: ...
def supportedAreaMonitorFeatures(self) -> 'QGeoAreaMonitorSource.AreaMonitorFeatures': ...
@typing.overload
def error(self) -> 'QGeoAreaMonitorSource.Error': ...
@typing.overload
def error(self, error: 'QGeoAreaMonitorSource.Error') -> None: ...
def sourceName(self) -> str: ...
def positionInfoSource(self) -> 'QGeoPositionInfoSource': ...
def setPositionInfoSource(self, source: 'QGeoPositionInfoSource') -> None: ...
@staticmethod
def availableSources() -> typing.List[str]: ...
@staticmethod
def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoAreaMonitorSource': ...
@staticmethod
def createDefaultSource(parent: QtCore.QObject) -> 'QGeoAreaMonitorSource': ...
class QGeoShape(sip.wrapper):
class ShapeType(int): ...
UnknownType = ... # type: 'QGeoShape.ShapeType'
RectangleType = ... # type: 'QGeoShape.ShapeType'
CircleType = ... # type: 'QGeoShape.ShapeType'
PathType = ... # type: 'QGeoShape.ShapeType'
PolygonType = ... # type: 'QGeoShape.ShapeType'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoShape') -> None: ...
def boundingGeoRectangle(self) -> 'QGeoRectangle': ...
def toString(self) -> str: ...
def center(self) -> 'QGeoCoordinate': ...
def extendShape(self, coordinate: 'QGeoCoordinate') -> None: ...
def contains(self, coordinate: 'QGeoCoordinate') -> bool: ...
def isEmpty(self) -> bool: ...
def isValid(self) -> bool: ...
def type(self) -> 'QGeoShape.ShapeType': ...
class QGeoCircle(QGeoShape):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, center: 'QGeoCoordinate', radius: float = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoCircle') -> None: ...
@typing.overload
def __init__(self, other: QGeoShape) -> None: ...
def extendCircle(self, coordinate: 'QGeoCoordinate') -> None: ...
def toString(self) -> str: ...
def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoCircle': ...
def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ...
def radius(self) -> float: ...
def setRadius(self, radius: float) -> None: ...
def center(self) -> 'QGeoCoordinate': ...
def setCenter(self, center: 'QGeoCoordinate') -> None: ...
class QGeoCoordinate(sip.wrapper):
class CoordinateFormat(int): ...
Degrees = ... # type: 'QGeoCoordinate.CoordinateFormat'
DegreesWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat'
DegreesMinutes = ... # type: 'QGeoCoordinate.CoordinateFormat'
DegreesMinutesWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat'
DegreesMinutesSeconds = ... # type: 'QGeoCoordinate.CoordinateFormat'
DegreesMinutesSecondsWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat'
class CoordinateType(int): ...
InvalidCoordinate = ... # type: 'QGeoCoordinate.CoordinateType'
Coordinate2D = ... # type: 'QGeoCoordinate.CoordinateType'
Coordinate3D = ... # type: 'QGeoCoordinate.CoordinateType'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, latitude: float, longitude: float) -> None: ...
@typing.overload
def __init__(self, latitude: float, longitude: float, altitude: float) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoCoordinate') -> None: ...
def __hash__(self) -> int: ...
def toString(self, format: 'QGeoCoordinate.CoordinateFormat' = ...) -> str: ...
def atDistanceAndAzimuth(self, distance: float, azimuth: float, distanceUp: float = ...) -> 'QGeoCoordinate': ...
def azimuthTo(self, other: 'QGeoCoordinate') -> float: ...
def distanceTo(self, other: 'QGeoCoordinate') -> float: ...
def altitude(self) -> float: ...
def setAltitude(self, altitude: float) -> None: ...
def longitude(self) -> float: ...
def setLongitude(self, longitude: float) -> None: ...
def latitude(self) -> float: ...
def setLatitude(self, latitude: float) -> None: ...
def type(self) -> 'QGeoCoordinate.CoordinateType': ...
def isValid(self) -> bool: ...
class QGeoLocation(sip.wrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoLocation') -> None: ...
def setExtendedAttributes(self, data: typing.Dict[str, typing.Any]) -> None: ...
def extendedAttributes(self) -> typing.Dict[str, typing.Any]: ...
def isEmpty(self) -> bool: ...
def setBoundingBox(self, box: 'QGeoRectangle') -> None: ...
def boundingBox(self) -> 'QGeoRectangle': ...
def setCoordinate(self, position: QGeoCoordinate) -> None: ...
def coordinate(self) -> QGeoCoordinate: ...
def setAddress(self, address: QGeoAddress) -> None: ...
def address(self) -> QGeoAddress: ...
class QGeoPath(QGeoShape):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, path: typing.Iterable[QGeoCoordinate], width: float = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoPath') -> None: ...
@typing.overload
def __init__(self, other: QGeoShape) -> None: ...
def clearPath(self) -> None: ...
def size(self) -> int: ...
def toString(self) -> str: ...
@typing.overload
def removeCoordinate(self, coordinate: QGeoCoordinate) -> None: ...
@typing.overload
def removeCoordinate(self, index: int) -> None: ...
def containsCoordinate(self, coordinate: QGeoCoordinate) -> bool: ...
def coordinateAt(self, index: int) -> QGeoCoordinate: ...
def replaceCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ...
def insertCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ...
def addCoordinate(self, coordinate: QGeoCoordinate) -> None: ...
def length(self, indexFrom: int = ..., indexTo: int = ...) -> float: ...
def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoPath': ...
def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ...
def width(self) -> float: ...
def setWidth(self, width: float) -> None: ...
def path(self) -> typing.List[QGeoCoordinate]: ...
def setPath(self, path: typing.Iterable[QGeoCoordinate]) -> None: ...
class QGeoPolygon(QGeoShape):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, path: typing.Iterable[QGeoCoordinate]) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoPolygon') -> None: ...
@typing.overload
def __init__(self, other: QGeoShape) -> None: ...
def perimeter(self) -> typing.List[typing.Any]: ...
def setPerimeter(self, path: typing.Iterable[typing.Any]) -> None: ...
def holesCount(self) -> int: ...
def removeHole(self, index: int) -> None: ...
def holePath(self, index: int) -> typing.List[QGeoCoordinate]: ...
def hole(self, index: int) -> typing.List[typing.Any]: ...
@typing.overload
def addHole(self, holePath: typing.Iterable[QGeoCoordinate]) -> None: ...
@typing.overload
def addHole(self, holePath: typing.Any) -> None: ...
def toString(self) -> str: ...
@typing.overload
def removeCoordinate(self, coordinate: QGeoCoordinate) -> None: ...
@typing.overload
def removeCoordinate(self, index: int) -> None: ...
def containsCoordinate(self, coordinate: QGeoCoordinate) -> bool: ...
def coordinateAt(self, index: int) -> QGeoCoordinate: ...
def replaceCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ...
def insertCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ...
def addCoordinate(self, coordinate: QGeoCoordinate) -> None: ...
def size(self) -> int: ...
def length(self, indexFrom: int = ..., indexTo: int = ...) -> float: ...
def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoPolygon': ...
def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ...
def path(self) -> typing.List[QGeoCoordinate]: ...
def setPath(self, path: typing.Iterable[QGeoCoordinate]) -> None: ...
class QGeoPositionInfo(sip.wrapper):
class Attribute(int): ...
Direction = ... # type: 'QGeoPositionInfo.Attribute'
GroundSpeed = ... # type: 'QGeoPositionInfo.Attribute'
VerticalSpeed = ... # type: 'QGeoPositionInfo.Attribute'
MagneticVariation = ... # type: 'QGeoPositionInfo.Attribute'
HorizontalAccuracy = ... # type: 'QGeoPositionInfo.Attribute'
VerticalAccuracy = ... # type: 'QGeoPositionInfo.Attribute'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, coordinate: QGeoCoordinate, updateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoPositionInfo') -> None: ...
def hasAttribute(self, attribute: 'QGeoPositionInfo.Attribute') -> bool: ...
def removeAttribute(self, attribute: 'QGeoPositionInfo.Attribute') -> None: ...
def attribute(self, attribute: 'QGeoPositionInfo.Attribute') -> float: ...
def setAttribute(self, attribute: 'QGeoPositionInfo.Attribute', value: float) -> None: ...
def coordinate(self) -> QGeoCoordinate: ...
def setCoordinate(self, coordinate: QGeoCoordinate) -> None: ...
def timestamp(self) -> QtCore.QDateTime: ...
def setTimestamp(self, timestamp: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ...
def isValid(self) -> bool: ...
class QGeoPositionInfoSource(QtCore.QObject):
class PositioningMethod(int): ...
NoPositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod'
SatellitePositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod'
NonSatellitePositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod'
AllPositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod'
class Error(int): ...
AccessError = ... # type: 'QGeoPositionInfoSource.Error'
ClosedError = ... # type: 'QGeoPositionInfoSource.Error'
UnknownSourceError = ... # type: 'QGeoPositionInfoSource.Error'
NoError = ... # type: 'QGeoPositionInfoSource.Error'
class PositioningMethods(sip.wrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGeoPositionInfoSource.PositioningMethods', 'QGeoPositionInfoSource.PositioningMethod']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGeoPositionInfoSource.PositioningMethods') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGeoPositionInfoSource.PositioningMethods': ...
def __int__(self) -> int: ...
def __init__(self, parent: QtCore.QObject) -> None: ...
def supportedPositioningMethodsChanged(self) -> None: ...
def updateTimeout(self) -> None: ...
def positionUpdated(self, update: QGeoPositionInfo) -> None: ...
def requestUpdate(self, timeout: int = ...) -> None: ...
def stopUpdates(self) -> None: ...
def startUpdates(self) -> None: ...
@typing.overload
def error(self) -> 'QGeoPositionInfoSource.Error': ...
@typing.overload
def error(self, a0: 'QGeoPositionInfoSource.Error') -> None: ...
@staticmethod
def availableSources() -> typing.List[str]: ...
@staticmethod
def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ...
@staticmethod
def createDefaultSource(parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ...
def sourceName(self) -> str: ...
def minimumUpdateInterval(self) -> int: ...
def supportedPositioningMethods(self) -> 'QGeoPositionInfoSource.PositioningMethods': ...
def lastKnownPosition(self, fromSatellitePositioningMethodsOnly: bool = ...) -> QGeoPositionInfo: ...
def preferredPositioningMethods(self) -> 'QGeoPositionInfoSource.PositioningMethods': ...
def setPreferredPositioningMethods(self, methods: typing.Union['QGeoPositionInfoSource.PositioningMethods', 'QGeoPositionInfoSource.PositioningMethod']) -> None: ...
def updateInterval(self) -> int: ...
def setUpdateInterval(self, msec: int) -> None: ...
class QGeoRectangle(QGeoShape):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, center: QGeoCoordinate, degreesWidth: float, degreesHeight: float) -> None: ...
@typing.overload
def __init__(self, topLeft: QGeoCoordinate, bottomRight: QGeoCoordinate) -> None: ...
@typing.overload
def __init__(self, coordinates: typing.Iterable[QGeoCoordinate]) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoRectangle') -> None: ...
@typing.overload
def __init__(self, other: QGeoShape) -> None: ...
def extendRectangle(self, coordinate: QGeoCoordinate) -> None: ...
def toString(self) -> str: ...
def united(self, rectangle: 'QGeoRectangle') -> 'QGeoRectangle': ...
def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoRectangle': ...
def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ...
def intersects(self, rectangle: 'QGeoRectangle') -> bool: ...
def contains(self, rectangle: 'QGeoRectangle') -> bool: ...
def height(self) -> float: ...
def setHeight(self, degreesHeight: float) -> None: ...
def width(self) -> float: ...
def setWidth(self, degreesWidth: float) -> None: ...
def center(self) -> QGeoCoordinate: ...
def setCenter(self, center: QGeoCoordinate) -> None: ...
def bottomRight(self) -> QGeoCoordinate: ...
def setBottomRight(self, bottomRight: QGeoCoordinate) -> None: ...
def bottomLeft(self) -> QGeoCoordinate: ...
def setBottomLeft(self, bottomLeft: QGeoCoordinate) -> None: ...
def topRight(self) -> QGeoCoordinate: ...
def setTopRight(self, topRight: QGeoCoordinate) -> None: ...
def topLeft(self) -> QGeoCoordinate: ...
def setTopLeft(self, topLeft: QGeoCoordinate) -> None: ...
class QGeoSatelliteInfo(sip.wrapper):
class SatelliteSystem(int): ...
Undefined = ... # type: 'QGeoSatelliteInfo.SatelliteSystem'
GPS = ... # type: 'QGeoSatelliteInfo.SatelliteSystem'
GLONASS = ... # type: 'QGeoSatelliteInfo.SatelliteSystem'
class Attribute(int): ...
Elevation = ... # type: 'QGeoSatelliteInfo.Attribute'
Azimuth = ... # type: 'QGeoSatelliteInfo.Attribute'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QGeoSatelliteInfo') -> None: ...
def hasAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> bool: ...
def removeAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> None: ...
def attribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> float: ...
def setAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute', value: float) -> None: ...
def signalStrength(self) -> int: ...
def setSignalStrength(self, signalStrength: int) -> None: ...
def satelliteIdentifier(self) -> int: ...
def setSatelliteIdentifier(self, satId: int) -> None: ...
def satelliteSystem(self) -> 'QGeoSatelliteInfo.SatelliteSystem': ...
def setSatelliteSystem(self, system: 'QGeoSatelliteInfo.SatelliteSystem') -> None: ...
class QGeoSatelliteInfoSource(QtCore.QObject):
class Error(int): ...
AccessError = ... # type: 'QGeoSatelliteInfoSource.Error'
ClosedError = ... # type: 'QGeoSatelliteInfoSource.Error'
NoError = ... # type: 'QGeoSatelliteInfoSource.Error'
UnknownSourceError = ... # type: 'QGeoSatelliteInfoSource.Error'
def __init__(self, parent: QtCore.QObject) -> None: ...
def requestTimeout(self) -> None: ...
def satellitesInUseUpdated(self, satellites: typing.Iterable[QGeoSatelliteInfo]) -> None: ...
def satellitesInViewUpdated(self, satellites: typing.Iterable[QGeoSatelliteInfo]) -> None: ...
def requestUpdate(self, timeout: int = ...) -> None: ...
def stopUpdates(self) -> None: ...
def startUpdates(self) -> None: ...
@typing.overload
def error(self) -> 'QGeoSatelliteInfoSource.Error': ...
@typing.overload
def error(self, a0: 'QGeoSatelliteInfoSource.Error') -> None: ...
def minimumUpdateInterval(self) -> int: ...
def updateInterval(self) -> int: ...
def setUpdateInterval(self, msec: int) -> None: ...
def sourceName(self) -> str: ...
@staticmethod
def availableSources() -> typing.List[str]: ...
@staticmethod
def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ...
@staticmethod
def createDefaultSource(parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ...
class QNmeaPositionInfoSource(QGeoPositionInfoSource):
class UpdateMode(int): ...
RealTimeMode = ... # type: 'QNmeaPositionInfoSource.UpdateMode'
SimulationMode = ... # type: 'QNmeaPositionInfoSource.UpdateMode'
def __init__(self, updateMode: 'QNmeaPositionInfoSource.UpdateMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def userEquivalentRangeError(self) -> float: ...
def setUserEquivalentRangeError(self, uere: float) -> None: ...
def parsePosInfoFromNmeaData(self, data: str, size: int, posInfo: QGeoPositionInfo) -> typing.Tuple[bool, bool]: ...
def requestUpdate(self, timeout: int = ...) -> None: ...
def stopUpdates(self) -> None: ...
def startUpdates(self) -> None: ...
def error(self) -> QGeoPositionInfoSource.Error: ...
def minimumUpdateInterval(self) -> int: ...
def supportedPositioningMethods(self) -> QGeoPositionInfoSource.PositioningMethods: ...
def lastKnownPosition(self, fromSatellitePositioningMethodsOnly: bool = ...) -> QGeoPositionInfo: ...
def setUpdateInterval(self, msec: int) -> None: ...
def device(self) -> QtCore.QIODevice: ...
def setDevice(self, source: QtCore.QIODevice) -> None: ...
def updateMode(self) -> 'QNmeaPositionInfoSource.UpdateMode': ...

View File

@ -1,436 +0,0 @@
# The PEP 484 type hints stub file for the QtPrintSupport module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QAbstractPrintDialog(QtWidgets.QDialog):
class PrintDialogOption(int): ...
None_ = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintToFile = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintSelection = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintPageRange = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintCollateCopies = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintShowPageSize = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintCurrentPage = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
class PrintRange(int): ...
AllPages = ... # type: 'QAbstractPrintDialog.PrintRange'
Selection = ... # type: 'QAbstractPrintDialog.PrintRange'
PageRange = ... # type: 'QAbstractPrintDialog.PrintRange'
CurrentPage = ... # type: 'QAbstractPrintDialog.PrintRange'
class PrintDialogOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QAbstractPrintDialog.PrintDialogOptions', 'QAbstractPrintDialog.PrintDialogOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QAbstractPrintDialog.PrintDialogOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QAbstractPrintDialog.PrintDialogOptions': ...
def __int__(self) -> int: ...
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def enabledOptions(self) -> 'QAbstractPrintDialog.PrintDialogOptions': ...
def setEnabledOptions(self, options: typing.Union['QAbstractPrintDialog.PrintDialogOptions', 'QAbstractPrintDialog.PrintDialogOption']) -> None: ...
def setOptionTabs(self, tabs: typing.Iterable[QtWidgets.QWidget]) -> None: ...
def printer(self) -> 'QPrinter': ...
def toPage(self) -> int: ...
def fromPage(self) -> int: ...
def setFromTo(self, fromPage: int, toPage: int) -> None: ...
def maxPage(self) -> int: ...
def minPage(self) -> int: ...
def setMinMax(self, min: int, max: int) -> None: ...
def printRange(self) -> 'QAbstractPrintDialog.PrintRange': ...
def setPrintRange(self, range: 'QAbstractPrintDialog.PrintRange') -> None: ...
def exec(self) -> int: ...
def exec_(self) -> int: ...
class QPageSetupDialog(QtWidgets.QDialog):
@typing.overload
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def printer(self) -> 'QPrinter': ...
def done(self, result: int) -> None: ...
@typing.overload
def open(self) -> None: ...
@typing.overload
def open(self, slot: PYQT_SLOT) -> None: ...
def exec(self) -> int: ...
def exec_(self) -> int: ...
def setVisible(self, visible: bool) -> None: ...
class QPrintDialog(QAbstractPrintDialog):
@typing.overload
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def accepted(self) -> None: ...
@typing.overload
def accepted(self, printer: 'QPrinter') -> None: ...
@typing.overload
def open(self) -> None: ...
@typing.overload
def open(self, slot: PYQT_SLOT) -> None: ...
def setVisible(self, visible: bool) -> None: ...
def options(self) -> QAbstractPrintDialog.PrintDialogOptions: ...
def setOptions(self, options: typing.Union[QAbstractPrintDialog.PrintDialogOptions, QAbstractPrintDialog.PrintDialogOption]) -> None: ...
def testOption(self, option: QAbstractPrintDialog.PrintDialogOption) -> bool: ...
def setOption(self, option: QAbstractPrintDialog.PrintDialogOption, on: bool = ...) -> None: ...
def done(self, result: int) -> None: ...
def exec(self) -> int: ...
def exec_(self) -> int: ...
class QPrintEngine(sip.simplewrapper):
class PrintEnginePropertyKey(int): ...
PPK_CollateCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_ColorMode = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_Creator = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_DocumentName = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_FullPage = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_NumberOfCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_Orientation = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_OutputFileName = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PageOrder = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PageRect = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperRect = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperSource = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PrinterName = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PrinterProgram = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_Resolution = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_SelectionOption = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_SupportedResolutions = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_WindowsPageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_FontEmbedding = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_Duplex = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperSources = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_CustomPaperSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PageMargins = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_CopyCount = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_SupportsMultipleCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperName = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_QPageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_QPageMargins = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_QPageLayout = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_CustomBase = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QPrintEngine') -> None: ...
def printerState(self) -> 'QPrinter.PrinterState': ...
def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ...
def abort(self) -> bool: ...
def newPage(self) -> bool: ...
def property(self, key: 'QPrintEngine.PrintEnginePropertyKey') -> typing.Any: ...
def setProperty(self, key: 'QPrintEngine.PrintEnginePropertyKey', value: typing.Any) -> None: ...
class QPrinter(QtGui.QPagedPaintDevice):
class DuplexMode(int): ...
DuplexNone = ... # type: 'QPrinter.DuplexMode'
DuplexAuto = ... # type: 'QPrinter.DuplexMode'
DuplexLongSide = ... # type: 'QPrinter.DuplexMode'
DuplexShortSide = ... # type: 'QPrinter.DuplexMode'
class Unit(int): ...
Millimeter = ... # type: 'QPrinter.Unit'
Point = ... # type: 'QPrinter.Unit'
Inch = ... # type: 'QPrinter.Unit'
Pica = ... # type: 'QPrinter.Unit'
Didot = ... # type: 'QPrinter.Unit'
Cicero = ... # type: 'QPrinter.Unit'
DevicePixel = ... # type: 'QPrinter.Unit'
class PrintRange(int): ...
AllPages = ... # type: 'QPrinter.PrintRange'
Selection = ... # type: 'QPrinter.PrintRange'
PageRange = ... # type: 'QPrinter.PrintRange'
CurrentPage = ... # type: 'QPrinter.PrintRange'
class OutputFormat(int): ...
NativeFormat = ... # type: 'QPrinter.OutputFormat'
PdfFormat = ... # type: 'QPrinter.OutputFormat'
class PrinterState(int): ...
Idle = ... # type: 'QPrinter.PrinterState'
Active = ... # type: 'QPrinter.PrinterState'
Aborted = ... # type: 'QPrinter.PrinterState'
Error = ... # type: 'QPrinter.PrinterState'
class PaperSource(int): ...
OnlyOne = ... # type: 'QPrinter.PaperSource'
Lower = ... # type: 'QPrinter.PaperSource'
Middle = ... # type: 'QPrinter.PaperSource'
Manual = ... # type: 'QPrinter.PaperSource'
Envelope = ... # type: 'QPrinter.PaperSource'
EnvelopeManual = ... # type: 'QPrinter.PaperSource'
Auto = ... # type: 'QPrinter.PaperSource'
Tractor = ... # type: 'QPrinter.PaperSource'
SmallFormat = ... # type: 'QPrinter.PaperSource'
LargeFormat = ... # type: 'QPrinter.PaperSource'
LargeCapacity = ... # type: 'QPrinter.PaperSource'
Cassette = ... # type: 'QPrinter.PaperSource'
FormSource = ... # type: 'QPrinter.PaperSource'
MaxPageSource = ... # type: 'QPrinter.PaperSource'
Upper = ... # type: 'QPrinter.PaperSource'
CustomSource = ... # type: 'QPrinter.PaperSource'
LastPaperSource = ... # type: 'QPrinter.PaperSource'
class ColorMode(int): ...
GrayScale = ... # type: 'QPrinter.ColorMode'
Color = ... # type: 'QPrinter.ColorMode'
class PageOrder(int): ...
FirstPageFirst = ... # type: 'QPrinter.PageOrder'
LastPageFirst = ... # type: 'QPrinter.PageOrder'
class Orientation(int): ...
Portrait = ... # type: 'QPrinter.Orientation'
Landscape = ... # type: 'QPrinter.Orientation'
class PrinterMode(int): ...
ScreenResolution = ... # type: 'QPrinter.PrinterMode'
PrinterResolution = ... # type: 'QPrinter.PrinterMode'
HighResolution = ... # type: 'QPrinter.PrinterMode'
@typing.overload
def __init__(self, mode: 'QPrinter.PrinterMode' = ...) -> None: ...
@typing.overload
def __init__(self, printer: 'QPrinterInfo', mode: 'QPrinter.PrinterMode' = ...) -> None: ...
def pdfVersion(self) -> QtGui.QPagedPaintDevice.PdfVersion: ...
def setPdfVersion(self, version: QtGui.QPagedPaintDevice.PdfVersion) -> None: ...
def paperName(self) -> str: ...
def setPaperName(self, paperName: str) -> None: ...
def setEngines(self, printEngine: QPrintEngine, paintEngine: QtGui.QPaintEngine) -> None: ...
def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ...
def getPageMargins(self, unit: 'QPrinter.Unit') -> typing.Tuple[float, float, float, float]: ...
def setPageMargins(self, left: float, top: float, right: float, bottom: float, unit: 'QPrinter.Unit') -> None: ...
def setMargins(self, m: QtGui.QPagedPaintDevice.Margins) -> None: ...
def printRange(self) -> 'QPrinter.PrintRange': ...
def setPrintRange(self, range: 'QPrinter.PrintRange') -> None: ...
def toPage(self) -> int: ...
def fromPage(self) -> int: ...
def setFromTo(self, fromPage: int, toPage: int) -> None: ...
def printEngine(self) -> QPrintEngine: ...
def paintEngine(self) -> QtGui.QPaintEngine: ...
def printerState(self) -> 'QPrinter.PrinterState': ...
def abort(self) -> bool: ...
def newPage(self) -> bool: ...
def setPrinterSelectionOption(self, a0: str) -> None: ...
def printerSelectionOption(self) -> str: ...
@typing.overload
def pageRect(self) -> QtCore.QRect: ...
@typing.overload
def pageRect(self, a0: 'QPrinter.Unit') -> QtCore.QRectF: ...
@typing.overload
def paperRect(self) -> QtCore.QRect: ...
@typing.overload
def paperRect(self, a0: 'QPrinter.Unit') -> QtCore.QRectF: ...
def doubleSidedPrinting(self) -> bool: ...
def setDoubleSidedPrinting(self, enable: bool) -> None: ...
def fontEmbeddingEnabled(self) -> bool: ...
def setFontEmbeddingEnabled(self, enable: bool) -> None: ...
def supportedResolutions(self) -> typing.List[int]: ...
def duplex(self) -> 'QPrinter.DuplexMode': ...
def setDuplex(self, duplex: 'QPrinter.DuplexMode') -> None: ...
def paperSource(self) -> 'QPrinter.PaperSource': ...
def setPaperSource(self, a0: 'QPrinter.PaperSource') -> None: ...
def supportsMultipleCopies(self) -> bool: ...
def copyCount(self) -> int: ...
def setCopyCount(self, a0: int) -> None: ...
def fullPage(self) -> bool: ...
def setFullPage(self, a0: bool) -> None: ...
def collateCopies(self) -> bool: ...
def setCollateCopies(self, collate: bool) -> None: ...
def colorMode(self) -> 'QPrinter.ColorMode': ...
def setColorMode(self, a0: 'QPrinter.ColorMode') -> None: ...
def resolution(self) -> int: ...
def setResolution(self, a0: int) -> None: ...
def pageOrder(self) -> 'QPrinter.PageOrder': ...
def setPageOrder(self, a0: 'QPrinter.PageOrder') -> None: ...
@typing.overload
def paperSize(self) -> QtGui.QPagedPaintDevice.PageSize: ...
@typing.overload
def paperSize(self, unit: 'QPrinter.Unit') -> QtCore.QSizeF: ...
@typing.overload
def setPaperSize(self, a0: QtGui.QPagedPaintDevice.PageSize) -> None: ...
@typing.overload
def setPaperSize(self, paperSize: QtCore.QSizeF, unit: 'QPrinter.Unit') -> None: ...
def setPageSizeMM(self, size: QtCore.QSizeF) -> None: ...
def orientation(self) -> 'QPrinter.Orientation': ...
def setOrientation(self, a0: 'QPrinter.Orientation') -> None: ...
def creator(self) -> str: ...
def setCreator(self, a0: str) -> None: ...
def docName(self) -> str: ...
def setDocName(self, a0: str) -> None: ...
def printProgram(self) -> str: ...
def setPrintProgram(self, a0: str) -> None: ...
def outputFileName(self) -> str: ...
def setOutputFileName(self, a0: str) -> None: ...
def isValid(self) -> bool: ...
def printerName(self) -> str: ...
def setPrinterName(self, a0: str) -> None: ...
def outputFormat(self) -> 'QPrinter.OutputFormat': ...
def setOutputFormat(self, format: 'QPrinter.OutputFormat') -> None: ...
class QPrinterInfo(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, src: 'QPrinterInfo') -> None: ...
@typing.overload
def __init__(self, printer: QPrinter) -> None: ...
def supportedColorModes(self) -> typing.List[QPrinter.ColorMode]: ...
def defaultColorMode(self) -> QPrinter.ColorMode: ...
def supportedDuplexModes(self) -> typing.List[QPrinter.DuplexMode]: ...
def defaultDuplexMode(self) -> QPrinter.DuplexMode: ...
@staticmethod
def defaultPrinterName() -> str: ...
@staticmethod
def availablePrinterNames() -> typing.List[str]: ...
def supportedResolutions(self) -> typing.List[int]: ...
def maximumPhysicalPageSize(self) -> QtGui.QPageSize: ...
def minimumPhysicalPageSize(self) -> QtGui.QPageSize: ...
def supportsCustomPageSizes(self) -> bool: ...
def defaultPageSize(self) -> QtGui.QPageSize: ...
def supportedPageSizes(self) -> typing.List[QtGui.QPageSize]: ...
def state(self) -> QPrinter.PrinterState: ...
def isRemote(self) -> bool: ...
@staticmethod
def printerInfo(printerName: str) -> 'QPrinterInfo': ...
def makeAndModel(self) -> str: ...
def location(self) -> str: ...
def description(self) -> str: ...
@staticmethod
def defaultPrinter() -> 'QPrinterInfo': ...
@staticmethod
def availablePrinters() -> typing.List['QPrinterInfo']: ...
def supportedSizesWithNames(self) -> typing.List[typing.Tuple[str, QtCore.QSizeF]]: ...
def supportedPaperSizes(self) -> typing.List[QtGui.QPagedPaintDevice.PageSize]: ...
def isDefault(self) -> bool: ...
def isNull(self) -> bool: ...
def printerName(self) -> str: ...
class QPrintPreviewDialog(QtWidgets.QDialog):
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
@typing.overload
def __init__(self, printer: QPrinter, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def paintRequested(self, printer: QPrinter) -> None: ...
def done(self, result: int) -> None: ...
def printer(self) -> QPrinter: ...
@typing.overload
def open(self) -> None: ...
@typing.overload
def open(self, slot: PYQT_SLOT) -> None: ...
def setVisible(self, visible: bool) -> None: ...
class QPrintPreviewWidget(QtWidgets.QWidget):
class ZoomMode(int): ...
CustomZoom = ... # type: 'QPrintPreviewWidget.ZoomMode'
FitToWidth = ... # type: 'QPrintPreviewWidget.ZoomMode'
FitInView = ... # type: 'QPrintPreviewWidget.ZoomMode'
class ViewMode(int): ...
SinglePageView = ... # type: 'QPrintPreviewWidget.ViewMode'
FacingPagesView = ... # type: 'QPrintPreviewWidget.ViewMode'
AllPagesView = ... # type: 'QPrintPreviewWidget.ViewMode'
@typing.overload
def __init__(self, printer: QPrinter, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def pageCount(self) -> int: ...
def previewChanged(self) -> None: ...
def paintRequested(self, printer: QPrinter) -> None: ...
def updatePreview(self) -> None: ...
def setAllPagesViewMode(self) -> None: ...
def setFacingPagesViewMode(self) -> None: ...
def setSinglePageViewMode(self) -> None: ...
def setPortraitOrientation(self) -> None: ...
def setLandscapeOrientation(self) -> None: ...
def fitInView(self) -> None: ...
def fitToWidth(self) -> None: ...
def setCurrentPage(self, pageNumber: int) -> None: ...
def setZoomMode(self, zoomMode: 'QPrintPreviewWidget.ZoomMode') -> None: ...
def setViewMode(self, viewMode: 'QPrintPreviewWidget.ViewMode') -> None: ...
def setOrientation(self, orientation: QPrinter.Orientation) -> None: ...
def setZoomFactor(self, zoomFactor: float) -> None: ...
def zoomOut(self, factor: float = ...) -> None: ...
def zoomIn(self, factor: float = ...) -> None: ...
def print(self) -> None: ...
def print_(self) -> None: ...
def setVisible(self, visible: bool) -> None: ...
def currentPage(self) -> int: ...
def zoomMode(self) -> 'QPrintPreviewWidget.ZoomMode': ...
def viewMode(self) -> 'QPrintPreviewWidget.ViewMode': ...
def orientation(self) -> QPrinter.Orientation: ...
def zoomFactor(self) -> float: ...

View File

@ -1,646 +0,0 @@
# The PEP 484 type hints stub file for the QtQml module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtNetwork
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QJSEngine(QtCore.QObject):
class Extension(int): ...
TranslationExtension = ... # type: 'QJSEngine.Extension'
ConsoleExtension = ... # type: 'QJSEngine.Extension'
GarbageCollectionExtension = ... # type: 'QJSEngine.Extension'
AllExtensions = ... # type: 'QJSEngine.Extension'
class Extensions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QJSEngine.Extensions', 'QJSEngine.Extension']) -> None: ...
@typing.overload
def __init__(self, a0: 'QJSEngine.Extensions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QJSEngine.Extensions': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, parent: QtCore.QObject) -> None: ...
@typing.overload
def throwError(self, message: str) -> None: ...
@typing.overload
def throwError(self, errorType: 'QJSValue.ErrorType', message: str = ...) -> None: ...
def newErrorObject(self, errorType: 'QJSValue.ErrorType', message: str = ...) -> 'QJSValue': ...
def importModule(self, fileName: str) -> 'QJSValue': ...
def newQMetaObject(self, metaObject: QtCore.QMetaObject) -> 'QJSValue': ...
def installExtensions(self, extensions: typing.Union['QJSEngine.Extensions', 'QJSEngine.Extension'], object: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str] = ...) -> None: ...
def installTranslatorFunctions(self, object: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str] = ...) -> None: ...
def collectGarbage(self) -> None: ...
def newQObject(self, object: QtCore.QObject) -> 'QJSValue': ...
def newArray(self, length: int = ...) -> 'QJSValue': ...
def newObject(self) -> 'QJSValue': ...
def evaluate(self, program: str, fileName: str = ..., lineNumber: int = ...) -> 'QJSValue': ...
def globalObject(self) -> 'QJSValue': ...
class QJSValue(sip.simplewrapper):
class ErrorType(int): ...
GenericError = ... # type: 'QJSValue.ErrorType'
EvalError = ... # type: 'QJSValue.ErrorType'
RangeError = ... # type: 'QJSValue.ErrorType'
ReferenceError = ... # type: 'QJSValue.ErrorType'
SyntaxError = ... # type: 'QJSValue.ErrorType'
TypeError = ... # type: 'QJSValue.ErrorType'
URIError = ... # type: 'QJSValue.ErrorType'
class SpecialValue(int): ...
NullValue = ... # type: 'QJSValue.SpecialValue'
UndefinedValue = ... # type: 'QJSValue.SpecialValue'
@typing.overload
def __init__(self, value: 'QJSValue.SpecialValue' = ...) -> None: ...
@typing.overload
def __init__(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ...
def errorType(self) -> 'QJSValue.ErrorType': ...
def callAsConstructor(self, args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ...
def callWithInstance(self, instance: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str], args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ...
def call(self, args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ...
def isCallable(self) -> bool: ...
def deleteProperty(self, name: str) -> bool: ...
def hasOwnProperty(self, name: str) -> bool: ...
def hasProperty(self, name: str) -> bool: ...
@typing.overload
def setProperty(self, name: str, value: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ...
@typing.overload
def setProperty(self, arrayIndex: int, value: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ...
@typing.overload
def property(self, name: str) -> 'QJSValue': ...
@typing.overload
def property(self, arrayIndex: int) -> 'QJSValue': ...
def setPrototype(self, prototype: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ...
def prototype(self) -> 'QJSValue': ...
def strictlyEquals(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> bool: ...
def equals(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> bool: ...
def toDateTime(self) -> QtCore.QDateTime: ...
def toQObject(self) -> QtCore.QObject: ...
def toVariant(self) -> typing.Any: ...
def toBool(self) -> bool: ...
def toUInt(self) -> int: ...
def toInt(self) -> int: ...
def toNumber(self) -> float: ...
def toString(self) -> str: ...
def isError(self) -> bool: ...
def isArray(self) -> bool: ...
def isRegExp(self) -> bool: ...
def isDate(self) -> bool: ...
def isObject(self) -> bool: ...
def isQObject(self) -> bool: ...
def isVariant(self) -> bool: ...
def isUndefined(self) -> bool: ...
def isString(self) -> bool: ...
def isNull(self) -> bool: ...
def isNumber(self) -> bool: ...
def isBool(self) -> bool: ...
class QJSValueIterator(sip.simplewrapper):
def __init__(self, value: typing.Union[QJSValue, QJSValue.SpecialValue, bool, int, float, str]) -> None: ...
def value(self) -> QJSValue: ...
def name(self) -> str: ...
def next(self) -> bool: ...
def hasNext(self) -> bool: ...
class QQmlAbstractUrlInterceptor(sip.simplewrapper):
class DataType(int): ...
QmlFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType'
JavaScriptFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType'
QmldirFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType'
UrlString = ... # type: 'QQmlAbstractUrlInterceptor.DataType'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlAbstractUrlInterceptor') -> None: ...
def intercept(self, path: QtCore.QUrl, type: 'QQmlAbstractUrlInterceptor.DataType') -> QtCore.QUrl: ...
class QQmlEngine(QJSEngine):
class ObjectOwnership(int): ...
CppOwnership = ... # type: 'QQmlEngine.ObjectOwnership'
JavaScriptOwnership = ... # type: 'QQmlEngine.ObjectOwnership'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def singletonInstance(self, qmlTypeId: int) -> QtCore.QObject: ...
def retranslate(self) -> None: ...
def offlineStorageDatabaseFilePath(self, databaseName: str) -> str: ...
def exit(self, retCode: int) -> None: ...
def warnings(self, warnings: typing.Iterable['QQmlError']) -> None: ...
def quit(self) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
@staticmethod
def objectOwnership(a0: QtCore.QObject) -> 'QQmlEngine.ObjectOwnership': ...
@staticmethod
def setObjectOwnership(a0: QtCore.QObject, a1: 'QQmlEngine.ObjectOwnership') -> None: ...
@staticmethod
def setContextForObject(a0: QtCore.QObject, a1: 'QQmlContext') -> None: ...
@staticmethod
def contextForObject(a0: QtCore.QObject) -> 'QQmlContext': ...
def setOutputWarningsToStandardError(self, a0: bool) -> None: ...
def outputWarningsToStandardError(self) -> bool: ...
def setBaseUrl(self, a0: QtCore.QUrl) -> None: ...
def baseUrl(self) -> QtCore.QUrl: ...
def offlineStoragePath(self) -> str: ...
def setOfflineStoragePath(self, dir: str) -> None: ...
def incubationController(self) -> 'QQmlIncubationController': ...
def setIncubationController(self, a0: 'QQmlIncubationController') -> None: ...
def removeImageProvider(self, id: str) -> None: ...
def imageProvider(self, id: str) -> 'QQmlImageProviderBase': ...
def addImageProvider(self, id: str, a1: 'QQmlImageProviderBase') -> None: ...
def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ...
def networkAccessManagerFactory(self) -> 'QQmlNetworkAccessManagerFactory': ...
def setNetworkAccessManagerFactory(self, a0: 'QQmlNetworkAccessManagerFactory') -> None: ...
def importPlugin(self, filePath: str, uri: str, errors: typing.Iterable['QQmlError']) -> bool: ...
def addNamedBundle(self, name: str, fileName: str) -> bool: ...
def addPluginPath(self, dir: str) -> None: ...
def setPluginPathList(self, paths: typing.Iterable[str]) -> None: ...
def pluginPathList(self) -> typing.List[str]: ...
def addImportPath(self, dir: str) -> None: ...
def setImportPathList(self, paths: typing.Iterable[str]) -> None: ...
def importPathList(self) -> typing.List[str]: ...
def trimComponentCache(self) -> None: ...
def clearComponentCache(self) -> None: ...
def rootContext(self) -> 'QQmlContext': ...
class QQmlApplicationEngine(QQmlEngine):
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, url: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, filePath: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def objectCreated(self, object: QtCore.QObject, url: QtCore.QUrl) -> None: ...
def loadData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], url: QtCore.QUrl = ...) -> None: ...
@typing.overload
def load(self, url: QtCore.QUrl) -> None: ...
@typing.overload
def load(self, filePath: str) -> None: ...
def rootObjects(self) -> typing.List[QtCore.QObject]: ...
class QQmlComponent(QtCore.QObject):
class Status(int): ...
Null = ... # type: 'QQmlComponent.Status'
Ready = ... # type: 'QQmlComponent.Status'
Loading = ... # type: 'QQmlComponent.Status'
Error = ... # type: 'QQmlComponent.Status'
class CompilationMode(int): ...
PreferSynchronous = ... # type: 'QQmlComponent.CompilationMode'
Asynchronous = ... # type: 'QQmlComponent.CompilationMode'
@typing.overload
def __init__(self, a0: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, a0: QQmlEngine, fileName: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, a0: QQmlEngine, fileName: str, mode: 'QQmlComponent.CompilationMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, a0: QQmlEngine, url: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, a0: QQmlEngine, url: QtCore.QUrl, mode: 'QQmlComponent.CompilationMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def engine(self) -> QQmlEngine: ...
def progressChanged(self, a0: float) -> None: ...
def statusChanged(self, a0: 'QQmlComponent.Status') -> None: ...
def setData(self, a0: typing.Union[QtCore.QByteArray, bytes, bytearray], baseUrl: QtCore.QUrl) -> None: ...
@typing.overload
def loadUrl(self, url: QtCore.QUrl) -> None: ...
@typing.overload
def loadUrl(self, url: QtCore.QUrl, mode: 'QQmlComponent.CompilationMode') -> None: ...
def creationContext(self) -> 'QQmlContext': ...
def completeCreate(self) -> None: ...
def beginCreate(self, a0: 'QQmlContext') -> QtCore.QObject: ...
@typing.overload
def create(self, context: typing.Optional['QQmlContext'] = ...) -> QtCore.QObject: ...
@typing.overload
def create(self, a0: 'QQmlIncubator', context: typing.Optional['QQmlContext'] = ..., forContext: typing.Optional['QQmlContext'] = ...) -> None: ...
def url(self) -> QtCore.QUrl: ...
def progress(self) -> float: ...
def errors(self) -> typing.List['QQmlError']: ...
def isLoading(self) -> bool: ...
def isError(self) -> bool: ...
def isReady(self) -> bool: ...
def isNull(self) -> bool: ...
def status(self) -> 'QQmlComponent.Status': ...
class QQmlContext(QtCore.QObject):
class PropertyPair(sip.simplewrapper):
name = ... # type: str
value = ... # type: typing.Any
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlContext.PropertyPair') -> None: ...
@typing.overload
def __init__(self, engine: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, parentContext: 'QQmlContext', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def setContextProperties(self, properties: typing.Iterable['QQmlContext.PropertyPair']) -> None: ...
def baseUrl(self) -> QtCore.QUrl: ...
def setBaseUrl(self, a0: QtCore.QUrl) -> None: ...
def resolvedUrl(self, a0: QtCore.QUrl) -> QtCore.QUrl: ...
def nameForObject(self, a0: QtCore.QObject) -> str: ...
@typing.overload
def setContextProperty(self, a0: str, a1: QtCore.QObject) -> None: ...
@typing.overload
def setContextProperty(self, a0: str, a1: typing.Any) -> None: ...
def contextProperty(self, a0: str) -> typing.Any: ...
def setContextObject(self, a0: QtCore.QObject) -> None: ...
def contextObject(self) -> QtCore.QObject: ...
def parentContext(self) -> 'QQmlContext': ...
def engine(self) -> QQmlEngine: ...
def isValid(self) -> bool: ...
class QQmlImageProviderBase(sip.wrapper):
class Flag(int): ...
ForceAsynchronousImageLoading = ... # type: 'QQmlImageProviderBase.Flag'
class ImageType(int): ...
Image = ... # type: 'QQmlImageProviderBase.ImageType'
Pixmap = ... # type: 'QQmlImageProviderBase.ImageType'
Texture = ... # type: 'QQmlImageProviderBase.ImageType'
ImageResponse = ... # type: 'QQmlImageProviderBase.ImageType'
class Flags(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QQmlImageProviderBase.Flags', 'QQmlImageProviderBase.Flag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlImageProviderBase.Flags') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QQmlImageProviderBase.Flags': ...
def __int__(self) -> int: ...
def __init__(self, a0: 'QQmlImageProviderBase') -> None: ...
def flags(self) -> 'QQmlImageProviderBase.Flags': ...
def imageType(self) -> 'QQmlImageProviderBase.ImageType': ...
class QQmlError(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlError') -> None: ...
def setMessageType(self, messageType: QtCore.QtMsgType) -> None: ...
def messageType(self) -> QtCore.QtMsgType: ...
def setObject(self, a0: QtCore.QObject) -> None: ...
def object(self) -> QtCore.QObject: ...
def toString(self) -> str: ...
def setColumn(self, a0: int) -> None: ...
def column(self) -> int: ...
def setLine(self, a0: int) -> None: ...
def line(self) -> int: ...
def setDescription(self, a0: str) -> None: ...
def description(self) -> str: ...
def setUrl(self, a0: QtCore.QUrl) -> None: ...
def url(self) -> QtCore.QUrl: ...
def isValid(self) -> bool: ...
class QQmlExpression(QtCore.QObject):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: QQmlContext, a1: QtCore.QObject, a2: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlScriptString', context: typing.Optional[QQmlContext] = ..., scope: typing.Optional[QtCore.QObject] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def valueChanged(self) -> None: ...
def evaluate(self) -> typing.Tuple[typing.Any, bool]: ...
def error(self) -> QQmlError: ...
def clearError(self) -> None: ...
def hasError(self) -> bool: ...
def scopeObject(self) -> QtCore.QObject: ...
def setSourceLocation(self, fileName: str, line: int, column: int = ...) -> None: ...
def columnNumber(self) -> int: ...
def lineNumber(self) -> int: ...
def sourceFile(self) -> str: ...
def setNotifyOnValueChanged(self, a0: bool) -> None: ...
def notifyOnValueChanged(self) -> bool: ...
def setExpression(self, a0: str) -> None: ...
def expression(self) -> str: ...
def context(self) -> QQmlContext: ...
def engine(self) -> QQmlEngine: ...
class QQmlExtensionPlugin(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def baseUrl(self) -> QtCore.QUrl: ...
def initializeEngine(self, engine: QQmlEngine, uri: str) -> None: ...
def registerTypes(self, uri: str) -> None: ...
class QQmlFileSelector(QtCore.QObject):
def __init__(self, engine: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def selector(self) -> QtCore.QFileSelector: ...
@staticmethod
def get(a0: QQmlEngine) -> 'QQmlFileSelector': ...
def setExtraSelectors(self, strings: typing.Iterable[str]) -> None: ...
def setSelector(self, selector: QtCore.QFileSelector) -> None: ...
class QQmlIncubator(sip.simplewrapper):
class Status(int): ...
Null = ... # type: 'QQmlIncubator.Status'
Ready = ... # type: 'QQmlIncubator.Status'
Loading = ... # type: 'QQmlIncubator.Status'
Error = ... # type: 'QQmlIncubator.Status'
class IncubationMode(int): ...
Asynchronous = ... # type: 'QQmlIncubator.IncubationMode'
AsynchronousIfNested = ... # type: 'QQmlIncubator.IncubationMode'
Synchronous = ... # type: 'QQmlIncubator.IncubationMode'
def __init__(self, mode: 'QQmlIncubator.IncubationMode' = ...) -> None: ...
def setInitialState(self, a0: QtCore.QObject) -> None: ...
def statusChanged(self, a0: 'QQmlIncubator.Status') -> None: ...
def object(self) -> QtCore.QObject: ...
def status(self) -> 'QQmlIncubator.Status': ...
def incubationMode(self) -> 'QQmlIncubator.IncubationMode': ...
def errors(self) -> typing.List[QQmlError]: ...
def isLoading(self) -> bool: ...
def isError(self) -> bool: ...
def isReady(self) -> bool: ...
def isNull(self) -> bool: ...
def forceCompletion(self) -> None: ...
def clear(self) -> None: ...
class QQmlIncubationController(sip.simplewrapper):
def __init__(self) -> None: ...
def incubatingObjectCountChanged(self, a0: int) -> None: ...
def incubateFor(self, msecs: int) -> None: ...
def incubatingObjectCount(self) -> int: ...
def engine(self) -> QQmlEngine: ...
class QQmlListReference(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: QtCore.QObject, property: str, engine: typing.Optional[QQmlEngine] = ...) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlListReference') -> None: ...
def count(self) -> int: ...
def clear(self) -> bool: ...
def at(self, a0: int) -> QtCore.QObject: ...
def append(self, a0: QtCore.QObject) -> bool: ...
def isReadable(self) -> bool: ...
def isManipulable(self) -> bool: ...
def canCount(self) -> bool: ...
def canClear(self) -> bool: ...
def canAt(self) -> bool: ...
def canAppend(self) -> bool: ...
def listElementType(self) -> QtCore.QMetaObject: ...
def object(self) -> QtCore.QObject: ...
def isValid(self) -> bool: ...
class QQmlNetworkAccessManagerFactory(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlNetworkAccessManagerFactory') -> None: ...
def create(self, parent: QtCore.QObject) -> QtNetwork.QNetworkAccessManager: ...
class QQmlParserStatus(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlParserStatus') -> None: ...
def componentComplete(self) -> None: ...
def classBegin(self) -> None: ...
class QQmlProperty(sip.simplewrapper):
class Type(int): ...
Invalid = ... # type: 'QQmlProperty.Type'
Property = ... # type: 'QQmlProperty.Type'
SignalProperty = ... # type: 'QQmlProperty.Type'
class PropertyTypeCategory(int): ...
InvalidCategory = ... # type: 'QQmlProperty.PropertyTypeCategory'
List = ... # type: 'QQmlProperty.PropertyTypeCategory'
Object = ... # type: 'QQmlProperty.PropertyTypeCategory'
Normal = ... # type: 'QQmlProperty.PropertyTypeCategory'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: QtCore.QObject) -> None: ...
@typing.overload
def __init__(self, a0: QtCore.QObject, a1: QQmlContext) -> None: ...
@typing.overload
def __init__(self, a0: QtCore.QObject, a1: QQmlEngine) -> None: ...
@typing.overload
def __init__(self, a0: QtCore.QObject, a1: str) -> None: ...
@typing.overload
def __init__(self, a0: QtCore.QObject, a1: str, a2: QQmlContext) -> None: ...
@typing.overload
def __init__(self, a0: QtCore.QObject, a1: str, a2: QQmlEngine) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlProperty') -> None: ...
def method(self) -> QtCore.QMetaMethod: ...
def property(self) -> QtCore.QMetaProperty: ...
def index(self) -> int: ...
def object(self) -> QtCore.QObject: ...
def isResettable(self) -> bool: ...
def isDesignable(self) -> bool: ...
def isWritable(self) -> bool: ...
@typing.overload
def connectNotifySignal(self, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connectNotifySignal(self, dest: QtCore.QObject, method: int) -> bool: ...
def needsNotifySignal(self) -> bool: ...
def hasNotifySignal(self) -> bool: ...
def reset(self) -> bool: ...
@typing.overload
def write(self, a0: typing.Any) -> bool: ...
@typing.overload
@staticmethod
def write(a0: QtCore.QObject, a1: str, a2: typing.Any) -> bool: ...
@typing.overload
@staticmethod
def write(a0: QtCore.QObject, a1: str, a2: typing.Any, a3: QQmlContext) -> bool: ...
@typing.overload
@staticmethod
def write(a0: QtCore.QObject, a1: str, a2: typing.Any, a3: QQmlEngine) -> bool: ...
@typing.overload
def read(self) -> typing.Any: ...
@typing.overload
@staticmethod
def read(a0: QtCore.QObject, a1: str) -> typing.Any: ...
@typing.overload
@staticmethod
def read(a0: QtCore.QObject, a1: str, a2: QQmlContext) -> typing.Any: ...
@typing.overload
@staticmethod
def read(a0: QtCore.QObject, a1: str, a2: QQmlEngine) -> typing.Any: ...
def name(self) -> str: ...
def propertyTypeName(self) -> str: ...
def propertyTypeCategory(self) -> 'QQmlProperty.PropertyTypeCategory': ...
def propertyType(self) -> int: ...
def isSignalProperty(self) -> bool: ...
def isProperty(self) -> bool: ...
def isValid(self) -> bool: ...
def type(self) -> 'QQmlProperty.Type': ...
def __hash__(self) -> int: ...
class QQmlPropertyMap(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def updateValue(self, key: str, input: typing.Any) -> typing.Any: ...
def valueChanged(self, key: str, value: typing.Any) -> None: ...
def __getitem__(self, key: str) -> typing.Any: ...
def contains(self, key: str) -> bool: ...
def isEmpty(self) -> bool: ...
def __len__(self) -> int: ...
def size(self) -> int: ...
def count(self) -> int: ...
def keys(self) -> typing.List[str]: ...
def clear(self, key: str) -> None: ...
def insert(self, key: str, value: typing.Any) -> None: ...
def value(self, key: str) -> typing.Any: ...
class QQmlPropertyValueSource(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlPropertyValueSource') -> None: ...
def setTarget(self, a0: QQmlProperty) -> None: ...
class QQmlScriptString(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QQmlScriptString') -> None: ...
def booleanLiteral(self) -> typing.Tuple[bool, bool]: ...
def numberLiteral(self) -> typing.Tuple[float, bool]: ...
def stringLiteral(self) -> str: ...
def isNullLiteral(self) -> bool: ...
def isUndefinedLiteral(self) -> bool: ...
def isEmpty(self) -> bool: ...
@typing.overload
def qmlRegisterUncreatableType(a0: type, uri: str, major: int, minor: int, qmlName: str, reason: str) -> int: ...
@typing.overload
def qmlRegisterUncreatableType(a0: type, revision: int, uri: str, major: int, minor: int, qmlName: str, reason: str) -> int: ...
@typing.overload
def qmlRegisterType(url: QtCore.QUrl, uri: str, major: int, minor: int, qmlName: str) -> int: ...
@typing.overload
def qmlRegisterType(a0: type, attachedProperties: type = ...) -> int: ...
@typing.overload
def qmlRegisterType(a0: type, uri: str, major: int, minor: int, qmlName: str, attachedProperties: type = ...) -> int: ...
@typing.overload
def qmlRegisterType(a0: type, revision: int, uri: str, major: int, minor: int, qmlName: str, attachedProperties: type = ...) -> int: ...
@typing.overload
def qmlRegisterSingletonType(url: QtCore.QUrl, uri: str, major: int, minor: int, qmlName: str) -> int: ...
@typing.overload
def qmlRegisterSingletonType(a0: type, uri: str, major: int, minor: int, typeName: str, factory: typing.Callable[[QQmlEngine, QJSEngine], typing.Any]) -> int: ...
def qmlRegisterRevision(a0: type, revision: int, uri: str, major: int, minor: int, attachedProperties: type = ...) -> int: ...
def qmlAttachedPropertiesObject(a0: type, object: QtCore.QObject, create: bool = ...) -> QtCore.QObject: ...
def qjsEngine(a0: QtCore.QObject) -> QJSEngine: ...
def qmlTypeId(uri: str, versionMajor: int, versionMinor: int, qmlName: str) -> int: ...
def qmlClearTypeRegistrations() -> None: ...

File diff suppressed because it is too large Load Diff

View File

@ -1,102 +0,0 @@
# The PEP 484 type hints stub file for the QtQuickWidgets module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtQuick
from PyQt5 import QtQml
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QQuickWidget(QtWidgets.QWidget):
class Status(int): ...
Null = ... # type: 'QQuickWidget.Status'
Ready = ... # type: 'QQuickWidget.Status'
Loading = ... # type: 'QQuickWidget.Status'
Error = ... # type: 'QQuickWidget.Status'
class ResizeMode(int): ...
SizeViewToRootObject = ... # type: 'QQuickWidget.ResizeMode'
SizeRootObjectToView = ... # type: 'QQuickWidget.ResizeMode'
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def __init__(self, engine: QtQml.QQmlEngine, parent: QtWidgets.QWidget) -> None: ...
@typing.overload
def __init__(self, source: QtCore.QUrl, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def focusNextPrevChild(self, next: bool) -> bool: ...
def quickWindow(self) -> QtQuick.QQuickWindow: ...
def setClearColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
def grabFramebuffer(self) -> QtGui.QImage: ...
def paintEvent(self, event: QtGui.QPaintEvent) -> None: ...
def dropEvent(self, a0: QtGui.QDropEvent) -> None: ...
def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ...
def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ...
def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ...
def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ...
def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ...
def hideEvent(self, a0: QtGui.QHideEvent) -> None: ...
def showEvent(self, a0: QtGui.QShowEvent) -> None: ...
def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ...
def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ...
def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ...
def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ...
def sceneGraphError(self, error: QtQuick.QQuickWindow.SceneGraphError, message: str) -> None: ...
def statusChanged(self, a0: 'QQuickWidget.Status') -> None: ...
def setSource(self, a0: QtCore.QUrl) -> None: ...
def format(self) -> QtGui.QSurfaceFormat: ...
def setFormat(self, format: QtGui.QSurfaceFormat) -> None: ...
def initialSize(self) -> QtCore.QSize: ...
def sizeHint(self) -> QtCore.QSize: ...
def errors(self) -> typing.List[QtQml.QQmlError]: ...
def status(self) -> 'QQuickWidget.Status': ...
def setResizeMode(self, a0: 'QQuickWidget.ResizeMode') -> None: ...
def resizeMode(self) -> 'QQuickWidget.ResizeMode': ...
def rootObject(self) -> QtQuick.QQuickItem: ...
def rootContext(self) -> QtQml.QQmlContext: ...
def engine(self) -> QtQml.QQmlEngine: ...
def source(self) -> QtCore.QUrl: ...

View File

@ -1,191 +0,0 @@
# The PEP 484 type hints stub file for the QtRemoteObjects module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QAbstractItemModelReplica(QtCore.QAbstractItemModel):
def initialized(self) -> None: ...
def setRootCacheSize(self, rootCacheSize: int) -> None: ...
def rootCacheSize(self) -> int: ...
def hasData(self, index: QtCore.QModelIndex, role: int) -> bool: ...
def isInitialized(self) -> bool: ...
def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ...
def availableRoles(self) -> typing.List[int]: ...
def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ...
def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ...
def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ...
def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
def selectionModel(self) -> QtCore.QItemSelectionModel: ...
class QRemoteObjectReplica(QtCore.QObject):
class State(int): ...
Uninitialized = ... # type: 'QRemoteObjectReplica.State'
Default = ... # type: 'QRemoteObjectReplica.State'
Valid = ... # type: 'QRemoteObjectReplica.State'
Suspect = ... # type: 'QRemoteObjectReplica.State'
SignatureMismatch = ... # type: 'QRemoteObjectReplica.State'
def stateChanged(self, state: 'QRemoteObjectReplica.State', oldState: 'QRemoteObjectReplica.State') -> None: ...
def initialized(self) -> None: ...
def setNode(self, node: 'QRemoteObjectNode') -> None: ...
def node(self) -> 'QRemoteObjectNode': ...
def state(self) -> 'QRemoteObjectReplica.State': ...
def isInitialized(self) -> bool: ...
def waitForSource(self, timeout: int = ...) -> bool: ...
def isReplicaValid(self) -> bool: ...
class QRemoteObjectDynamicReplica(QRemoteObjectReplica): ...
class QRemoteObjectAbstractPersistedStore(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def restoreProperties(self, repName: str, repSig: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[typing.Any]: ...
def saveProperties(self, repName: str, repSig: typing.Union[QtCore.QByteArray, bytes, bytearray], values: typing.Iterable[typing.Any]) -> None: ...
class QRemoteObjectNode(QtCore.QObject):
class ErrorCode(int): ...
NoError = ... # type: 'QRemoteObjectNode.ErrorCode'
RegistryNotAcquired = ... # type: 'QRemoteObjectNode.ErrorCode'
RegistryAlreadyHosted = ... # type: 'QRemoteObjectNode.ErrorCode'
NodeIsNoServer = ... # type: 'QRemoteObjectNode.ErrorCode'
ServerAlreadyCreated = ... # type: 'QRemoteObjectNode.ErrorCode'
UnintendedRegistryHosting = ... # type: 'QRemoteObjectNode.ErrorCode'
OperationNotValidOnClientNode = ... # type: 'QRemoteObjectNode.ErrorCode'
SourceNotRegistered = ... # type: 'QRemoteObjectNode.ErrorCode'
MissingObjectName = ... # type: 'QRemoteObjectNode.ErrorCode'
HostUrlInvalid = ... # type: 'QRemoteObjectNode.ErrorCode'
ProtocolMismatch = ... # type: 'QRemoteObjectNode.ErrorCode'
ListenFailed = ... # type: 'QRemoteObjectNode.ErrorCode'
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, registryAddress: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ...
def heartbeatIntervalChanged(self, heartbeatInterval: int) -> None: ...
def error(self, errorCode: 'QRemoteObjectNode.ErrorCode') -> None: ...
def remoteObjectRemoved(self, a0: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ...
def remoteObjectAdded(self, a0: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ...
def setHeartbeatInterval(self, interval: int) -> None: ...
def heartbeatInterval(self) -> int: ...
def lastError(self) -> 'QRemoteObjectNode.ErrorCode': ...
def setPersistedStore(self, persistedStore: QRemoteObjectAbstractPersistedStore) -> None: ...
def persistedStore(self) -> QRemoteObjectAbstractPersistedStore: ...
def registry(self) -> 'QRemoteObjectRegistry': ...
def waitForRegistry(self, timeout: int = ...) -> bool: ...
def setRegistryUrl(self, registryAddress: QtCore.QUrl) -> bool: ...
def registryUrl(self) -> QtCore.QUrl: ...
def acquireModel(self, name: str, action: 'QtRemoteObjects.InitialAction' = ..., rolesHint: typing.Iterable[int] = ...) -> QAbstractItemModelReplica: ...
def acquireDynamic(self, name: str) -> QRemoteObjectDynamicReplica: ...
def instances(self, typeName: str) -> typing.List[str]: ...
def setName(self, name: str) -> None: ...
def addClientSideConnection(self, ioDevice: QtCore.QIODevice) -> None: ...
def connectToNode(self, address: QtCore.QUrl) -> bool: ...
class QRemoteObjectHostBase(QRemoteObjectNode):
class AllowedSchemas(int): ...
BuiltInSchemasOnly = ... # type: 'QRemoteObjectHostBase.AllowedSchemas'
AllowExternalRegistration = ... # type: 'QRemoteObjectHostBase.AllowedSchemas'
def reverseProxy(self) -> bool: ...
def proxy(self, registryUrl: QtCore.QUrl, hostUrl: QtCore.QUrl = ...) -> bool: ...
def addHostSideConnection(self, ioDevice: QtCore.QIODevice) -> None: ...
def disableRemoting(self, remoteObject: QtCore.QObject) -> bool: ...
@typing.overload
def enableRemoting(self, object: QtCore.QObject, name: str = ...) -> bool: ...
@typing.overload
def enableRemoting(self, model: QtCore.QAbstractItemModel, name: str, roles: typing.Iterable[int], selectionModel: typing.Optional[QtCore.QItemSelectionModel] = ...) -> bool: ...
def setName(self, name: str) -> None: ...
class QRemoteObjectHost(QRemoteObjectHostBase):
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, address: QtCore.QUrl, registryAddress: QtCore.QUrl = ..., allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, address: QtCore.QUrl, parent: QtCore.QObject) -> None: ...
def setHostUrl(self, hostAddress: QtCore.QUrl, allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ...) -> bool: ...
def hostUrl(self) -> QtCore.QUrl: ...
class QRemoteObjectRegistryHost(QRemoteObjectHostBase):
def __init__(self, registryAddress: QtCore.QUrl = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def setRegistryUrl(self, registryUrl: QtCore.QUrl) -> bool: ...
class QRemoteObjectRegistry(QRemoteObjectReplica):
def remoteObjectRemoved(self, entry: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ...
def remoteObjectAdded(self, entry: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ...
def sourceLocations(self) -> typing.Dict[str, 'QRemoteObjectSourceLocationInfo']: ...
class QRemoteObjectSourceLocationInfo(sip.simplewrapper):
hostUrl = ... # type: QtCore.QUrl
typeName = ... # type: str
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, typeName_: str, hostUrl_: QtCore.QUrl) -> None: ...
@typing.overload
def __init__(self, a0: 'QRemoteObjectSourceLocationInfo') -> None: ...
class QtRemoteObjects(sip.simplewrapper):
class InitialAction(int): ...
FetchRootSize = ... # type: 'QtRemoteObjects.InitialAction'
PrefetchData = ... # type: 'QtRemoteObjects.InitialAction'

View File

@ -1,663 +0,0 @@
# The PEP 484 type hints stub file for the QtSensors module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QSensorReading(QtCore.QObject):
def value(self, index: int) -> typing.Any: ...
def valueCount(self) -> int: ...
def setTimestamp(self, timestamp: int) -> None: ...
def timestamp(self) -> int: ...
class QAccelerometerReading(QSensorReading):
def setZ(self, z: float) -> None: ...
def z(self) -> float: ...
def setY(self, y: float) -> None: ...
def y(self) -> float: ...
def setX(self, x: float) -> None: ...
def x(self) -> float: ...
class QSensorFilter(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QSensorFilter') -> None: ...
def filter(self, reading: QSensorReading) -> bool: ...
class QAccelerometerFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QAccelerometerFilter') -> None: ...
def filter(self, reading: QAccelerometerReading) -> bool: ...
class QSensor(QtCore.QObject):
class AxesOrientationMode(int): ...
FixedOrientation = ... # type: 'QSensor.AxesOrientationMode'
AutomaticOrientation = ... # type: 'QSensor.AxesOrientationMode'
UserOrientation = ... # type: 'QSensor.AxesOrientationMode'
class Feature(int): ...
Buffering = ... # type: 'QSensor.Feature'
AlwaysOn = ... # type: 'QSensor.Feature'
GeoValues = ... # type: 'QSensor.Feature'
FieldOfView = ... # type: 'QSensor.Feature'
AccelerationMode = ... # type: 'QSensor.Feature'
SkipDuplicates = ... # type: 'QSensor.Feature'
AxesOrientation = ... # type: 'QSensor.Feature'
PressureSensorTemperature = ... # type: 'QSensor.Feature'
def __init__(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def bufferSizeChanged(self, bufferSize: int) -> None: ...
def efficientBufferSizeChanged(self, efficientBufferSize: int) -> None: ...
def maxBufferSizeChanged(self, maxBufferSize: int) -> None: ...
def userOrientationChanged(self, userOrientation: int) -> None: ...
def currentOrientationChanged(self, currentOrientation: int) -> None: ...
def axesOrientationModeChanged(self, axesOrientationMode: 'QSensor.AxesOrientationMode') -> None: ...
def skipDuplicatesChanged(self, skipDuplicates: bool) -> None: ...
def dataRateChanged(self) -> None: ...
def alwaysOnChanged(self) -> None: ...
def availableSensorsChanged(self) -> None: ...
def sensorError(self, error: int) -> None: ...
def readingChanged(self) -> None: ...
def activeChanged(self) -> None: ...
def busyChanged(self) -> None: ...
def stop(self) -> None: ...
def start(self) -> bool: ...
def setBufferSize(self, bufferSize: int) -> None: ...
def bufferSize(self) -> int: ...
def setEfficientBufferSize(self, efficientBufferSize: int) -> None: ...
def efficientBufferSize(self) -> int: ...
def setMaxBufferSize(self, maxBufferSize: int) -> None: ...
def maxBufferSize(self) -> int: ...
def setUserOrientation(self, userOrientation: int) -> None: ...
def userOrientation(self) -> int: ...
def setCurrentOrientation(self, currentOrientation: int) -> None: ...
def currentOrientation(self) -> int: ...
def setAxesOrientationMode(self, axesOrientationMode: 'QSensor.AxesOrientationMode') -> None: ...
def axesOrientationMode(self) -> 'QSensor.AxesOrientationMode': ...
def isFeatureSupported(self, feature: 'QSensor.Feature') -> bool: ...
@staticmethod
def defaultSensorForType(type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ...
@staticmethod
def sensorsForType(type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ...
@staticmethod
def sensorTypes() -> typing.List[QtCore.QByteArray]: ...
def reading(self) -> QSensorReading: ...
def filters(self) -> typing.List[QSensorFilter]: ...
def removeFilter(self, filter: QSensorFilter) -> None: ...
def addFilter(self, filter: QSensorFilter) -> None: ...
def error(self) -> int: ...
def description(self) -> str: ...
def setOutputRange(self, index: int) -> None: ...
def outputRange(self) -> int: ...
def outputRanges(self) -> typing.List['qoutputrange']: ...
def setDataRate(self, rate: int) -> None: ...
def dataRate(self) -> int: ...
def availableDataRates(self) -> typing.List[typing.Tuple[int, int]]: ...
def setSkipDuplicates(self, skipDuplicates: bool) -> None: ...
def skipDuplicates(self) -> bool: ...
def setAlwaysOn(self, alwaysOn: bool) -> None: ...
def isAlwaysOn(self) -> bool: ...
def isActive(self) -> bool: ...
def setActive(self, active: bool) -> None: ...
def isBusy(self) -> bool: ...
def isConnectedToBackend(self) -> bool: ...
def connectToBackend(self) -> bool: ...
def type(self) -> QtCore.QByteArray: ...
def setIdentifier(self, identifier: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def identifier(self) -> QtCore.QByteArray: ...
class QAccelerometer(QSensor):
class AccelerationMode(int): ...
Combined = ... # type: 'QAccelerometer.AccelerationMode'
Gravity = ... # type: 'QAccelerometer.AccelerationMode'
User = ... # type: 'QAccelerometer.AccelerationMode'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def accelerationModeChanged(self, accelerationMode: 'QAccelerometer.AccelerationMode') -> None: ...
def reading(self) -> QAccelerometerReading: ...
def setAccelerationMode(self, accelerationMode: 'QAccelerometer.AccelerationMode') -> None: ...
def accelerationMode(self) -> 'QAccelerometer.AccelerationMode': ...
class QAltimeterReading(QSensorReading):
def setAltitude(self, altitude: float) -> None: ...
def altitude(self) -> float: ...
class QAltimeterFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QAltimeterFilter') -> None: ...
def filter(self, reading: QAltimeterReading) -> bool: ...
class QAltimeter(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QAltimeterReading: ...
class QAmbientLightReading(QSensorReading):
class LightLevel(int): ...
Undefined = ... # type: 'QAmbientLightReading.LightLevel'
Dark = ... # type: 'QAmbientLightReading.LightLevel'
Twilight = ... # type: 'QAmbientLightReading.LightLevel'
Light = ... # type: 'QAmbientLightReading.LightLevel'
Bright = ... # type: 'QAmbientLightReading.LightLevel'
Sunny = ... # type: 'QAmbientLightReading.LightLevel'
def setLightLevel(self, lightLevel: 'QAmbientLightReading.LightLevel') -> None: ...
def lightLevel(self) -> 'QAmbientLightReading.LightLevel': ...
class QAmbientLightFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QAmbientLightFilter') -> None: ...
def filter(self, reading: QAmbientLightReading) -> bool: ...
class QAmbientLightSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QAmbientLightReading: ...
class QAmbientTemperatureReading(QSensorReading):
def setTemperature(self, temperature: float) -> None: ...
def temperature(self) -> float: ...
class QAmbientTemperatureFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QAmbientTemperatureFilter') -> None: ...
def filter(self, reading: QAmbientTemperatureReading) -> bool: ...
class QAmbientTemperatureSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QAmbientTemperatureReading: ...
class QCompassReading(QSensorReading):
def setCalibrationLevel(self, calibrationLevel: float) -> None: ...
def calibrationLevel(self) -> float: ...
def setAzimuth(self, azimuth: float) -> None: ...
def azimuth(self) -> float: ...
class QCompassFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QCompassFilter') -> None: ...
def filter(self, reading: QCompassReading) -> bool: ...
class QCompass(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QCompassReading: ...
class QDistanceReading(QSensorReading):
def setDistance(self, distance: float) -> None: ...
def distance(self) -> float: ...
class QDistanceFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDistanceFilter') -> None: ...
def filter(self, reading: QDistanceReading) -> bool: ...
class QDistanceSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QDistanceReading: ...
class QGyroscopeReading(QSensorReading):
def setZ(self, z: float) -> None: ...
def z(self) -> float: ...
def setY(self, y: float) -> None: ...
def y(self) -> float: ...
def setX(self, x: float) -> None: ...
def x(self) -> float: ...
class QGyroscopeFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QGyroscopeFilter') -> None: ...
def filter(self, reading: QGyroscopeReading) -> bool: ...
class QGyroscope(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QGyroscopeReading: ...
class QHolsterReading(QSensorReading):
def setHolstered(self, holstered: bool) -> None: ...
def holstered(self) -> bool: ...
class QHolsterFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QHolsterFilter') -> None: ...
def filter(self, reading: QHolsterReading) -> bool: ...
class QHolsterSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QHolsterReading: ...
class QHumidityReading(QSensorReading):
def setAbsoluteHumidity(self, value: float) -> None: ...
def absoluteHumidity(self) -> float: ...
def setRelativeHumidity(self, percent: float) -> None: ...
def relativeHumidity(self) -> float: ...
class QHumidityFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QHumidityFilter') -> None: ...
def filter(self, reading: QHumidityReading) -> bool: ...
class QHumiditySensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QHumidityReading: ...
class QIRProximityReading(QSensorReading):
def setReflectance(self, reflectance: float) -> None: ...
def reflectance(self) -> float: ...
class QIRProximityFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QIRProximityFilter') -> None: ...
def filter(self, reading: QIRProximityReading) -> bool: ...
class QIRProximitySensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QIRProximityReading: ...
class QLidReading(QSensorReading):
def frontLidChanged(self, closed: bool) -> None: ...
def backLidChanged(self, closed: bool) -> None: ...
def setFrontLidClosed(self, closed: bool) -> None: ...
def frontLidClosed(self) -> bool: ...
def setBackLidClosed(self, closed: bool) -> None: ...
def backLidClosed(self) -> bool: ...
class QLidFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QLidFilter') -> None: ...
def filter(self, reading: QLidReading) -> bool: ...
class QLidSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QLidReading: ...
class QLightReading(QSensorReading):
def setLux(self, lux: float) -> None: ...
def lux(self) -> float: ...
class QLightFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QLightFilter') -> None: ...
def filter(self, reading: QLightReading) -> bool: ...
class QLightSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def fieldOfViewChanged(self, fieldOfView: float) -> None: ...
def setFieldOfView(self, fieldOfView: float) -> None: ...
def fieldOfView(self) -> float: ...
def reading(self) -> QLightReading: ...
class QMagnetometerReading(QSensorReading):
def setCalibrationLevel(self, calibrationLevel: float) -> None: ...
def calibrationLevel(self) -> float: ...
def setZ(self, z: float) -> None: ...
def z(self) -> float: ...
def setY(self, y: float) -> None: ...
def y(self) -> float: ...
def setX(self, x: float) -> None: ...
def x(self) -> float: ...
class QMagnetometerFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QMagnetometerFilter') -> None: ...
def filter(self, reading: QMagnetometerReading) -> bool: ...
class QMagnetometer(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def returnGeoValuesChanged(self, returnGeoValues: bool) -> None: ...
def setReturnGeoValues(self, returnGeoValues: bool) -> None: ...
def returnGeoValues(self) -> bool: ...
def reading(self) -> QMagnetometerReading: ...
class QOrientationReading(QSensorReading):
class Orientation(int): ...
Undefined = ... # type: 'QOrientationReading.Orientation'
TopUp = ... # type: 'QOrientationReading.Orientation'
TopDown = ... # type: 'QOrientationReading.Orientation'
LeftUp = ... # type: 'QOrientationReading.Orientation'
RightUp = ... # type: 'QOrientationReading.Orientation'
FaceUp = ... # type: 'QOrientationReading.Orientation'
FaceDown = ... # type: 'QOrientationReading.Orientation'
def setOrientation(self, orientation: 'QOrientationReading.Orientation') -> None: ...
def orientation(self) -> 'QOrientationReading.Orientation': ...
class QOrientationFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QOrientationFilter') -> None: ...
def filter(self, reading: QOrientationReading) -> bool: ...
class QOrientationSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QOrientationReading: ...
class QPressureReading(QSensorReading):
def setTemperature(self, temperature: float) -> None: ...
def temperature(self) -> float: ...
def setPressure(self, pressure: float) -> None: ...
def pressure(self) -> float: ...
class QPressureFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QPressureFilter') -> None: ...
def filter(self, reading: QPressureReading) -> bool: ...
class QPressureSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QPressureReading: ...
class QProximityReading(QSensorReading):
def setClose(self, close: bool) -> None: ...
def close(self) -> bool: ...
class QProximityFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QProximityFilter') -> None: ...
def filter(self, reading: QProximityReading) -> bool: ...
class QProximitySensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def reading(self) -> QProximityReading: ...
class qoutputrange(sip.simplewrapper):
accuracy = ... # type: float
maximum = ... # type: float
minimum = ... # type: float
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'qoutputrange') -> None: ...
class QTapReading(QSensorReading):
class TapDirection(int): ...
Undefined = ... # type: 'QTapReading.TapDirection'
X = ... # type: 'QTapReading.TapDirection'
Y = ... # type: 'QTapReading.TapDirection'
Z = ... # type: 'QTapReading.TapDirection'
X_Pos = ... # type: 'QTapReading.TapDirection'
Y_Pos = ... # type: 'QTapReading.TapDirection'
Z_Pos = ... # type: 'QTapReading.TapDirection'
X_Neg = ... # type: 'QTapReading.TapDirection'
Y_Neg = ... # type: 'QTapReading.TapDirection'
Z_Neg = ... # type: 'QTapReading.TapDirection'
X_Both = ... # type: 'QTapReading.TapDirection'
Y_Both = ... # type: 'QTapReading.TapDirection'
Z_Both = ... # type: 'QTapReading.TapDirection'
def setDoubleTap(self, doubleTap: bool) -> None: ...
def isDoubleTap(self) -> bool: ...
def setTapDirection(self, tapDirection: 'QTapReading.TapDirection') -> None: ...
def tapDirection(self) -> 'QTapReading.TapDirection': ...
class QTapFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QTapFilter') -> None: ...
def filter(self, reading: QTapReading) -> bool: ...
class QTapSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def returnDoubleTapEventsChanged(self, returnDoubleTapEvents: bool) -> None: ...
def setReturnDoubleTapEvents(self, returnDoubleTapEvents: bool) -> None: ...
def returnDoubleTapEvents(self) -> bool: ...
def reading(self) -> QTapReading: ...
class QTiltReading(QSensorReading):
def setXRotation(self, x: float) -> None: ...
def xRotation(self) -> float: ...
def setYRotation(self, y: float) -> None: ...
def yRotation(self) -> float: ...
class QTiltFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QTiltFilter') -> None: ...
def filter(self, reading: QTiltReading) -> bool: ...
class QTiltSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def calibrate(self) -> None: ...
def reading(self) -> QTiltReading: ...
class QRotationReading(QSensorReading):
def setFromEuler(self, x: float, y: float, z: float) -> None: ...
def z(self) -> float: ...
def y(self) -> float: ...
def x(self) -> float: ...
class QRotationFilter(QSensorFilter):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QRotationFilter') -> None: ...
def filter(self, reading: QRotationReading) -> bool: ...
class QRotationSensor(QSensor):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def hasZChanged(self, hasZ: bool) -> None: ...
def setHasZ(self, hasZ: bool) -> None: ...
def hasZ(self) -> bool: ...
def reading(self) -> QRotationReading: ...

View File

@ -1,239 +0,0 @@
# The PEP 484 type hints stub file for the QtSerialPort module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QSerialPort(QtCore.QIODevice):
class SerialPortError(int): ...
NoError = ... # type: 'QSerialPort.SerialPortError'
DeviceNotFoundError = ... # type: 'QSerialPort.SerialPortError'
PermissionError = ... # type: 'QSerialPort.SerialPortError'
OpenError = ... # type: 'QSerialPort.SerialPortError'
ParityError = ... # type: 'QSerialPort.SerialPortError'
FramingError = ... # type: 'QSerialPort.SerialPortError'
BreakConditionError = ... # type: 'QSerialPort.SerialPortError'
WriteError = ... # type: 'QSerialPort.SerialPortError'
ReadError = ... # type: 'QSerialPort.SerialPortError'
ResourceError = ... # type: 'QSerialPort.SerialPortError'
UnsupportedOperationError = ... # type: 'QSerialPort.SerialPortError'
TimeoutError = ... # type: 'QSerialPort.SerialPortError'
NotOpenError = ... # type: 'QSerialPort.SerialPortError'
UnknownError = ... # type: 'QSerialPort.SerialPortError'
class DataErrorPolicy(int): ...
SkipPolicy = ... # type: 'QSerialPort.DataErrorPolicy'
PassZeroPolicy = ... # type: 'QSerialPort.DataErrorPolicy'
IgnorePolicy = ... # type: 'QSerialPort.DataErrorPolicy'
StopReceivingPolicy = ... # type: 'QSerialPort.DataErrorPolicy'
UnknownPolicy = ... # type: 'QSerialPort.DataErrorPolicy'
class PinoutSignal(int): ...
NoSignal = ... # type: 'QSerialPort.PinoutSignal'
TransmittedDataSignal = ... # type: 'QSerialPort.PinoutSignal'
ReceivedDataSignal = ... # type: 'QSerialPort.PinoutSignal'
DataTerminalReadySignal = ... # type: 'QSerialPort.PinoutSignal'
DataCarrierDetectSignal = ... # type: 'QSerialPort.PinoutSignal'
DataSetReadySignal = ... # type: 'QSerialPort.PinoutSignal'
RingIndicatorSignal = ... # type: 'QSerialPort.PinoutSignal'
RequestToSendSignal = ... # type: 'QSerialPort.PinoutSignal'
ClearToSendSignal = ... # type: 'QSerialPort.PinoutSignal'
SecondaryTransmittedDataSignal = ... # type: 'QSerialPort.PinoutSignal'
SecondaryReceivedDataSignal = ... # type: 'QSerialPort.PinoutSignal'
class FlowControl(int): ...
NoFlowControl = ... # type: 'QSerialPort.FlowControl'
HardwareControl = ... # type: 'QSerialPort.FlowControl'
SoftwareControl = ... # type: 'QSerialPort.FlowControl'
UnknownFlowControl = ... # type: 'QSerialPort.FlowControl'
class StopBits(int): ...
OneStop = ... # type: 'QSerialPort.StopBits'
OneAndHalfStop = ... # type: 'QSerialPort.StopBits'
TwoStop = ... # type: 'QSerialPort.StopBits'
UnknownStopBits = ... # type: 'QSerialPort.StopBits'
class Parity(int): ...
NoParity = ... # type: 'QSerialPort.Parity'
EvenParity = ... # type: 'QSerialPort.Parity'
OddParity = ... # type: 'QSerialPort.Parity'
SpaceParity = ... # type: 'QSerialPort.Parity'
MarkParity = ... # type: 'QSerialPort.Parity'
UnknownParity = ... # type: 'QSerialPort.Parity'
class DataBits(int): ...
Data5 = ... # type: 'QSerialPort.DataBits'
Data6 = ... # type: 'QSerialPort.DataBits'
Data7 = ... # type: 'QSerialPort.DataBits'
Data8 = ... # type: 'QSerialPort.DataBits'
UnknownDataBits = ... # type: 'QSerialPort.DataBits'
class BaudRate(int): ...
Baud1200 = ... # type: 'QSerialPort.BaudRate'
Baud2400 = ... # type: 'QSerialPort.BaudRate'
Baud4800 = ... # type: 'QSerialPort.BaudRate'
Baud9600 = ... # type: 'QSerialPort.BaudRate'
Baud19200 = ... # type: 'QSerialPort.BaudRate'
Baud38400 = ... # type: 'QSerialPort.BaudRate'
Baud57600 = ... # type: 'QSerialPort.BaudRate'
Baud115200 = ... # type: 'QSerialPort.BaudRate'
UnknownBaud = ... # type: 'QSerialPort.BaudRate'
class Direction(int): ...
Input = ... # type: 'QSerialPort.Direction'
Output = ... # type: 'QSerialPort.Direction'
AllDirections = ... # type: 'QSerialPort.Direction'
class Directions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction']) -> None: ...
@typing.overload
def __init__(self, a0: 'QSerialPort.Directions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QSerialPort.Directions': ...
def __int__(self) -> int: ...
class PinoutSignals(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QSerialPort.PinoutSignals', 'QSerialPort.PinoutSignal']) -> None: ...
@typing.overload
def __init__(self, a0: 'QSerialPort.PinoutSignals') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QSerialPort.PinoutSignals': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, info: 'QSerialPortInfo', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def errorOccurred(self, error: 'QSerialPort.SerialPortError') -> None: ...
def breakEnabledChanged(self, set: bool) -> None: ...
def isBreakEnabled(self) -> bool: ...
def handle(self) -> int: ...
def writeData(self, data: bytes) -> int: ...
def readLineData(self, maxlen: int) -> bytes: ...
def readData(self, maxlen: int) -> bytes: ...
def settingsRestoredOnCloseChanged(self, restore: bool) -> None: ...
def requestToSendChanged(self, set: bool) -> None: ...
def dataTerminalReadyChanged(self, set: bool) -> None: ...
def dataErrorPolicyChanged(self, policy: 'QSerialPort.DataErrorPolicy') -> None: ...
def flowControlChanged(self, flow: 'QSerialPort.FlowControl') -> None: ...
def stopBitsChanged(self, stopBits: 'QSerialPort.StopBits') -> None: ...
def parityChanged(self, parity: 'QSerialPort.Parity') -> None: ...
def dataBitsChanged(self, dataBits: 'QSerialPort.DataBits') -> None: ...
def baudRateChanged(self, baudRate: int, directions: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction']) -> None: ...
def setBreakEnabled(self, enabled: bool = ...) -> bool: ...
def sendBreak(self, duration: int = ...) -> bool: ...
def waitForBytesWritten(self, msecs: int = ...) -> bool: ...
def waitForReadyRead(self, msecs: int = ...) -> bool: ...
def canReadLine(self) -> bool: ...
def bytesToWrite(self) -> int: ...
def bytesAvailable(self) -> int: ...
def isSequential(self) -> bool: ...
def setReadBufferSize(self, size: int) -> None: ...
def readBufferSize(self) -> int: ...
def clearError(self) -> None: ...
@typing.overload
def error(self) -> 'QSerialPort.SerialPortError': ...
@typing.overload
def error(self, serialPortError: 'QSerialPort.SerialPortError') -> None: ...
def dataErrorPolicy(self) -> 'QSerialPort.DataErrorPolicy': ...
def setDataErrorPolicy(self, policy: 'QSerialPort.DataErrorPolicy' = ...) -> bool: ...
def atEnd(self) -> bool: ...
def clear(self, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> bool: ...
def flush(self) -> bool: ...
def pinoutSignals(self) -> 'QSerialPort.PinoutSignals': ...
def isRequestToSend(self) -> bool: ...
def setRequestToSend(self, set: bool) -> bool: ...
def isDataTerminalReady(self) -> bool: ...
def setDataTerminalReady(self, set: bool) -> bool: ...
def flowControl(self) -> 'QSerialPort.FlowControl': ...
def setFlowControl(self, flow: 'QSerialPort.FlowControl') -> bool: ...
def stopBits(self) -> 'QSerialPort.StopBits': ...
def setStopBits(self, stopBits: 'QSerialPort.StopBits') -> bool: ...
def parity(self) -> 'QSerialPort.Parity': ...
def setParity(self, parity: 'QSerialPort.Parity') -> bool: ...
def dataBits(self) -> 'QSerialPort.DataBits': ...
def setDataBits(self, dataBits: 'QSerialPort.DataBits') -> bool: ...
def baudRate(self, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> int: ...
def setBaudRate(self, baudRate: int, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> bool: ...
def settingsRestoredOnClose(self) -> bool: ...
def setSettingsRestoredOnClose(self, restore: bool) -> None: ...
def close(self) -> None: ...
def open(self, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag]) -> bool: ...
def setPort(self, info: 'QSerialPortInfo') -> None: ...
def portName(self) -> str: ...
def setPortName(self, name: str) -> None: ...
class QSerialPortInfo(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, port: QSerialPort) -> None: ...
@typing.overload
def __init__(self, name: str) -> None: ...
@typing.overload
def __init__(self, other: 'QSerialPortInfo') -> None: ...
def serialNumber(self) -> str: ...
def isNull(self) -> bool: ...
@staticmethod
def availablePorts() -> typing.List['QSerialPortInfo']: ...
@staticmethod
def standardBaudRates() -> typing.List[int]: ...
def isValid(self) -> bool: ...
def isBusy(self) -> bool: ...
def hasProductIdentifier(self) -> bool: ...
def hasVendorIdentifier(self) -> bool: ...
def productIdentifier(self) -> int: ...
def vendorIdentifier(self) -> int: ...
def manufacturer(self) -> str: ...
def description(self) -> str: ...
def systemLocation(self) -> str: ...
def portName(self) -> str: ...
def swap(self, other: 'QSerialPortInfo') -> None: ...

View File

@ -1,668 +0,0 @@
# The PEP 484 type hints stub file for the QtSql module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QSqlDriverCreatorBase(sip.wrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QSqlDriverCreatorBase') -> None: ...
def createObject(self) -> 'QSqlDriver': ...
class QSqlDatabase(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QSqlDatabase') -> None: ...
@typing.overload
def __init__(self, type: str) -> None: ...
@typing.overload
def __init__(self, driver: 'QSqlDriver') -> None: ...
def numericalPrecisionPolicy(self) -> 'QSql.NumericalPrecisionPolicy': ...
def setNumericalPrecisionPolicy(self, precisionPolicy: 'QSql.NumericalPrecisionPolicy') -> None: ...
@staticmethod
def isDriverAvailable(name: str) -> bool: ...
@staticmethod
def registerSqlDriver(name: str, creator: QSqlDriverCreatorBase) -> None: ...
@staticmethod
def connectionNames() -> typing.List[str]: ...
@staticmethod
def drivers() -> typing.List[str]: ...
@staticmethod
def contains(connectionName: str = ...) -> bool: ...
@staticmethod
def removeDatabase(connectionName: str) -> None: ...
@staticmethod
def database(connectionName: str = ..., open: bool = ...) -> 'QSqlDatabase': ...
@typing.overload
@staticmethod
def cloneDatabase(other: 'QSqlDatabase', connectionName: str) -> 'QSqlDatabase': ...
@typing.overload
@staticmethod
def cloneDatabase(other: str, connectionName: str) -> 'QSqlDatabase': ...
@typing.overload
@staticmethod
def addDatabase(type: str, connectionName: str = ...) -> 'QSqlDatabase': ...
@typing.overload
@staticmethod
def addDatabase(driver: 'QSqlDriver', connectionName: str = ...) -> 'QSqlDatabase': ...
def driver(self) -> 'QSqlDriver': ...
def connectionName(self) -> str: ...
def connectOptions(self) -> str: ...
def port(self) -> int: ...
def driverName(self) -> str: ...
def hostName(self) -> str: ...
def password(self) -> str: ...
def userName(self) -> str: ...
def databaseName(self) -> str: ...
def setConnectOptions(self, options: str = ...) -> None: ...
def setPort(self, p: int) -> None: ...
def setHostName(self, host: str) -> None: ...
def setPassword(self, password: str) -> None: ...
def setUserName(self, name: str) -> None: ...
def setDatabaseName(self, name: str) -> None: ...
def rollback(self) -> bool: ...
def commit(self) -> bool: ...
def transaction(self) -> bool: ...
def isValid(self) -> bool: ...
def lastError(self) -> 'QSqlError': ...
def exec(self, query: str = ...) -> 'QSqlQuery': ...
def exec_(self, query: str = ...) -> 'QSqlQuery': ...
def record(self, tablename: str) -> 'QSqlRecord': ...
def primaryIndex(self, tablename: str) -> 'QSqlIndex': ...
def tables(self, type: 'QSql.TableType' = ...) -> typing.List[str]: ...
def isOpenError(self) -> bool: ...
def isOpen(self) -> bool: ...
def close(self) -> None: ...
@typing.overload
def open(self) -> bool: ...
@typing.overload
def open(self, user: str, password: str) -> bool: ...
class QSqlDriver(QtCore.QObject):
class DbmsType(int): ...
UnknownDbms = ... # type: 'QSqlDriver.DbmsType'
MSSqlServer = ... # type: 'QSqlDriver.DbmsType'
MySqlServer = ... # type: 'QSqlDriver.DbmsType'
PostgreSQL = ... # type: 'QSqlDriver.DbmsType'
Oracle = ... # type: 'QSqlDriver.DbmsType'
Sybase = ... # type: 'QSqlDriver.DbmsType'
SQLite = ... # type: 'QSqlDriver.DbmsType'
Interbase = ... # type: 'QSqlDriver.DbmsType'
DB2 = ... # type: 'QSqlDriver.DbmsType'
class NotificationSource(int): ...
UnknownSource = ... # type: 'QSqlDriver.NotificationSource'
SelfSource = ... # type: 'QSqlDriver.NotificationSource'
OtherSource = ... # type: 'QSqlDriver.NotificationSource'
class IdentifierType(int): ...
FieldName = ... # type: 'QSqlDriver.IdentifierType'
TableName = ... # type: 'QSqlDriver.IdentifierType'
class StatementType(int): ...
WhereStatement = ... # type: 'QSqlDriver.StatementType'
SelectStatement = ... # type: 'QSqlDriver.StatementType'
UpdateStatement = ... # type: 'QSqlDriver.StatementType'
InsertStatement = ... # type: 'QSqlDriver.StatementType'
DeleteStatement = ... # type: 'QSqlDriver.StatementType'
class DriverFeature(int): ...
Transactions = ... # type: 'QSqlDriver.DriverFeature'
QuerySize = ... # type: 'QSqlDriver.DriverFeature'
BLOB = ... # type: 'QSqlDriver.DriverFeature'
Unicode = ... # type: 'QSqlDriver.DriverFeature'
PreparedQueries = ... # type: 'QSqlDriver.DriverFeature'
NamedPlaceholders = ... # type: 'QSqlDriver.DriverFeature'
PositionalPlaceholders = ... # type: 'QSqlDriver.DriverFeature'
LastInsertId = ... # type: 'QSqlDriver.DriverFeature'
BatchOperations = ... # type: 'QSqlDriver.DriverFeature'
SimpleLocking = ... # type: 'QSqlDriver.DriverFeature'
LowPrecisionNumbers = ... # type: 'QSqlDriver.DriverFeature'
EventNotifications = ... # type: 'QSqlDriver.DriverFeature'
FinishQuery = ... # type: 'QSqlDriver.DriverFeature'
MultipleResultSets = ... # type: 'QSqlDriver.DriverFeature'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def dbmsType(self) -> 'QSqlDriver.DbmsType': ...
def numericalPrecisionPolicy(self) -> 'QSql.NumericalPrecisionPolicy': ...
def setNumericalPrecisionPolicy(self, precisionPolicy: 'QSql.NumericalPrecisionPolicy') -> None: ...
def stripDelimiters(self, identifier: str, type: 'QSqlDriver.IdentifierType') -> str: ...
def isIdentifierEscaped(self, identifier: str, type: 'QSqlDriver.IdentifierType') -> bool: ...
@typing.overload
def notification(self, name: str) -> None: ...
@typing.overload
def notification(self, name: str, source: 'QSqlDriver.NotificationSource', payload: typing.Any) -> None: ...
def subscribedToNotifications(self) -> typing.List[str]: ...
def unsubscribeFromNotification(self, name: str) -> bool: ...
def subscribeToNotification(self, name: str) -> bool: ...
def setLastError(self, e: 'QSqlError') -> None: ...
def setOpenError(self, e: bool) -> None: ...
def setOpen(self, o: bool) -> None: ...
def open(self, db: str, user: str = ..., password: str = ..., host: str = ..., port: int = ..., options: str = ...) -> bool: ...
def createResult(self) -> 'QSqlResult': ...
def close(self) -> None: ...
def hasFeature(self, f: 'QSqlDriver.DriverFeature') -> bool: ...
def handle(self) -> typing.Any: ...
def lastError(self) -> 'QSqlError': ...
def sqlStatement(self, type: 'QSqlDriver.StatementType', tableName: str, rec: 'QSqlRecord', preparedStatement: bool) -> str: ...
def escapeIdentifier(self, identifier: str, type: 'QSqlDriver.IdentifierType') -> str: ...
def formatValue(self, field: 'QSqlField', trimStrings: bool = ...) -> str: ...
def record(self, tableName: str) -> 'QSqlRecord': ...
def primaryIndex(self, tableName: str) -> 'QSqlIndex': ...
def tables(self, tableType: 'QSql.TableType') -> typing.List[str]: ...
def rollbackTransaction(self) -> bool: ...
def commitTransaction(self) -> bool: ...
def beginTransaction(self) -> bool: ...
def isOpenError(self) -> bool: ...
def isOpen(self) -> bool: ...
class QSqlError(sip.simplewrapper):
class ErrorType(int): ...
NoError = ... # type: 'QSqlError.ErrorType'
ConnectionError = ... # type: 'QSqlError.ErrorType'
StatementError = ... # type: 'QSqlError.ErrorType'
TransactionError = ... # type: 'QSqlError.ErrorType'
UnknownError = ... # type: 'QSqlError.ErrorType'
@typing.overload
def __init__(self, driverText: str = ..., databaseText: str = ..., type: 'QSqlError.ErrorType' = ..., errorCode: str = ...) -> None: ...
@typing.overload
def __init__(self, driverText: str, databaseText: str, type: 'QSqlError.ErrorType', number: int) -> None: ...
@typing.overload
def __init__(self, other: 'QSqlError') -> None: ...
def swap(self, other: 'QSqlError') -> None: ...
def nativeErrorCode(self) -> str: ...
def isValid(self) -> bool: ...
def text(self) -> str: ...
def setNumber(self, number: int) -> None: ...
def number(self) -> int: ...
def setType(self, type: 'QSqlError.ErrorType') -> None: ...
def type(self) -> 'QSqlError.ErrorType': ...
def setDatabaseText(self, databaseText: str) -> None: ...
def databaseText(self) -> str: ...
def setDriverText(self, driverText: str) -> None: ...
def driverText(self) -> str: ...
class QSqlField(sip.simplewrapper):
class RequiredStatus(int): ...
Unknown = ... # type: 'QSqlField.RequiredStatus'
Optional = ... # type: 'QSqlField.RequiredStatus'
Required = ... # type: 'QSqlField.RequiredStatus'
@typing.overload
def __init__(self, fieldName: str = ..., type: QtCore.QVariant.Type = ...) -> None: ...
@typing.overload
def __init__(self, fieldName: str, type: QtCore.QVariant.Type, tableName: str) -> None: ...
@typing.overload
def __init__(self, other: 'QSqlField') -> None: ...
def tableName(self) -> str: ...
def setTableName(self, tableName: str) -> None: ...
def isValid(self) -> bool: ...
def isGenerated(self) -> bool: ...
def typeID(self) -> int: ...
def defaultValue(self) -> typing.Any: ...
def precision(self) -> int: ...
def length(self) -> int: ...
def requiredStatus(self) -> 'QSqlField.RequiredStatus': ...
def setAutoValue(self, autoVal: bool) -> None: ...
def setGenerated(self, gen: bool) -> None: ...
def setSqlType(self, type: int) -> None: ...
def setDefaultValue(self, value: typing.Any) -> None: ...
def setPrecision(self, precision: int) -> None: ...
def setLength(self, fieldLength: int) -> None: ...
def setRequired(self, required: bool) -> None: ...
def setRequiredStatus(self, status: 'QSqlField.RequiredStatus') -> None: ...
def setType(self, type: QtCore.QVariant.Type) -> None: ...
def isAutoValue(self) -> bool: ...
def type(self) -> QtCore.QVariant.Type: ...
def clear(self) -> None: ...
def isReadOnly(self) -> bool: ...
def setReadOnly(self, readOnly: bool) -> None: ...
def isNull(self) -> bool: ...
def name(self) -> str: ...
def setName(self, name: str) -> None: ...
def value(self) -> typing.Any: ...
def setValue(self, value: typing.Any) -> None: ...
class QSqlRecord(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QSqlRecord') -> None: ...
def keyValues(self, keyFields: 'QSqlRecord') -> 'QSqlRecord': ...
def __len__(self) -> int: ...
def count(self) -> int: ...
def clearValues(self) -> None: ...
def clear(self) -> None: ...
def contains(self, name: str) -> bool: ...
def isEmpty(self) -> bool: ...
def remove(self, pos: int) -> None: ...
def insert(self, pos: int, field: QSqlField) -> None: ...
def replace(self, pos: int, field: QSqlField) -> None: ...
def append(self, field: QSqlField) -> None: ...
@typing.overload
def setGenerated(self, name: str, generated: bool) -> None: ...
@typing.overload
def setGenerated(self, i: int, generated: bool) -> None: ...
@typing.overload
def isGenerated(self, i: int) -> bool: ...
@typing.overload
def isGenerated(self, name: str) -> bool: ...
@typing.overload
def field(self, i: int) -> QSqlField: ...
@typing.overload
def field(self, name: str) -> QSqlField: ...
def fieldName(self, i: int) -> str: ...
def indexOf(self, name: str) -> int: ...
@typing.overload
def isNull(self, i: int) -> bool: ...
@typing.overload
def isNull(self, name: str) -> bool: ...
@typing.overload
def setNull(self, i: int) -> None: ...
@typing.overload
def setNull(self, name: str) -> None: ...
@typing.overload
def setValue(self, i: int, val: typing.Any) -> None: ...
@typing.overload
def setValue(self, name: str, val: typing.Any) -> None: ...
@typing.overload
def value(self, i: int) -> typing.Any: ...
@typing.overload
def value(self, name: str) -> typing.Any: ...
class QSqlIndex(QSqlRecord):
@typing.overload
def __init__(self, cursorName: str = ..., name: str = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QSqlIndex') -> None: ...
def setDescending(self, i: int, desc: bool) -> None: ...
def isDescending(self, i: int) -> bool: ...
@typing.overload
def append(self, field: QSqlField) -> None: ...
@typing.overload
def append(self, field: QSqlField, desc: bool) -> None: ...
def name(self) -> str: ...
def setName(self, name: str) -> None: ...
def cursorName(self) -> str: ...
def setCursorName(self, cursorName: str) -> None: ...
class QSqlQuery(sip.simplewrapper):
class BatchExecutionMode(int): ...
ValuesAsRows = ... # type: 'QSqlQuery.BatchExecutionMode'
ValuesAsColumns = ... # type: 'QSqlQuery.BatchExecutionMode'
@typing.overload
def __init__(self, r: 'QSqlResult') -> None: ...
@typing.overload
def __init__(self, query: str = ..., db: QSqlDatabase = ...) -> None: ...
@typing.overload
def __init__(self, db: QSqlDatabase) -> None: ...
@typing.overload
def __init__(self, other: 'QSqlQuery') -> None: ...
def nextResult(self) -> bool: ...
def finish(self) -> None: ...
def numericalPrecisionPolicy(self) -> 'QSql.NumericalPrecisionPolicy': ...
def setNumericalPrecisionPolicy(self, precisionPolicy: 'QSql.NumericalPrecisionPolicy') -> None: ...
def lastInsertId(self) -> typing.Any: ...
def executedQuery(self) -> str: ...
def boundValues(self) -> typing.Dict[str, typing.Any]: ...
@typing.overload
def boundValue(self, placeholder: str) -> typing.Any: ...
@typing.overload
def boundValue(self, pos: int) -> typing.Any: ...
def addBindValue(self, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag'] = ...) -> None: ...
@typing.overload
def bindValue(self, placeholder: str, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag'] = ...) -> None: ...
@typing.overload
def bindValue(self, pos: int, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag'] = ...) -> None: ...
def prepare(self, query: str) -> bool: ...
def execBatch(self, mode: 'QSqlQuery.BatchExecutionMode' = ...) -> bool: ...
def clear(self) -> None: ...
def last(self) -> bool: ...
def first(self) -> bool: ...
def previous(self) -> bool: ...
def next(self) -> bool: ...
def seek(self, index: int, relative: bool = ...) -> bool: ...
@typing.overload
def value(self, i: int) -> typing.Any: ...
@typing.overload
def value(self, name: str) -> typing.Any: ...
@typing.overload
def exec(self, query: str) -> bool: ...
@typing.overload
def exec(self) -> bool: ...
@typing.overload
def exec_(self, query: str) -> bool: ...
@typing.overload
def exec_(self) -> bool: ...
def setForwardOnly(self, forward: bool) -> None: ...
def record(self) -> QSqlRecord: ...
def isForwardOnly(self) -> bool: ...
def result(self) -> 'QSqlResult': ...
def driver(self) -> QSqlDriver: ...
def size(self) -> int: ...
def isSelect(self) -> bool: ...
def lastError(self) -> QSqlError: ...
def numRowsAffected(self) -> int: ...
def lastQuery(self) -> str: ...
def at(self) -> int: ...
@typing.overload
def isNull(self, field: int) -> bool: ...
@typing.overload
def isNull(self, name: str) -> bool: ...
def isActive(self) -> bool: ...
def isValid(self) -> bool: ...
class QSqlQueryModel(QtCore.QAbstractTableModel):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ...
def endRemoveColumns(self) -> None: ...
def beginRemoveColumns(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ...
def endInsertColumns(self) -> None: ...
def beginInsertColumns(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ...
def endRemoveRows(self) -> None: ...
def beginRemoveRows(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ...
def endInsertRows(self) -> None: ...
def beginInsertRows(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ...
def endResetModel(self) -> None: ...
def beginResetModel(self) -> None: ...
def setLastError(self, error: QSqlError) -> None: ...
def indexInQuery(self, item: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
def queryChange(self) -> None: ...
def canFetchMore(self, parent: QtCore.QModelIndex = ...) -> bool: ...
def fetchMore(self, parent: QtCore.QModelIndex = ...) -> None: ...
def lastError(self) -> QSqlError: ...
def clear(self) -> None: ...
def query(self) -> QSqlQuery: ...
@typing.overload
def setQuery(self, query: QSqlQuery) -> None: ...
@typing.overload
def setQuery(self, query: str, db: QSqlDatabase = ...) -> None: ...
def removeColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
def insertColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
def setHeaderData(self, section: int, orientation: QtCore.Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ...
def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ...
def data(self, item: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
@typing.overload
def record(self, row: int) -> QSqlRecord: ...
@typing.overload
def record(self) -> QSqlRecord: ...
def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
class QSqlRelationalDelegate(QtWidgets.QItemDelegate):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def setEditorData(self, editor: QtWidgets.QWidget, index: QtCore.QModelIndex) -> None: ...
def setModelData(self, editor: QtWidgets.QWidget, model: QtCore.QAbstractItemModel, index: QtCore.QModelIndex) -> None: ...
def createEditor(self, parent: QtWidgets.QWidget, option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> QtWidgets.QWidget: ...
class QSqlRelation(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, aTableName: str, indexCol: str, displayCol: str) -> None: ...
@typing.overload
def __init__(self, a0: 'QSqlRelation') -> None: ...
def swap(self, other: 'QSqlRelation') -> None: ...
def isValid(self) -> bool: ...
def displayColumn(self) -> str: ...
def indexColumn(self) -> str: ...
def tableName(self) -> str: ...
class QSqlTableModel(QSqlQueryModel):
class EditStrategy(int): ...
OnFieldChange = ... # type: 'QSqlTableModel.EditStrategy'
OnRowChange = ... # type: 'QSqlTableModel.EditStrategy'
OnManualSubmit = ... # type: 'QSqlTableModel.EditStrategy'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., db: QSqlDatabase = ...) -> None: ...
def primaryValues(self, row: int) -> QSqlRecord: ...
@typing.overload
def record(self) -> QSqlRecord: ...
@typing.overload
def record(self, row: int) -> QSqlRecord: ...
def selectRow(self, row: int) -> bool: ...
def indexInQuery(self, item: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
def setQuery(self, query: QSqlQuery) -> None: ...
def setPrimaryKey(self, key: QSqlIndex) -> None: ...
def selectStatement(self) -> str: ...
def orderByClause(self) -> str: ...
def deleteRowFromTable(self, row: int) -> bool: ...
def insertRowIntoTable(self, values: QSqlRecord) -> bool: ...
def updateRowInTable(self, row: int, values: QSqlRecord) -> bool: ...
def beforeDelete(self, row: int) -> None: ...
def beforeUpdate(self, row: int, record: QSqlRecord) -> None: ...
def beforeInsert(self, record: QSqlRecord) -> None: ...
def primeInsert(self, row: int, record: QSqlRecord) -> None: ...
def revertAll(self) -> None: ...
def submitAll(self) -> bool: ...
def revert(self) -> None: ...
def submit(self) -> bool: ...
def revertRow(self, row: int) -> None: ...
def setRecord(self, row: int, record: QSqlRecord) -> bool: ...
def insertRecord(self, row: int, record: QSqlRecord) -> bool: ...
def insertRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
def removeRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
def removeColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
def setFilter(self, filter: str) -> None: ...
def filter(self) -> str: ...
def setSort(self, column: int, order: QtCore.Qt.SortOrder) -> None: ...
def sort(self, column: int, order: QtCore.Qt.SortOrder) -> None: ...
def fieldIndex(self, fieldName: str) -> int: ...
def database(self) -> QSqlDatabase: ...
def primaryKey(self) -> QSqlIndex: ...
def editStrategy(self) -> 'QSqlTableModel.EditStrategy': ...
def setEditStrategy(self, strategy: 'QSqlTableModel.EditStrategy') -> None: ...
def clear(self) -> None: ...
@typing.overload
def isDirty(self, index: QtCore.QModelIndex) -> bool: ...
@typing.overload
def isDirty(self) -> bool: ...
def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ...
def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
def data(self, idx: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ...
def tableName(self) -> str: ...
def setTable(self, tableName: str) -> None: ...
def select(self) -> bool: ...
class QSqlRelationalTableModel(QSqlTableModel):
class JoinMode(int): ...
InnerJoin = ... # type: 'QSqlRelationalTableModel.JoinMode'
LeftJoin = ... # type: 'QSqlRelationalTableModel.JoinMode'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., db: QSqlDatabase = ...) -> None: ...
def setJoinMode(self, joinMode: 'QSqlRelationalTableModel.JoinMode') -> None: ...
def insertRowIntoTable(self, values: QSqlRecord) -> bool: ...
def orderByClause(self) -> str: ...
def updateRowInTable(self, row: int, values: QSqlRecord) -> bool: ...
def selectStatement(self) -> str: ...
def removeColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
def revertRow(self, row: int) -> None: ...
def relationModel(self, column: int) -> QSqlTableModel: ...
def relation(self, column: int) -> QSqlRelation: ...
def setRelation(self, column: int, relation: QSqlRelation) -> None: ...
def setTable(self, tableName: str) -> None: ...
def select(self) -> bool: ...
def clear(self) -> None: ...
def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
class QSqlResult(sip.wrapper):
class BindingSyntax(int): ...
PositionalBinding = ... # type: 'QSqlResult.BindingSyntax'
NamedBinding = ... # type: 'QSqlResult.BindingSyntax'
def __init__(self, db: QSqlDriver) -> None: ...
def lastInsertId(self) -> typing.Any: ...
def record(self) -> QSqlRecord: ...
def numRowsAffected(self) -> int: ...
def size(self) -> int: ...
def fetchLast(self) -> bool: ...
def fetchFirst(self) -> bool: ...
def fetchPrevious(self) -> bool: ...
def fetchNext(self) -> bool: ...
def fetch(self, i: int) -> bool: ...
def reset(self, sqlquery: str) -> bool: ...
def isNull(self, i: int) -> bool: ...
def data(self, i: int) -> typing.Any: ...
def bindingSyntax(self) -> 'QSqlResult.BindingSyntax': ...
def hasOutValues(self) -> bool: ...
def clear(self) -> None: ...
def boundValueName(self, pos: int) -> str: ...
def executedQuery(self) -> str: ...
def boundValues(self) -> typing.List[typing.Any]: ...
def boundValueCount(self) -> int: ...
@typing.overload
def bindValueType(self, placeholder: str) -> 'QSql.ParamType': ...
@typing.overload
def bindValueType(self, pos: int) -> 'QSql.ParamType': ...
@typing.overload
def boundValue(self, placeholder: str) -> typing.Any: ...
@typing.overload
def boundValue(self, pos: int) -> typing.Any: ...
def addBindValue(self, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag']) -> None: ...
@typing.overload
def bindValue(self, pos: int, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag']) -> None: ...
@typing.overload
def bindValue(self, placeholder: str, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag']) -> None: ...
def savePrepare(self, sqlquery: str) -> bool: ...
def prepare(self, query: str) -> bool: ...
def exec(self) -> bool: ...
def exec_(self) -> bool: ...
def setForwardOnly(self, forward: bool) -> None: ...
def setSelect(self, s: bool) -> None: ...
def setQuery(self, query: str) -> None: ...
def setLastError(self, e: QSqlError) -> None: ...
def setActive(self, a: bool) -> None: ...
def setAt(self, at: int) -> None: ...
def driver(self) -> QSqlDriver: ...
def isForwardOnly(self) -> bool: ...
def isSelect(self) -> bool: ...
def isActive(self) -> bool: ...
def isValid(self) -> bool: ...
def lastError(self) -> QSqlError: ...
def lastQuery(self) -> str: ...
def at(self) -> int: ...
def handle(self) -> typing.Any: ...
class QSql(sip.simplewrapper):
class NumericalPrecisionPolicy(int): ...
LowPrecisionInt32 = ... # type: 'QSql.NumericalPrecisionPolicy'
LowPrecisionInt64 = ... # type: 'QSql.NumericalPrecisionPolicy'
LowPrecisionDouble = ... # type: 'QSql.NumericalPrecisionPolicy'
HighPrecision = ... # type: 'QSql.NumericalPrecisionPolicy'
class TableType(int): ...
Tables = ... # type: 'QSql.TableType'
SystemTables = ... # type: 'QSql.TableType'
Views = ... # type: 'QSql.TableType'
AllTables = ... # type: 'QSql.TableType'
class ParamTypeFlag(int): ...
In = ... # type: 'QSql.ParamTypeFlag'
Out = ... # type: 'QSql.ParamTypeFlag'
InOut = ... # type: 'QSql.ParamTypeFlag'
Binary = ... # type: 'QSql.ParamTypeFlag'
class Location(int): ...
BeforeFirstRow = ... # type: 'QSql.Location'
AfterLastRow = ... # type: 'QSql.Location'
class ParamType(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QSql.ParamType') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QSql.ParamType': ...
def __int__(self) -> int: ...

View File

@ -1,143 +0,0 @@
# The PEP 484 type hints stub file for the QtSvg module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QGraphicsSvgItem(QtWidgets.QGraphicsObject):
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ...
@typing.overload
def __init__(self, fileName: str, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ...
def type(self) -> int: ...
def paint(self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def boundingRect(self) -> QtCore.QRectF: ...
def maximumCacheSize(self) -> QtCore.QSize: ...
def setMaximumCacheSize(self, size: QtCore.QSize) -> None: ...
def elementId(self) -> str: ...
def setElementId(self, id: str) -> None: ...
def renderer(self) -> 'QSvgRenderer': ...
def setSharedRenderer(self, renderer: 'QSvgRenderer') -> None: ...
class QSvgGenerator(QtGui.QPaintDevice):
def __init__(self) -> None: ...
def metric(self, metric: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ...
def paintEngine(self) -> QtGui.QPaintEngine: ...
@typing.overload
def setViewBox(self, viewBox: QtCore.QRect) -> None: ...
@typing.overload
def setViewBox(self, viewBox: QtCore.QRectF) -> None: ...
def viewBoxF(self) -> QtCore.QRectF: ...
def viewBox(self) -> QtCore.QRect: ...
def setDescription(self, description: str) -> None: ...
def description(self) -> str: ...
def setTitle(self, title: str) -> None: ...
def title(self) -> str: ...
def setResolution(self, resolution: int) -> None: ...
def resolution(self) -> int: ...
def setOutputDevice(self, outputDevice: QtCore.QIODevice) -> None: ...
def outputDevice(self) -> QtCore.QIODevice: ...
def setFileName(self, fileName: str) -> None: ...
def fileName(self) -> str: ...
def setSize(self, size: QtCore.QSize) -> None: ...
def size(self) -> QtCore.QSize: ...
class QSvgRenderer(QtCore.QObject):
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, filename: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, contents: QtCore.QXmlStreamReader, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def repaintNeeded(self) -> None: ...
@typing.overload
def render(self, p: QtGui.QPainter) -> None: ...
@typing.overload
def render(self, p: QtGui.QPainter, bounds: QtCore.QRectF) -> None: ...
@typing.overload
def render(self, painter: QtGui.QPainter, elementId: str, bounds: QtCore.QRectF = ...) -> None: ...
@typing.overload
def load(self, filename: str) -> bool: ...
@typing.overload
def load(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ...
@typing.overload
def load(self, contents: QtCore.QXmlStreamReader) -> bool: ...
def animationDuration(self) -> int: ...
def setCurrentFrame(self, a0: int) -> None: ...
def currentFrame(self) -> int: ...
def setFramesPerSecond(self, num: int) -> None: ...
def framesPerSecond(self) -> int: ...
def boundsOnElement(self, id: str) -> QtCore.QRectF: ...
def animated(self) -> bool: ...
@typing.overload
def setViewBox(self, viewbox: QtCore.QRect) -> None: ...
@typing.overload
def setViewBox(self, viewbox: QtCore.QRectF) -> None: ...
def viewBoxF(self) -> QtCore.QRectF: ...
def viewBox(self) -> QtCore.QRect: ...
def elementExists(self, id: str) -> bool: ...
def defaultSize(self) -> QtCore.QSize: ...
def isValid(self) -> bool: ...
class QSvgWidget(QtWidgets.QWidget):
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def __init__(self, file: str, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def paintEvent(self, event: QtGui.QPaintEvent) -> None: ...
@typing.overload
def load(self, file: str) -> None: ...
@typing.overload
def load(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def sizeHint(self) -> QtCore.QSize: ...
def renderer(self) -> QSvgRenderer: ...

View File

@ -1,169 +0,0 @@
# The PEP 484 type hints stub file for the QtTest module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QAbstractItemModelTester(QtCore.QObject):
class FailureReportingMode(int): ...
QtTest = ... # type: 'QAbstractItemModelTester.FailureReportingMode'
Warning = ... # type: 'QAbstractItemModelTester.FailureReportingMode'
Fatal = ... # type: 'QAbstractItemModelTester.FailureReportingMode'
@typing.overload
def __init__(self, model: QtCore.QAbstractItemModel, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, model: QtCore.QAbstractItemModel, mode: 'QAbstractItemModelTester.FailureReportingMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def failureReportingMode(self) -> 'QAbstractItemModelTester.FailureReportingMode': ...
def model(self) -> QtCore.QAbstractItemModel: ...
class QSignalSpy(QtCore.QObject):
def __init__(self, signal: pyqtBoundSignal) -> None: ...
def __delitem__(self, i: int) -> None: ...
def __setitem__(self, i: int, value: typing.Iterable[typing.Any]) -> None: ...
def __getitem__(self, i: int) -> typing.List[typing.Any]: ...
def __len__(self) -> int: ...
def wait(self, timeout: int = ...) -> bool: ...
def signal(self) -> QtCore.QByteArray: ...
def isValid(self) -> bool: ...
class QTest(sip.simplewrapper):
class KeyAction(int): ...
Press = ... # type: 'QTest.KeyAction'
Release = ... # type: 'QTest.KeyAction'
Click = ... # type: 'QTest.KeyAction'
Shortcut = ... # type: 'QTest.KeyAction'
class QTouchEventSequence(sip.simplewrapper):
def __init__(self, a0: 'QTest.QTouchEventSequence') -> None: ...
def commit(self, processEvents: bool = ...) -> None: ...
def stationary(self, touchId: int) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def release(self, touchId: int, pt: QtCore.QPoint, window: typing.Optional[QtGui.QWindow] = ...) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def release(self, touchId: int, pt: QtCore.QPoint, widget: QtWidgets.QWidget) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def move(self, touchId: int, pt: QtCore.QPoint, window: typing.Optional[QtGui.QWindow] = ...) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def move(self, touchId: int, pt: QtCore.QPoint, widget: QtWidgets.QWidget) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def press(self, touchId: int, pt: QtCore.QPoint, window: typing.Optional[QtGui.QWindow] = ...) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def press(self, touchId: int, pt: QtCore.QPoint, widget: QtWidgets.QWidget) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def touchEvent(self, widget: QtWidgets.QWidget, device: QtGui.QTouchDevice) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def touchEvent(self, window: QtGui.QWindow, device: QtGui.QTouchDevice) -> 'QTest.QTouchEventSequence': ...
@typing.overload
def qWaitForWindowExposed(self, window: QtGui.QWindow, timeout: int = ...) -> bool: ...
@typing.overload
def qWaitForWindowExposed(self, widget: QtWidgets.QWidget, timeout: int = ...) -> bool: ...
@typing.overload
def qWaitForWindowActive(self, window: QtGui.QWindow, timeout: int = ...) -> bool: ...
@typing.overload
def qWaitForWindowActive(self, widget: QtWidgets.QWidget, timeout: int = ...) -> bool: ...
def qWait(self, ms: int) -> None: ...
@typing.overload
def mouseRelease(self, widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mouseRelease(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mousePress(self, widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mousePress(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mouseMove(self, widget: QtWidgets.QWidget, pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mouseMove(self, window: QtGui.QWindow, pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mouseDClick(self, widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mouseDClick(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mouseClick(self, widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def mouseClick(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
@typing.overload
def keySequence(self, widget: QtWidgets.QWidget, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ...
@typing.overload
def keySequence(self, window: QtGui.QWindow, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ...
@typing.overload
def keyRelease(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyRelease(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyRelease(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyRelease(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyPress(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyPress(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyPress(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyPress(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget, ascii: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyEvent(self, action: 'QTest.KeyAction', window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyEvent(self, action: 'QTest.KeyAction', window: QtGui.QWindow, ascii: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
def keyClicks(self, widget: QtWidgets.QWidget, sequence: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyClick(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyClick(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyClick(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
@typing.overload
def keyClick(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
def qSleep(self, ms: int) -> None: ...

View File

@ -1,56 +0,0 @@
# The PEP 484 type hints stub file for the QtWebChannel module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QWebChannel(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def disconnectFrom(self, transport: 'QWebChannelAbstractTransport') -> None: ...
def connectTo(self, transport: 'QWebChannelAbstractTransport') -> None: ...
def blockUpdatesChanged(self, block: bool) -> None: ...
def setBlockUpdates(self, block: bool) -> None: ...
def blockUpdates(self) -> bool: ...
def deregisterObject(self, object: QtCore.QObject) -> None: ...
def registerObject(self, id: str, object: QtCore.QObject) -> None: ...
def registeredObjects(self) -> typing.Dict[str, QtCore.QObject]: ...
def registerObjects(self, objects: typing.Dict[str, QtCore.QObject]) -> None: ...
class QWebChannelAbstractTransport(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def messageReceived(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, str]], transport: 'QWebChannelAbstractTransport') -> None: ...
def sendMessage(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, str]]) -> None: ...

View File

@ -1,194 +0,0 @@
# The PEP 484 type hints stub file for the QtWebSockets module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtNetwork
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QMaskGenerator(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def nextMask(self) -> int: ...
def seed(self) -> bool: ...
class QWebSocket(QtCore.QObject):
def __init__(self, origin: str = ..., version: 'QWebSocketProtocol.Version' = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def bytesToWrite(self) -> int: ...
def preSharedKeyAuthenticationRequired(self, authenticator: QtNetwork.QSslPreSharedKeyAuthenticator) -> None: ...
def sslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ...
def bytesWritten(self, bytes: int) -> None: ...
def pong(self, elapsedTime: int, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def binaryMessageReceived(self, message: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def textMessageReceived(self, message: str) -> None: ...
def binaryFrameReceived(self, frame: typing.Union[QtCore.QByteArray, bytes, bytearray], isLastFrame: bool) -> None: ...
def textFrameReceived(self, frame: str, isLastFrame: bool) -> None: ...
def readChannelFinished(self) -> None: ...
def proxyAuthenticationRequired(self, proxy: QtNetwork.QNetworkProxy, pAuthenticator: QtNetwork.QAuthenticator) -> None: ...
def stateChanged(self, state: QtNetwork.QAbstractSocket.SocketState) -> None: ...
def disconnected(self) -> None: ...
def connected(self) -> None: ...
def aboutToClose(self) -> None: ...
def ping(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ...
@typing.overload
def open(self, url: QtCore.QUrl) -> None: ...
@typing.overload
def open(self, request: QtNetwork.QNetworkRequest) -> None: ...
def close(self, closeCode: 'QWebSocketProtocol.CloseCode' = ..., reason: str = ...) -> None: ...
def request(self) -> QtNetwork.QNetworkRequest: ...
def sslConfiguration(self) -> QtNetwork.QSslConfiguration: ...
def setSslConfiguration(self, sslConfiguration: QtNetwork.QSslConfiguration) -> None: ...
@typing.overload
def ignoreSslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ...
@typing.overload
def ignoreSslErrors(self) -> None: ...
def sendBinaryMessage(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> int: ...
def sendTextMessage(self, message: str) -> int: ...
def closeReason(self) -> str: ...
def closeCode(self) -> 'QWebSocketProtocol.CloseCode': ...
def origin(self) -> str: ...
def requestUrl(self) -> QtCore.QUrl: ...
def resourceName(self) -> str: ...
def version(self) -> 'QWebSocketProtocol.Version': ...
def state(self) -> QtNetwork.QAbstractSocket.SocketState: ...
def setPauseMode(self, pauseMode: typing.Union[QtNetwork.QAbstractSocket.PauseModes, QtNetwork.QAbstractSocket.PauseMode]) -> None: ...
def resume(self) -> None: ...
def setReadBufferSize(self, size: int) -> None: ...
def readBufferSize(self) -> int: ...
def maskGenerator(self) -> QMaskGenerator: ...
def setMaskGenerator(self, maskGenerator: QMaskGenerator) -> None: ...
def setProxy(self, networkProxy: QtNetwork.QNetworkProxy) -> None: ...
def proxy(self) -> QtNetwork.QNetworkProxy: ...
def peerPort(self) -> int: ...
def peerName(self) -> str: ...
def peerAddress(self) -> QtNetwork.QHostAddress: ...
def pauseMode(self) -> QtNetwork.QAbstractSocket.PauseModes: ...
def localPort(self) -> int: ...
def localAddress(self) -> QtNetwork.QHostAddress: ...
def isValid(self) -> bool: ...
def flush(self) -> bool: ...
def errorString(self) -> str: ...
@typing.overload
def error(self) -> QtNetwork.QAbstractSocket.SocketError: ...
@typing.overload
def error(self, error: QtNetwork.QAbstractSocket.SocketError) -> None: ...
def abort(self) -> None: ...
class QWebSocketCorsAuthenticator(sip.simplewrapper):
@typing.overload
def __init__(self, origin: str) -> None: ...
@typing.overload
def __init__(self, other: 'QWebSocketCorsAuthenticator') -> None: ...
def allowed(self) -> bool: ...
def setAllowed(self, allowed: bool) -> None: ...
def origin(self) -> str: ...
def swap(self, other: 'QWebSocketCorsAuthenticator') -> None: ...
class QWebSocketProtocol(sip.simplewrapper):
class CloseCode(int): ...
CloseCodeNormal = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeGoingAway = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeProtocolError = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeDatatypeNotSupported = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeReserved1004 = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeMissingStatusCode = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeAbnormalDisconnection = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeWrongDatatype = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodePolicyViolated = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeTooMuchData = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeMissingExtension = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeBadOperation = ... # type: 'QWebSocketProtocol.CloseCode'
CloseCodeTlsHandshakeFailed = ... # type: 'QWebSocketProtocol.CloseCode'
class Version(int): ...
VersionUnknown = ... # type: 'QWebSocketProtocol.Version'
Version0 = ... # type: 'QWebSocketProtocol.Version'
Version4 = ... # type: 'QWebSocketProtocol.Version'
Version5 = ... # type: 'QWebSocketProtocol.Version'
Version6 = ... # type: 'QWebSocketProtocol.Version'
Version7 = ... # type: 'QWebSocketProtocol.Version'
Version8 = ... # type: 'QWebSocketProtocol.Version'
Version13 = ... # type: 'QWebSocketProtocol.Version'
VersionLatest = ... # type: 'QWebSocketProtocol.Version'
class QWebSocketServer(QtCore.QObject):
class SslMode(int): ...
SecureMode = ... # type: 'QWebSocketServer.SslMode'
NonSecureMode = ... # type: 'QWebSocketServer.SslMode'
def __init__(self, serverName: str, secureMode: 'QWebSocketServer.SslMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def nativeDescriptor(self) -> sip.voidptr: ...
def setNativeDescriptor(self, descriptor: sip.voidptr) -> bool: ...
def preSharedKeyAuthenticationRequired(self, authenticator: QtNetwork.QSslPreSharedKeyAuthenticator) -> None: ...
def closed(self) -> None: ...
def sslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ...
def peerVerifyError(self, error: QtNetwork.QSslError) -> None: ...
def newConnection(self) -> None: ...
def originAuthenticationRequired(self, pAuthenticator: QWebSocketCorsAuthenticator) -> None: ...
def serverError(self, closeCode: QWebSocketProtocol.CloseCode) -> None: ...
def acceptError(self, socketError: QtNetwork.QAbstractSocket.SocketError) -> None: ...
def handleConnection(self, socket: QtNetwork.QTcpSocket) -> None: ...
def serverUrl(self) -> QtCore.QUrl: ...
def supportedVersions(self) -> typing.List[QWebSocketProtocol.Version]: ...
def sslConfiguration(self) -> QtNetwork.QSslConfiguration: ...
def setSslConfiguration(self, sslConfiguration: QtNetwork.QSslConfiguration) -> None: ...
def proxy(self) -> QtNetwork.QNetworkProxy: ...
def setProxy(self, networkProxy: QtNetwork.QNetworkProxy) -> None: ...
def serverName(self) -> str: ...
def setServerName(self, serverName: str) -> None: ...
def resumeAccepting(self) -> None: ...
def pauseAccepting(self) -> None: ...
def errorString(self) -> str: ...
def error(self) -> QWebSocketProtocol.CloseCode: ...
def nextPendingConnection(self) -> QWebSocket: ...
def hasPendingConnections(self) -> bool: ...
def socketDescriptor(self) -> int: ...
def setSocketDescriptor(self, socketDescriptor: int) -> bool: ...
def secureMode(self) -> 'QWebSocketServer.SslMode': ...
def serverAddress(self) -> QtNetwork.QHostAddress: ...
def serverPort(self) -> int: ...
def maxPendingConnections(self) -> int: ...
def setMaxPendingConnections(self, numConnections: int) -> None: ...
def isListening(self) -> bool: ...
def close(self) -> None: ...
def listen(self, address: typing.Union[QtNetwork.QHostAddress, QtNetwork.QHostAddress.SpecialAddress] = ..., port: int = ...) -> bool: ...

File diff suppressed because it is too large Load Diff

View File

@ -1,699 +0,0 @@
# The PEP 484 type hints stub file for the QtXml module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QXmlNamespaceSupport(sip.simplewrapper):
def __init__(self) -> None: ...
def reset(self) -> None: ...
def popContext(self) -> None: ...
def pushContext(self) -> None: ...
@typing.overload
def prefixes(self) -> typing.List[str]: ...
@typing.overload
def prefixes(self, a0: str) -> typing.List[str]: ...
def processName(self, a0: str, a1: bool, a2: str, a3: str) -> None: ...
def splitName(self, a0: str, a1: str, a2: str) -> None: ...
def uri(self, a0: str) -> str: ...
def prefix(self, a0: str) -> str: ...
def setPrefix(self, a0: str, a1: str) -> None: ...
class QXmlAttributes(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlAttributes') -> None: ...
def swap(self, other: 'QXmlAttributes') -> None: ...
def __len__(self) -> int: ...
def count(self) -> int: ...
def append(self, qName: str, uri: str, localPart: str, value: str) -> None: ...
def clear(self) -> None: ...
@typing.overload
def value(self, index: int) -> str: ...
@typing.overload
def value(self, qName: str) -> str: ...
@typing.overload
def value(self, uri: str, localName: str) -> str: ...
@typing.overload
def type(self, index: int) -> str: ...
@typing.overload
def type(self, qName: str) -> str: ...
@typing.overload
def type(self, uri: str, localName: str) -> str: ...
def uri(self, index: int) -> str: ...
def qName(self, index: int) -> str: ...
def localName(self, index: int) -> str: ...
def length(self) -> int: ...
@typing.overload
def index(self, qName: str) -> int: ...
@typing.overload
def index(self, uri: str, localPart: str) -> int: ...
class QXmlInputSource(sip.simplewrapper):
EndOfData = ... # type: int
EndOfDocument = ... # type: int
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, dev: QtCore.QIODevice) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlInputSource') -> None: ...
def fromRawData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], beginning: bool = ...) -> str: ...
def reset(self) -> None: ...
def next(self) -> str: ...
def data(self) -> str: ...
def fetchData(self) -> None: ...
@typing.overload
def setData(self, dat: str) -> None: ...
@typing.overload
def setData(self, dat: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
class QXmlParseException(sip.simplewrapper):
@typing.overload
def __init__(self, name: str = ..., column: int = ..., line: int = ..., publicId: str = ..., systemId: str = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QXmlParseException') -> None: ...
def message(self) -> str: ...
def systemId(self) -> str: ...
def publicId(self) -> str: ...
def lineNumber(self) -> int: ...
def columnNumber(self) -> int: ...
class QXmlReader(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlReader') -> None: ...
@typing.overload
def parse(self, input: QXmlInputSource) -> bool: ...
@typing.overload
def parse(self, input: QXmlInputSource) -> bool: ...
def declHandler(self) -> 'QXmlDeclHandler': ...
def setDeclHandler(self, handler: 'QXmlDeclHandler') -> None: ...
def lexicalHandler(self) -> 'QXmlLexicalHandler': ...
def setLexicalHandler(self, handler: 'QXmlLexicalHandler') -> None: ...
def errorHandler(self) -> 'QXmlErrorHandler': ...
def setErrorHandler(self, handler: 'QXmlErrorHandler') -> None: ...
def contentHandler(self) -> 'QXmlContentHandler': ...
def setContentHandler(self, handler: 'QXmlContentHandler') -> None: ...
def DTDHandler(self) -> 'QXmlDTDHandler': ...
def setDTDHandler(self, handler: 'QXmlDTDHandler') -> None: ...
def entityResolver(self) -> 'QXmlEntityResolver': ...
def setEntityResolver(self, handler: 'QXmlEntityResolver') -> None: ...
def hasProperty(self, name: str) -> bool: ...
def setProperty(self, name: str, value: sip.voidptr) -> None: ...
def property(self, name: str) -> typing.Tuple[sip.voidptr, bool]: ...
def hasFeature(self, name: str) -> bool: ...
def setFeature(self, name: str, value: bool) -> None: ...
def feature(self, name: str) -> typing.Tuple[bool, bool]: ...
class QXmlSimpleReader(QXmlReader):
def __init__(self) -> None: ...
def parseContinue(self) -> bool: ...
@typing.overload
def parse(self, input: QXmlInputSource) -> bool: ...
@typing.overload
def parse(self, input: QXmlInputSource, incremental: bool) -> bool: ...
def declHandler(self) -> 'QXmlDeclHandler': ...
def setDeclHandler(self, handler: 'QXmlDeclHandler') -> None: ...
def lexicalHandler(self) -> 'QXmlLexicalHandler': ...
def setLexicalHandler(self, handler: 'QXmlLexicalHandler') -> None: ...
def errorHandler(self) -> 'QXmlErrorHandler': ...
def setErrorHandler(self, handler: 'QXmlErrorHandler') -> None: ...
def contentHandler(self) -> 'QXmlContentHandler': ...
def setContentHandler(self, handler: 'QXmlContentHandler') -> None: ...
def DTDHandler(self) -> 'QXmlDTDHandler': ...
def setDTDHandler(self, handler: 'QXmlDTDHandler') -> None: ...
def entityResolver(self) -> 'QXmlEntityResolver': ...
def setEntityResolver(self, handler: 'QXmlEntityResolver') -> None: ...
def hasProperty(self, name: str) -> bool: ...
def setProperty(self, name: str, value: sip.voidptr) -> None: ...
def property(self, name: str) -> typing.Tuple[sip.voidptr, bool]: ...
def hasFeature(self, name: str) -> bool: ...
def setFeature(self, name: str, value: bool) -> None: ...
def feature(self, name: str) -> typing.Tuple[bool, bool]: ...
class QXmlLocator(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlLocator') -> None: ...
def lineNumber(self) -> int: ...
def columnNumber(self) -> int: ...
class QXmlContentHandler(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlContentHandler') -> None: ...
def errorString(self) -> str: ...
def skippedEntity(self, name: str) -> bool: ...
def processingInstruction(self, target: str, data: str) -> bool: ...
def ignorableWhitespace(self, ch: str) -> bool: ...
def characters(self, ch: str) -> bool: ...
def endElement(self, namespaceURI: str, localName: str, qName: str) -> bool: ...
def startElement(self, namespaceURI: str, localName: str, qName: str, atts: QXmlAttributes) -> bool: ...
def endPrefixMapping(self, prefix: str) -> bool: ...
def startPrefixMapping(self, prefix: str, uri: str) -> bool: ...
def endDocument(self) -> bool: ...
def startDocument(self) -> bool: ...
def setDocumentLocator(self, locator: QXmlLocator) -> None: ...
class QXmlErrorHandler(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlErrorHandler') -> None: ...
def errorString(self) -> str: ...
def fatalError(self, exception: QXmlParseException) -> bool: ...
def error(self, exception: QXmlParseException) -> bool: ...
def warning(self, exception: QXmlParseException) -> bool: ...
class QXmlDTDHandler(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlDTDHandler') -> None: ...
def errorString(self) -> str: ...
def unparsedEntityDecl(self, name: str, publicId: str, systemId: str, notationName: str) -> bool: ...
def notationDecl(self, name: str, publicId: str, systemId: str) -> bool: ...
class QXmlEntityResolver(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlEntityResolver') -> None: ...
def errorString(self) -> str: ...
def resolveEntity(self, publicId: str, systemId: str) -> typing.Tuple[bool, QXmlInputSource]: ...
class QXmlLexicalHandler(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlLexicalHandler') -> None: ...
def errorString(self) -> str: ...
def comment(self, ch: str) -> bool: ...
def endCDATA(self) -> bool: ...
def startCDATA(self) -> bool: ...
def endEntity(self, name: str) -> bool: ...
def startEntity(self, name: str) -> bool: ...
def endDTD(self) -> bool: ...
def startDTD(self, name: str, publicId: str, systemId: str) -> bool: ...
class QXmlDeclHandler(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QXmlDeclHandler') -> None: ...
def errorString(self) -> str: ...
def externalEntityDecl(self, name: str, publicId: str, systemId: str) -> bool: ...
def internalEntityDecl(self, name: str, value: str) -> bool: ...
def attributeDecl(self, eName: str, aName: str, type: str, valueDefault: str, value: str) -> bool: ...
class QXmlDefaultHandler(QXmlContentHandler, QXmlErrorHandler, QXmlDTDHandler, QXmlEntityResolver, QXmlLexicalHandler, QXmlDeclHandler):
def __init__(self) -> None: ...
def errorString(self) -> str: ...
def externalEntityDecl(self, name: str, publicId: str, systemId: str) -> bool: ...
def internalEntityDecl(self, name: str, value: str) -> bool: ...
def attributeDecl(self, eName: str, aName: str, type: str, valueDefault: str, value: str) -> bool: ...
def comment(self, ch: str) -> bool: ...
def endCDATA(self) -> bool: ...
def startCDATA(self) -> bool: ...
def endEntity(self, name: str) -> bool: ...
def startEntity(self, name: str) -> bool: ...
def endDTD(self) -> bool: ...
def startDTD(self, name: str, publicId: str, systemId: str) -> bool: ...
def resolveEntity(self, publicId: str, systemId: str) -> typing.Tuple[bool, QXmlInputSource]: ...
def unparsedEntityDecl(self, name: str, publicId: str, systemId: str, notationName: str) -> bool: ...
def notationDecl(self, name: str, publicId: str, systemId: str) -> bool: ...
def fatalError(self, exception: QXmlParseException) -> bool: ...
def error(self, exception: QXmlParseException) -> bool: ...
def warning(self, exception: QXmlParseException) -> bool: ...
def skippedEntity(self, name: str) -> bool: ...
def processingInstruction(self, target: str, data: str) -> bool: ...
def ignorableWhitespace(self, ch: str) -> bool: ...
def characters(self, ch: str) -> bool: ...
def endElement(self, namespaceURI: str, localName: str, qName: str) -> bool: ...
def startElement(self, namespaceURI: str, localName: str, qName: str, atts: QXmlAttributes) -> bool: ...
def endPrefixMapping(self, prefix: str) -> bool: ...
def startPrefixMapping(self, prefix: str, uri: str) -> bool: ...
def endDocument(self) -> bool: ...
def startDocument(self) -> bool: ...
def setDocumentLocator(self, locator: QXmlLocator) -> None: ...
class QDomImplementation(sip.simplewrapper):
class InvalidDataPolicy(int): ...
AcceptInvalidChars = ... # type: 'QDomImplementation.InvalidDataPolicy'
DropInvalidChars = ... # type: 'QDomImplementation.InvalidDataPolicy'
ReturnNullNode = ... # type: 'QDomImplementation.InvalidDataPolicy'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDomImplementation') -> None: ...
def isNull(self) -> bool: ...
@staticmethod
def setInvalidDataPolicy(policy: 'QDomImplementation.InvalidDataPolicy') -> None: ...
@staticmethod
def invalidDataPolicy() -> 'QDomImplementation.InvalidDataPolicy': ...
def createDocument(self, nsURI: str, qName: str, doctype: 'QDomDocumentType') -> 'QDomDocument': ...
def createDocumentType(self, qName: str, publicId: str, systemId: str) -> 'QDomDocumentType': ...
def hasFeature(self, feature: str, version: str) -> bool: ...
class QDomNode(sip.simplewrapper):
class EncodingPolicy(int): ...
EncodingFromDocument = ... # type: 'QDomNode.EncodingPolicy'
EncodingFromTextStream = ... # type: 'QDomNode.EncodingPolicy'
class NodeType(int): ...
ElementNode = ... # type: 'QDomNode.NodeType'
AttributeNode = ... # type: 'QDomNode.NodeType'
TextNode = ... # type: 'QDomNode.NodeType'
CDATASectionNode = ... # type: 'QDomNode.NodeType'
EntityReferenceNode = ... # type: 'QDomNode.NodeType'
EntityNode = ... # type: 'QDomNode.NodeType'
ProcessingInstructionNode = ... # type: 'QDomNode.NodeType'
CommentNode = ... # type: 'QDomNode.NodeType'
DocumentNode = ... # type: 'QDomNode.NodeType'
DocumentTypeNode = ... # type: 'QDomNode.NodeType'
DocumentFragmentNode = ... # type: 'QDomNode.NodeType'
NotationNode = ... # type: 'QDomNode.NodeType'
BaseNode = ... # type: 'QDomNode.NodeType'
CharacterDataNode = ... # type: 'QDomNode.NodeType'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDomNode') -> None: ...
def columnNumber(self) -> int: ...
def lineNumber(self) -> int: ...
def nextSiblingElement(self, taName: str = ...) -> 'QDomElement': ...
def previousSiblingElement(self, tagName: str = ...) -> 'QDomElement': ...
def lastChildElement(self, tagName: str = ...) -> 'QDomElement': ...
def firstChildElement(self, tagName: str = ...) -> 'QDomElement': ...
def save(self, a0: QtCore.QTextStream, a1: int, a2: 'QDomNode.EncodingPolicy' = ...) -> None: ...
def toComment(self) -> 'QDomComment': ...
def toCharacterData(self) -> 'QDomCharacterData': ...
def toProcessingInstruction(self) -> 'QDomProcessingInstruction': ...
def toNotation(self) -> 'QDomNotation': ...
def toEntity(self) -> 'QDomEntity': ...
def toText(self) -> 'QDomText': ...
def toEntityReference(self) -> 'QDomEntityReference': ...
def toElement(self) -> 'QDomElement': ...
def toDocumentType(self) -> 'QDomDocumentType': ...
def toDocument(self) -> 'QDomDocument': ...
def toDocumentFragment(self) -> 'QDomDocumentFragment': ...
def toCDATASection(self) -> 'QDomCDATASection': ...
def toAttr(self) -> 'QDomAttr': ...
def clear(self) -> None: ...
def isNull(self) -> bool: ...
def namedItem(self, name: str) -> 'QDomNode': ...
def isComment(self) -> bool: ...
def isCharacterData(self) -> bool: ...
def isProcessingInstruction(self) -> bool: ...
def isNotation(self) -> bool: ...
def isEntity(self) -> bool: ...
def isText(self) -> bool: ...
def isEntityReference(self) -> bool: ...
def isElement(self) -> bool: ...
def isDocumentType(self) -> bool: ...
def isDocument(self) -> bool: ...
def isDocumentFragment(self) -> bool: ...
def isCDATASection(self) -> bool: ...
def isAttr(self) -> bool: ...
def setPrefix(self, pre: str) -> None: ...
def prefix(self) -> str: ...
def setNodeValue(self, a0: str) -> None: ...
def nodeValue(self) -> str: ...
def hasAttributes(self) -> bool: ...
def localName(self) -> str: ...
def namespaceURI(self) -> str: ...
def ownerDocument(self) -> 'QDomDocument': ...
def attributes(self) -> 'QDomNamedNodeMap': ...
def nextSibling(self) -> 'QDomNode': ...
def previousSibling(self) -> 'QDomNode': ...
def lastChild(self) -> 'QDomNode': ...
def firstChild(self) -> 'QDomNode': ...
def childNodes(self) -> 'QDomNodeList': ...
def parentNode(self) -> 'QDomNode': ...
def nodeType(self) -> 'QDomNode.NodeType': ...
def nodeName(self) -> str: ...
def isSupported(self, feature: str, version: str) -> bool: ...
def normalize(self) -> None: ...
def cloneNode(self, deep: bool = ...) -> 'QDomNode': ...
def hasChildNodes(self) -> bool: ...
def appendChild(self, newChild: 'QDomNode') -> 'QDomNode': ...
def removeChild(self, oldChild: 'QDomNode') -> 'QDomNode': ...
def replaceChild(self, newChild: 'QDomNode', oldChild: 'QDomNode') -> 'QDomNode': ...
def insertAfter(self, newChild: 'QDomNode', refChild: 'QDomNode') -> 'QDomNode': ...
def insertBefore(self, newChild: 'QDomNode', refChild: 'QDomNode') -> 'QDomNode': ...
class QDomNodeList(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDomNodeList') -> None: ...
def isEmpty(self) -> bool: ...
def size(self) -> int: ...
def __len__(self) -> int: ...
def count(self) -> int: ...
def length(self) -> int: ...
def at(self, index: int) -> QDomNode: ...
def item(self, index: int) -> QDomNode: ...
class QDomDocumentType(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomDocumentType') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
def internalSubset(self) -> str: ...
def systemId(self) -> str: ...
def publicId(self) -> str: ...
def notations(self) -> 'QDomNamedNodeMap': ...
def entities(self) -> 'QDomNamedNodeMap': ...
def name(self) -> str: ...
class QDomDocument(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, name: str) -> None: ...
@typing.overload
def __init__(self, doctype: QDomDocumentType) -> None: ...
@typing.overload
def __init__(self, x: 'QDomDocument') -> None: ...
def toByteArray(self, indent: int = ...) -> QtCore.QByteArray: ...
def toString(self, indent: int = ...) -> str: ...
@typing.overload
def setContent(self, text: typing.Union[QtCore.QByteArray, bytes, bytearray], namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ...
@typing.overload
def setContent(self, text: str, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ...
@typing.overload
def setContent(self, dev: QtCore.QIODevice, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ...
@typing.overload
def setContent(self, source: QXmlInputSource, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ...
@typing.overload
def setContent(self, text: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.Tuple[bool, str, int, int]: ...
@typing.overload
def setContent(self, text: str) -> typing.Tuple[bool, str, int, int]: ...
@typing.overload
def setContent(self, dev: QtCore.QIODevice) -> typing.Tuple[bool, str, int, int]: ...
@typing.overload
def setContent(self, source: QXmlInputSource, reader: QXmlReader) -> typing.Tuple[bool, str, int, int]: ...
def nodeType(self) -> QDomNode.NodeType: ...
def documentElement(self) -> 'QDomElement': ...
def implementation(self) -> QDomImplementation: ...
def doctype(self) -> QDomDocumentType: ...
def elementById(self, elementId: str) -> 'QDomElement': ...
def elementsByTagNameNS(self, nsURI: str, localName: str) -> QDomNodeList: ...
def createAttributeNS(self, nsURI: str, qName: str) -> 'QDomAttr': ...
def createElementNS(self, nsURI: str, qName: str) -> 'QDomElement': ...
def importNode(self, importedNode: QDomNode, deep: bool) -> QDomNode: ...
def elementsByTagName(self, tagname: str) -> QDomNodeList: ...
def createEntityReference(self, name: str) -> 'QDomEntityReference': ...
def createAttribute(self, name: str) -> 'QDomAttr': ...
def createProcessingInstruction(self, target: str, data: str) -> 'QDomProcessingInstruction': ...
def createCDATASection(self, data: str) -> 'QDomCDATASection': ...
def createComment(self, data: str) -> 'QDomComment': ...
def createTextNode(self, data: str) -> 'QDomText': ...
def createDocumentFragment(self) -> 'QDomDocumentFragment': ...
def createElement(self, tagName: str) -> 'QDomElement': ...
class QDomNamedNodeMap(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QDomNamedNodeMap') -> None: ...
def contains(self, name: str) -> bool: ...
def isEmpty(self) -> bool: ...
def size(self) -> int: ...
def __len__(self) -> int: ...
def count(self) -> int: ...
def length(self) -> int: ...
def removeNamedItemNS(self, nsURI: str, localName: str) -> QDomNode: ...
def setNamedItemNS(self, newNode: QDomNode) -> QDomNode: ...
def namedItemNS(self, nsURI: str, localName: str) -> QDomNode: ...
def item(self, index: int) -> QDomNode: ...
def removeNamedItem(self, name: str) -> QDomNode: ...
def setNamedItem(self, newNode: QDomNode) -> QDomNode: ...
def namedItem(self, name: str) -> QDomNode: ...
class QDomDocumentFragment(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomDocumentFragment') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
class QDomCharacterData(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomCharacterData') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
def setData(self, a0: str) -> None: ...
def data(self) -> str: ...
def length(self) -> int: ...
def replaceData(self, offset: int, count: int, arg: str) -> None: ...
def deleteData(self, offset: int, count: int) -> None: ...
def insertData(self, offset: int, arg: str) -> None: ...
def appendData(self, arg: str) -> None: ...
def substringData(self, offset: int, count: int) -> str: ...
class QDomAttr(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomAttr') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
def setValue(self, a0: str) -> None: ...
def value(self) -> str: ...
def ownerElement(self) -> 'QDomElement': ...
def specified(self) -> bool: ...
def name(self) -> str: ...
class QDomElement(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomElement') -> None: ...
def text(self) -> str: ...
def nodeType(self) -> QDomNode.NodeType: ...
def attributes(self) -> QDomNamedNodeMap: ...
def setTagName(self, name: str) -> None: ...
def tagName(self) -> str: ...
def hasAttributeNS(self, nsURI: str, localName: str) -> bool: ...
def elementsByTagNameNS(self, nsURI: str, localName: str) -> QDomNodeList: ...
def setAttributeNodeNS(self, newAttr: QDomAttr) -> QDomAttr: ...
def attributeNodeNS(self, nsURI: str, localName: str) -> QDomAttr: ...
def removeAttributeNS(self, nsURI: str, localName: str) -> None: ...
@typing.overload
def setAttributeNS(self, nsURI: str, qName: str, value: str) -> None: ...
@typing.overload
def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ...
@typing.overload
def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ...
@typing.overload
def setAttributeNS(self, nsURI: str, qName: str, value: float) -> None: ...
@typing.overload
def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ...
def attributeNS(self, nsURI: str, localName: str, defaultValue: str = ...) -> str: ...
def hasAttribute(self, name: str) -> bool: ...
def elementsByTagName(self, tagname: str) -> QDomNodeList: ...
def removeAttributeNode(self, oldAttr: QDomAttr) -> QDomAttr: ...
def setAttributeNode(self, newAttr: QDomAttr) -> QDomAttr: ...
def attributeNode(self, name: str) -> QDomAttr: ...
def removeAttribute(self, name: str) -> None: ...
@typing.overload
def setAttribute(self, name: str, value: str) -> None: ...
@typing.overload
def setAttribute(self, name: str, value: int) -> None: ...
@typing.overload
def setAttribute(self, name: str, value: int) -> None: ...
@typing.overload
def setAttribute(self, name: str, value: float) -> None: ...
@typing.overload
def setAttribute(self, name: str, value: int) -> None: ...
def attribute(self, name: str, defaultValue: str = ...) -> str: ...
class QDomText(QDomCharacterData):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomText') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
def splitText(self, offset: int) -> 'QDomText': ...
class QDomComment(QDomCharacterData):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomComment') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
class QDomCDATASection(QDomText):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomCDATASection') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
class QDomNotation(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomNotation') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
def systemId(self) -> str: ...
def publicId(self) -> str: ...
class QDomEntity(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomEntity') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
def notationName(self) -> str: ...
def systemId(self) -> str: ...
def publicId(self) -> str: ...
class QDomEntityReference(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomEntityReference') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
class QDomProcessingInstruction(QDomNode):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, x: 'QDomProcessingInstruction') -> None: ...
def nodeType(self) -> QDomNode.NodeType: ...
def setData(self, d: str) -> None: ...
def data(self) -> str: ...
def target(self) -> str: ...

View File

@ -1,368 +0,0 @@
# The PEP 484 type hints stub file for the QtXmlPatterns module.
#
# Generated by SIP 5.0.0
#
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# 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.
import typing
import sip
from PyQt5 import QtNetwork
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QAbstractMessageHandler(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def handleMessage(self, type: QtCore.QtMsgType, description: str, identifier: QtCore.QUrl, sourceLocation: 'QSourceLocation') -> None: ...
def message(self, type: QtCore.QtMsgType, description: str, identifier: QtCore.QUrl = ..., sourceLocation: 'QSourceLocation' = ...) -> None: ...
class QAbstractUriResolver(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def resolve(self, relative: QtCore.QUrl, baseURI: QtCore.QUrl) -> QtCore.QUrl: ...
class QXmlNodeModelIndex(sip.simplewrapper):
class DocumentOrder(int): ...
Precedes = ... # type: 'QXmlNodeModelIndex.DocumentOrder'
Is = ... # type: 'QXmlNodeModelIndex.DocumentOrder'
Follows = ... # type: 'QXmlNodeModelIndex.DocumentOrder'
class NodeKind(int): ...
Attribute = ... # type: 'QXmlNodeModelIndex.NodeKind'
Comment = ... # type: 'QXmlNodeModelIndex.NodeKind'
Document = ... # type: 'QXmlNodeModelIndex.NodeKind'
Element = ... # type: 'QXmlNodeModelIndex.NodeKind'
Namespace = ... # type: 'QXmlNodeModelIndex.NodeKind'
ProcessingInstruction = ... # type: 'QXmlNodeModelIndex.NodeKind'
Text = ... # type: 'QXmlNodeModelIndex.NodeKind'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QXmlNodeModelIndex') -> None: ...
def __hash__(self) -> int: ...
def isNull(self) -> bool: ...
def additionalData(self) -> int: ...
def model(self) -> 'QAbstractXmlNodeModel': ...
def internalPointer(self) -> typing.Any: ...
def data(self) -> int: ...
class QAbstractXmlNodeModel(sip.simplewrapper):
class SimpleAxis(int): ...
Parent = ... # type: 'QAbstractXmlNodeModel.SimpleAxis'
FirstChild = ... # type: 'QAbstractXmlNodeModel.SimpleAxis'
PreviousSibling = ... # type: 'QAbstractXmlNodeModel.SimpleAxis'
NextSibling = ... # type: 'QAbstractXmlNodeModel.SimpleAxis'
def __init__(self) -> None: ...
@typing.overload
def createIndex(self, data: int) -> QXmlNodeModelIndex: ...
@typing.overload
def createIndex(self, data: int, additionalData: int) -> QXmlNodeModelIndex: ...
@typing.overload
def createIndex(self, pointer: typing.Any, additionalData: int = ...) -> QXmlNodeModelIndex: ...
def attributes(self, element: QXmlNodeModelIndex) -> typing.List[QXmlNodeModelIndex]: ...
def nextFromSimpleAxis(self, axis: 'QAbstractXmlNodeModel.SimpleAxis', origin: QXmlNodeModelIndex) -> QXmlNodeModelIndex: ...
def sourceLocation(self, index: QXmlNodeModelIndex) -> 'QSourceLocation': ...
def nodesByIdref(self, NCName: 'QXmlName') -> typing.List[QXmlNodeModelIndex]: ...
def elementById(self, NCName: 'QXmlName') -> QXmlNodeModelIndex: ...
def namespaceBindings(self, n: QXmlNodeModelIndex) -> typing.List['QXmlName']: ...
def typedValue(self, n: QXmlNodeModelIndex) -> typing.Any: ...
def stringValue(self, n: QXmlNodeModelIndex) -> str: ...
def name(self, ni: QXmlNodeModelIndex) -> 'QXmlName': ...
def root(self, n: QXmlNodeModelIndex) -> QXmlNodeModelIndex: ...
def compareOrder(self, ni1: QXmlNodeModelIndex, ni2: QXmlNodeModelIndex) -> QXmlNodeModelIndex.DocumentOrder: ...
def kind(self, ni: QXmlNodeModelIndex) -> QXmlNodeModelIndex.NodeKind: ...
def documentUri(self, ni: QXmlNodeModelIndex) -> QtCore.QUrl: ...
def baseUri(self, ni: QXmlNodeModelIndex) -> QtCore.QUrl: ...
class QXmlItem(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QXmlItem') -> None: ...
@typing.overload
def __init__(self, node: QXmlNodeModelIndex) -> None: ...
@typing.overload
def __init__(self, atomicValue: typing.Any) -> None: ...
def toNodeModelIndex(self) -> QXmlNodeModelIndex: ...
def toAtomicValue(self) -> typing.Any: ...
def isAtomicValue(self) -> bool: ...
def isNode(self) -> bool: ...
def isNull(self) -> bool: ...
class QAbstractXmlReceiver(sip.simplewrapper):
def __init__(self) -> None: ...
def endOfSequence(self) -> None: ...
def startOfSequence(self) -> None: ...
def namespaceBinding(self, name: 'QXmlName') -> None: ...
def atomicValue(self, value: typing.Any) -> None: ...
def processingInstruction(self, target: 'QXmlName', value: str) -> None: ...
def endDocument(self) -> None: ...
def startDocument(self) -> None: ...
def characters(self, value: str) -> None: ...
def comment(self, value: str) -> None: ...
def attribute(self, name: 'QXmlName', value: str) -> None: ...
def endElement(self) -> None: ...
def startElement(self, name: 'QXmlName') -> None: ...
class QSimpleXmlNodeModel(QAbstractXmlNodeModel):
def __init__(self, namePool: 'QXmlNamePool') -> None: ...
def nodesByIdref(self, idref: 'QXmlName') -> typing.List[QXmlNodeModelIndex]: ...
def elementById(self, id: 'QXmlName') -> QXmlNodeModelIndex: ...
def stringValue(self, node: QXmlNodeModelIndex) -> str: ...
def namespaceBindings(self, a0: QXmlNodeModelIndex) -> typing.List['QXmlName']: ...
def namePool(self) -> 'QXmlNamePool': ...
def baseUri(self, node: QXmlNodeModelIndex) -> QtCore.QUrl: ...
class QSourceLocation(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QSourceLocation') -> None: ...
@typing.overload
def __init__(self, u: QtCore.QUrl, line: int = ..., column: int = ...) -> None: ...
def __hash__(self) -> int: ...
def isNull(self) -> bool: ...
def setUri(self, newUri: QtCore.QUrl) -> None: ...
def uri(self) -> QtCore.QUrl: ...
def setLine(self, newLine: int) -> None: ...
def line(self) -> int: ...
def setColumn(self, newColumn: int) -> None: ...
def column(self) -> int: ...
class QXmlSerializer(QAbstractXmlReceiver):
def __init__(self, query: 'QXmlQuery', outputDevice: QtCore.QIODevice) -> None: ...
def codec(self) -> QtCore.QTextCodec: ...
def setCodec(self, codec: QtCore.QTextCodec) -> None: ...
def outputDevice(self) -> QtCore.QIODevice: ...
def endOfSequence(self) -> None: ...
def startOfSequence(self) -> None: ...
def endDocument(self) -> None: ...
def startDocument(self) -> None: ...
def atomicValue(self, value: typing.Any) -> None: ...
def processingInstruction(self, name: 'QXmlName', value: str) -> None: ...
def attribute(self, name: 'QXmlName', value: str) -> None: ...
def endElement(self) -> None: ...
def startElement(self, name: 'QXmlName') -> None: ...
def comment(self, value: str) -> None: ...
def characters(self, value: str) -> None: ...
def namespaceBinding(self, nb: 'QXmlName') -> None: ...
class QXmlFormatter(QXmlSerializer):
def __init__(self, query: 'QXmlQuery', outputDevice: QtCore.QIODevice) -> None: ...
def setIndentationDepth(self, depth: int) -> None: ...
def indentationDepth(self) -> int: ...
def endOfSequence(self) -> None: ...
def startOfSequence(self) -> None: ...
def endDocument(self) -> None: ...
def startDocument(self) -> None: ...
def atomicValue(self, value: typing.Any) -> None: ...
def processingInstruction(self, name: 'QXmlName', value: str) -> None: ...
def attribute(self, name: 'QXmlName', value: str) -> None: ...
def endElement(self) -> None: ...
def startElement(self, name: 'QXmlName') -> None: ...
def comment(self, value: str) -> None: ...
def characters(self, value: str) -> None: ...
class QXmlName(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, namePool: 'QXmlNamePool', localName: str, namespaceUri: str = ..., prefix: str = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QXmlName') -> None: ...
def __hash__(self) -> int: ...
@staticmethod
def fromClarkName(clarkName: str, namePool: 'QXmlNamePool') -> 'QXmlName': ...
@staticmethod
def isNCName(candidate: str) -> bool: ...
def isNull(self) -> bool: ...
def toClarkName(self, query: 'QXmlNamePool') -> str: ...
def localName(self, query: 'QXmlNamePool') -> str: ...
def prefix(self, query: 'QXmlNamePool') -> str: ...
def namespaceUri(self, query: 'QXmlNamePool') -> str: ...
class QXmlNamePool(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QXmlNamePool') -> None: ...
class QXmlQuery(sip.simplewrapper):
class QueryLanguage(int): ...
XQuery10 = ... # type: 'QXmlQuery.QueryLanguage'
XSLT20 = ... # type: 'QXmlQuery.QueryLanguage'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QXmlQuery') -> None: ...
@typing.overload
def __init__(self, np: QXmlNamePool) -> None: ...
@typing.overload
def __init__(self, queryLanguage: 'QXmlQuery.QueryLanguage', pool: QXmlNamePool = ...) -> None: ...
def queryLanguage(self) -> 'QXmlQuery.QueryLanguage': ...
def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ...
def setNetworkAccessManager(self, newManager: QtNetwork.QNetworkAccessManager) -> None: ...
def initialTemplateName(self) -> QXmlName: ...
@typing.overload
def setInitialTemplateName(self, name: QXmlName) -> None: ...
@typing.overload
def setInitialTemplateName(self, name: str) -> None: ...
@typing.overload
def setFocus(self, item: QXmlItem) -> None: ...
@typing.overload
def setFocus(self, documentURI: QtCore.QUrl) -> bool: ...
@typing.overload
def setFocus(self, document: QtCore.QIODevice) -> bool: ...
@typing.overload
def setFocus(self, focus: str) -> bool: ...
def uriResolver(self) -> QAbstractUriResolver: ...
def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ...
def evaluateToString(self) -> str: ...
def evaluateToStringList(self) -> typing.List[str]: ...
@typing.overload
def evaluateTo(self, result: 'QXmlResultItems') -> None: ...
@typing.overload
def evaluateTo(self, callback: QAbstractXmlReceiver) -> bool: ...
@typing.overload
def evaluateTo(self, target: QtCore.QIODevice) -> bool: ...
def isValid(self) -> bool: ...
@typing.overload
def bindVariable(self, name: QXmlName, value: QXmlItem) -> None: ...
@typing.overload
def bindVariable(self, name: QXmlName, a1: QtCore.QIODevice) -> None: ...
@typing.overload
def bindVariable(self, name: QXmlName, query: 'QXmlQuery') -> None: ...
@typing.overload
def bindVariable(self, localName: str, value: QXmlItem) -> None: ...
@typing.overload
def bindVariable(self, localName: str, a1: QtCore.QIODevice) -> None: ...
@typing.overload
def bindVariable(self, localName: str, query: 'QXmlQuery') -> None: ...
def namePool(self) -> QXmlNamePool: ...
@typing.overload
def setQuery(self, sourceCode: str, documentUri: QtCore.QUrl = ...) -> None: ...
@typing.overload
def setQuery(self, sourceCode: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> None: ...
@typing.overload
def setQuery(self, queryURI: QtCore.QUrl, baseUri: QtCore.QUrl = ...) -> None: ...
def messageHandler(self) -> QAbstractMessageHandler: ...
def setMessageHandler(self, messageHandler: QAbstractMessageHandler) -> None: ...
class QXmlResultItems(sip.simplewrapper):
def __init__(self) -> None: ...
def current(self) -> QXmlItem: ...
def next(self) -> QXmlItem: ...
def hasError(self) -> bool: ...
class QXmlSchema(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QXmlSchema') -> None: ...
def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ...
def setNetworkAccessManager(self, networkmanager: QtNetwork.QNetworkAccessManager) -> None: ...
def uriResolver(self) -> QAbstractUriResolver: ...
def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ...
def messageHandler(self) -> QAbstractMessageHandler: ...
def setMessageHandler(self, handler: QAbstractMessageHandler) -> None: ...
def documentUri(self) -> QtCore.QUrl: ...
def namePool(self) -> QXmlNamePool: ...
def isValid(self) -> bool: ...
@typing.overload
def load(self, source: QtCore.QUrl) -> bool: ...
@typing.overload
def load(self, source: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> bool: ...
@typing.overload
def load(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], documentUri: QtCore.QUrl = ...) -> bool: ...
class QXmlSchemaValidator(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, schema: QXmlSchema) -> None: ...
def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ...
def setNetworkAccessManager(self, networkmanager: QtNetwork.QNetworkAccessManager) -> None: ...
def uriResolver(self) -> QAbstractUriResolver: ...
def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ...
def messageHandler(self) -> QAbstractMessageHandler: ...
def setMessageHandler(self, handler: QAbstractMessageHandler) -> None: ...
def schema(self) -> QXmlSchema: ...
def namePool(self) -> QXmlNamePool: ...
@typing.overload
def validate(self, source: QtCore.QUrl) -> bool: ...
@typing.overload
def validate(self, source: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> bool: ...
@typing.overload
def validate(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], documentUri: QtCore.QUrl = ...) -> bool: ...
def setSchema(self, schema: QXmlSchema) -> None: ...

View File

@ -16,15 +16,5 @@ fi
TOOLS="$(cd "`dirname "$0"`"; pwd)"
modDir=$(python -c 'import PyQt5, sys, os; sys.stdout.write(os.path.dirname(sys.modules["PyQt5"].__file__))')
case "$(uname -s)" in
CYGWIN*|MINGW*|MSYS*)
modDir="$(cygpath -u "${modDir}")"
;;
esac
if [[ "w${OS}" == "wWindows_NT" ]];
then
rsync -a "${TOOLS}/stubs/PyQt5/" "${modDir}/"
else
rsync -a "${TOOLS}/stubs/PyQt5/" "${modDir}/" || sudo rsync -a "${TOOLS}/stubs/PyQt5/" "${modDir}/"
fi
# fix broken stubs in pyqt5.15.0 release
(cd $modDir && perl -i'' -pe 's/^None =/None_ =/' *.pyi)