创建版本
This commit is contained in:
@@ -0,0 +1,446 @@
|
||||
# The PEP 484 type hints stub file for the Qt3DAnimation module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQt3D.
|
||||
#
|
||||
# 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
from PyQt5 import Qt3DRender
|
||||
from PyQt5 import Qt3DCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QAbstractAnimation(QtCore.QObject):
|
||||
|
||||
class AnimationType(int): ...
|
||||
KeyframeAnimation = ... # type: 'QAbstractAnimation.AnimationType'
|
||||
MorphingAnimation = ... # type: 'QAbstractAnimation.AnimationType'
|
||||
VertexBlendAnimation = ... # type: 'QAbstractAnimation.AnimationType'
|
||||
|
||||
def durationChanged(self, duration: float) -> None: ...
|
||||
def positionChanged(self, position: float) -> None: ...
|
||||
def animationNameChanged(self, name: str) -> None: ...
|
||||
def setDuration(self, duration: float) -> None: ...
|
||||
def setPosition(self, position: float) -> None: ...
|
||||
def setAnimationName(self, name: str) -> None: ...
|
||||
def duration(self) -> float: ...
|
||||
def position(self) -> float: ...
|
||||
def animationType(self) -> 'QAbstractAnimation.AnimationType': ...
|
||||
def animationName(self) -> str: ...
|
||||
|
||||
class QAbstractAnimationClip(Qt3DCore.QNode):
|
||||
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def durationChanged(self, duration: float) -> None: ...
|
||||
def duration(self) -> float: ...
|
||||
|
||||
class QAbstractChannelMapping(Qt3DCore.QNode): ...
|
||||
|
||||
class QAbstractClipAnimator(Qt3DCore.QComponent):
|
||||
|
||||
class Loops(int): ...
|
||||
Infinite = ... # type: 'QAbstractClipAnimator.Loops'
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def normalizedTimeChanged(self, index: float) -> None: ...
|
||||
def clockChanged(self, clock: 'QClock') -> None: ...
|
||||
def loopCountChanged(self, loops: int) -> None: ...
|
||||
def channelMapperChanged(self, channelMapper: 'QChannelMapper') -> None: ...
|
||||
def runningChanged(self, running: bool) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
def start(self) -> None: ...
|
||||
def setNormalizedTime(self, timeFraction: float) -> None: ...
|
||||
def setClock(self, clock: 'QClock') -> None: ...
|
||||
def setLoopCount(self, loops: int) -> None: ...
|
||||
def setChannelMapper(self, channelMapper: 'QChannelMapper') -> None: ...
|
||||
def setRunning(self, running: bool) -> None: ...
|
||||
def normalizedTime(self) -> float: ...
|
||||
def clock(self) -> 'QClock': ...
|
||||
def loopCount(self) -> int: ...
|
||||
def channelMapper(self) -> 'QChannelMapper': ...
|
||||
def isRunning(self) -> bool: ...
|
||||
|
||||
class QAbstractClipBlendNode(Qt3DCore.QNode):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
class QAdditiveClipBlend('QAbstractClipBlendNode'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def additiveClipChanged(self, additiveClip: 'QAbstractClipBlendNode') -> None: ...
|
||||
def baseClipChanged(self, baseClip: 'QAbstractClipBlendNode') -> None: ...
|
||||
def additiveFactorChanged(self, additiveFactor: float) -> None: ...
|
||||
def setAdditiveClip(self, additiveClip: 'QAbstractClipBlendNode') -> None: ...
|
||||
def setBaseClip(self, baseClip: 'QAbstractClipBlendNode') -> None: ...
|
||||
def setAdditiveFactor(self, additiveFactor: float) -> None: ...
|
||||
def additiveClip(self) -> 'QAbstractClipBlendNode': ...
|
||||
def baseClip(self) -> 'QAbstractClipBlendNode': ...
|
||||
def additiveFactor(self) -> float: ...
|
||||
|
||||
class QAnimationAspect(Qt3DCore.QAbstractAspect):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
class QAnimationClip('QAbstractAnimationClip'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def clipDataChanged(self, clipData: 'QAnimationClipData') -> None: ...
|
||||
def setClipData(self, clipData: 'QAnimationClipData') -> None: ...
|
||||
def clipData(self) -> 'QAnimationClipData': ...
|
||||
|
||||
class QAnimationClipData(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QAnimationClipData') -> None: ...
|
||||
|
||||
def isValid(self) -> bool: ...
|
||||
def clearChannels(self) -> None: ...
|
||||
def removeChannel(self, index: int) -> None: ...
|
||||
def insertChannel(self, index: int, c: 'QChannel') -> None: ...
|
||||
def appendChannel(self, c: 'QChannel') -> None: ...
|
||||
def channelCount(self) -> int: ...
|
||||
def name(self) -> str: ...
|
||||
def setName(self, name: str) -> None: ...
|
||||
|
||||
class QAnimationClipLoader('QAbstractAnimationClip'):
|
||||
|
||||
class Status(int): ...
|
||||
NotReady = ... # type: 'QAnimationClipLoader.Status'
|
||||
Ready = ... # type: 'QAnimationClipLoader.Status'
|
||||
Error = ... # type: 'QAnimationClipLoader.Status'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, source: QtCore.QUrl, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def statusChanged(self, status: 'QAnimationClipLoader.Status') -> None: ...
|
||||
def sourceChanged(self, source: QtCore.QUrl) -> None: ...
|
||||
def setSource(self, source: QtCore.QUrl) -> None: ...
|
||||
def status(self) -> 'QAnimationClipLoader.Status': ...
|
||||
def source(self) -> QtCore.QUrl: ...
|
||||
|
||||
class QAnimationController(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def recursiveChanged(self, recursive: bool) -> None: ...
|
||||
def entityChanged(self, entity: Qt3DCore.QEntity) -> None: ...
|
||||
def positionOffsetChanged(self, offset: float) -> None: ...
|
||||
def positionScaleChanged(self, scale: float) -> None: ...
|
||||
def positionChanged(self, position: float) -> None: ...
|
||||
def activeAnimationGroupChanged(self, index: int) -> None: ...
|
||||
def setRecursive(self, recursive: bool) -> None: ...
|
||||
def setEntity(self, entity: Qt3DCore.QEntity) -> None: ...
|
||||
def setPositionOffset(self, offset: float) -> None: ...
|
||||
def setPositionScale(self, scale: float) -> None: ...
|
||||
def setPosition(self, position: float) -> None: ...
|
||||
def setActiveAnimationGroup(self, index: int) -> None: ...
|
||||
def getGroup(self, index: int) -> 'QAnimationGroup': ...
|
||||
def getAnimationIndex(self, name: str) -> int: ...
|
||||
def removeAnimationGroup(self, animationGroups: 'QAnimationGroup') -> None: ...
|
||||
def addAnimationGroup(self, animationGroups: 'QAnimationGroup') -> None: ...
|
||||
def setAnimationGroups(self, animationGroups: typing.Iterable['QAnimationGroup']) -> None: ...
|
||||
def recursive(self) -> bool: ...
|
||||
def entity(self) -> Qt3DCore.QEntity: ...
|
||||
def positionOffset(self) -> float: ...
|
||||
def positionScale(self) -> float: ...
|
||||
def position(self) -> float: ...
|
||||
def activeAnimationGroup(self) -> int: ...
|
||||
def animationGroupList(self) -> typing.List['QAnimationGroup']: ...
|
||||
|
||||
class QAnimationGroup(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def durationChanged(self, duration: float) -> None: ...
|
||||
def positionChanged(self, position: float) -> None: ...
|
||||
def nameChanged(self, name: str) -> None: ...
|
||||
def setPosition(self, position: float) -> None: ...
|
||||
def setName(self, name: str) -> None: ...
|
||||
def removeAnimation(self, animation: 'QAbstractAnimation') -> None: ...
|
||||
def addAnimation(self, animation: 'QAbstractAnimation') -> None: ...
|
||||
def setAnimations(self, animations: typing.Iterable['QAbstractAnimation']) -> None: ...
|
||||
def duration(self) -> float: ...
|
||||
def position(self) -> float: ...
|
||||
def animationList(self) -> typing.List['QAbstractAnimation']: ...
|
||||
def name(self) -> str: ...
|
||||
|
||||
class QBlendedClipAnimator('QAbstractClipAnimator'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def blendTreeChanged(self, blendTree: 'QAbstractClipBlendNode') -> None: ...
|
||||
def setBlendTree(self, blendTree: 'QAbstractClipBlendNode') -> None: ...
|
||||
def blendTree(self) -> 'QAbstractClipBlendNode': ...
|
||||
|
||||
class QChannel(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, name: str) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QChannel') -> None: ...
|
||||
|
||||
def clearChannelComponents(self) -> None: ...
|
||||
def removeChannelComponent(self, index: int) -> None: ...
|
||||
def insertChannelComponent(self, index: int, component: 'QChannelComponent') -> None: ...
|
||||
def appendChannelComponent(self, component: 'QChannelComponent') -> None: ...
|
||||
def channelComponentCount(self) -> int: ...
|
||||
def jointIndex(self) -> int: ...
|
||||
def setJointIndex(self, jointIndex: int) -> None: ...
|
||||
def name(self) -> str: ...
|
||||
def setName(self, name: str) -> None: ...
|
||||
|
||||
class QChannelComponent(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, name: str) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QChannelComponent') -> None: ...
|
||||
|
||||
def clearKeyFrames(self) -> None: ...
|
||||
def removeKeyFrame(self, index: int) -> None: ...
|
||||
def insertKeyFrame(self, index: int, kf: 'QKeyFrame') -> None: ...
|
||||
def appendKeyFrame(self, kf: 'QKeyFrame') -> None: ...
|
||||
def keyFrameCount(self) -> int: ...
|
||||
def name(self) -> str: ...
|
||||
def setName(self, name: str) -> None: ...
|
||||
|
||||
class QChannelMapper(Qt3DCore.QNode):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def mappings(self) -> typing.List['QAbstractChannelMapping']: ...
|
||||
def removeMapping(self, mapping: 'QAbstractChannelMapping') -> None: ...
|
||||
def addMapping(self, mapping: 'QAbstractChannelMapping') -> None: ...
|
||||
|
||||
class QChannelMapping('QAbstractChannelMapping'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def propertyChanged(self, property: str) -> None: ...
|
||||
def targetChanged(self, target: Qt3DCore.QNode) -> None: ...
|
||||
def channelNameChanged(self, channelName: str) -> None: ...
|
||||
def setProperty(self, property: str) -> None: ... # type: ignore[override]
|
||||
def setTarget(self, target: Qt3DCore.QNode) -> None: ...
|
||||
def setChannelName(self, channelName: str) -> None: ...
|
||||
def property(self) -> str: ... # type: ignore[override]
|
||||
def target(self) -> Qt3DCore.QNode: ...
|
||||
def channelName(self) -> str: ...
|
||||
|
||||
class QClipAnimator('QAbstractClipAnimator'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def clipChanged(self, clip: 'QAbstractAnimationClip') -> None: ...
|
||||
def setClip(self, clip: 'QAbstractAnimationClip') -> None: ...
|
||||
def clip(self) -> 'QAbstractAnimationClip': ...
|
||||
|
||||
class QClipBlendNodeCreatedChangeBase(Qt3DCore.QNodeCreatedChangeBase):
|
||||
|
||||
def __init__(self, node: 'QAbstractClipBlendNode') -> None: ...
|
||||
|
||||
class QClipBlendValue('QAbstractClipBlendNode'):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, clip: 'QAbstractAnimationClip', parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def clipChanged(self, clip: 'QAbstractAnimationClip') -> None: ...
|
||||
def setClip(self, clip: 'QAbstractAnimationClip') -> None: ...
|
||||
def clip(self) -> 'QAbstractAnimationClip': ...
|
||||
|
||||
class QClock(Qt3DCore.QNode):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def playbackRateChanged(self, playbackRate: float) -> None: ...
|
||||
def setPlaybackRate(self, playbackRate: float) -> None: ...
|
||||
def playbackRate(self) -> float: ...
|
||||
|
||||
class QKeyFrame(sip.simplewrapper):
|
||||
|
||||
class InterpolationType(int): ...
|
||||
ConstantInterpolation = ... # type: 'QKeyFrame.InterpolationType'
|
||||
LinearInterpolation = ... # type: 'QKeyFrame.InterpolationType'
|
||||
BezierInterpolation = ... # type: 'QKeyFrame.InterpolationType'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, coords: QtGui.QVector2D) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, coords: QtGui.QVector2D, lh: QtGui.QVector2D, rh: QtGui.QVector2D) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QKeyFrame') -> None: ...
|
||||
|
||||
def interpolationType(self) -> 'QKeyFrame.InterpolationType': ...
|
||||
def setInterpolationType(self, interp: 'QKeyFrame.InterpolationType') -> None: ...
|
||||
def rightControlPoint(self) -> QtGui.QVector2D: ...
|
||||
def setRightControlPoint(self, rh: QtGui.QVector2D) -> None: ...
|
||||
def leftControlPoint(self) -> QtGui.QVector2D: ...
|
||||
def setLeftControlPoint(self, lh: QtGui.QVector2D) -> None: ...
|
||||
def coordinates(self) -> QtGui.QVector2D: ...
|
||||
def setCoordinates(self, coords: QtGui.QVector2D) -> None: ...
|
||||
|
||||
class QKeyframeAnimation('QAbstractAnimation'):
|
||||
|
||||
class RepeatMode(int): ...
|
||||
None_ = ... # type: 'QKeyframeAnimation.RepeatMode'
|
||||
Constant = ... # type: 'QKeyframeAnimation.RepeatMode'
|
||||
Repeat = ... # type: 'QKeyframeAnimation.RepeatMode'
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def endModeChanged(self, endMode: 'QKeyframeAnimation.RepeatMode') -> None: ...
|
||||
def startModeChanged(self, startMode: 'QKeyframeAnimation.RepeatMode') -> None: ...
|
||||
def targetNameChanged(self, name: str) -> None: ...
|
||||
def easingChanged(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
|
||||
def targetChanged(self, target: Qt3DCore.QTransform) -> None: ...
|
||||
def framePositionsChanged(self, positions: typing.Iterable[float]) -> None: ...
|
||||
def setEndMode(self, mode: 'QKeyframeAnimation.RepeatMode') -> None: ...
|
||||
def setStartMode(self, mode: 'QKeyframeAnimation.RepeatMode') -> None: ...
|
||||
def setTargetName(self, name: str) -> None: ...
|
||||
def setEasing(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
|
||||
def setTarget(self, target: Qt3DCore.QTransform) -> None: ...
|
||||
def setFramePositions(self, positions: typing.Iterable[float]) -> None: ...
|
||||
def removeKeyframe(self, keyframe: Qt3DCore.QTransform) -> None: ...
|
||||
def addKeyframe(self, keyframe: Qt3DCore.QTransform) -> None: ...
|
||||
def setKeyframes(self, keyframes: typing.Iterable[Qt3DCore.QTransform]) -> None: ...
|
||||
def endMode(self) -> 'QKeyframeAnimation.RepeatMode': ...
|
||||
def startMode(self) -> 'QKeyframeAnimation.RepeatMode': ...
|
||||
def targetName(self) -> str: ...
|
||||
def easing(self) -> QtCore.QEasingCurve: ...
|
||||
def target(self) -> Qt3DCore.QTransform: ...
|
||||
def keyframeList(self) -> typing.List[Qt3DCore.QTransform]: ...
|
||||
def framePositions(self) -> typing.List[float]: ...
|
||||
|
||||
class QLerpClipBlend('QAbstractClipBlendNode'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def endClipChanged(self, endClip: 'QAbstractClipBlendNode') -> None: ...
|
||||
def startClipChanged(self, startClip: 'QAbstractClipBlendNode') -> None: ...
|
||||
def blendFactorChanged(self, blendFactor: float) -> None: ...
|
||||
def setEndClip(self, endClip: 'QAbstractClipBlendNode') -> None: ...
|
||||
def setStartClip(self, startClip: 'QAbstractClipBlendNode') -> None: ...
|
||||
def setBlendFactor(self, blendFactor: float) -> None: ...
|
||||
def endClip(self) -> 'QAbstractClipBlendNode': ...
|
||||
def startClip(self) -> 'QAbstractClipBlendNode': ...
|
||||
def blendFactor(self) -> float: ...
|
||||
|
||||
class QMorphingAnimation('QAbstractAnimation'):
|
||||
|
||||
class Method(int): ...
|
||||
Normalized = ... # type: 'QMorphingAnimation.Method'
|
||||
Relative = ... # type: 'QMorphingAnimation.Method'
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def easingChanged(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
|
||||
def methodChanged(self, method: 'QMorphingAnimation.Method') -> None: ...
|
||||
def targetNameChanged(self, name: str) -> None: ...
|
||||
def targetChanged(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
|
||||
def interpolatorChanged(self, interpolator: float) -> None: ...
|
||||
def targetPositionsChanged(self, targetPositions: typing.Iterable[float]) -> None: ...
|
||||
def setEasing(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
|
||||
def setMethod(self, method: 'QMorphingAnimation.Method') -> None: ...
|
||||
def setTargetName(self, name: str) -> None: ...
|
||||
def setTarget(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
|
||||
def setTargetPositions(self, targetPositions: typing.Iterable[float]) -> None: ...
|
||||
def morphTargetList(self) -> typing.List['QMorphTarget']: ...
|
||||
def getWeights(self, positionIndex: int) -> typing.List[float]: ...
|
||||
def setWeights(self, positionIndex: int, weights: typing.Iterable[float]) -> None: ...
|
||||
def removeMorphTarget(self, target: 'QMorphTarget') -> None: ...
|
||||
def addMorphTarget(self, target: 'QMorphTarget') -> None: ...
|
||||
def setMorphTargets(self, targets: typing.Iterable['QMorphTarget']) -> None: ...
|
||||
def easing(self) -> QtCore.QEasingCurve: ...
|
||||
def method(self) -> 'QMorphingAnimation.Method': ...
|
||||
def targetName(self) -> str: ...
|
||||
def target(self) -> Qt3DRender.QGeometryRenderer: ...
|
||||
def interpolator(self) -> float: ...
|
||||
def targetPositions(self) -> typing.List[float]: ...
|
||||
|
||||
class QMorphTarget(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def attributeNamesChanged(self, attributeNames: typing.Iterable[str]) -> None: ...
|
||||
@staticmethod
|
||||
def fromGeometry(geometry: Qt3DRender.QGeometry, attributes: typing.Iterable[str]) -> 'QMorphTarget': ...
|
||||
def removeAttribute(self, attribute: Qt3DRender.QAttribute) -> None: ...
|
||||
def addAttribute(self, attribute: Qt3DRender.QAttribute) -> None: ...
|
||||
def setAttributes(self, attributes: typing.Iterable[Qt3DRender.QAttribute]) -> None: ...
|
||||
def attributeNames(self) -> typing.List[str]: ...
|
||||
def attributeList(self) -> typing.List[Qt3DRender.QAttribute]: ...
|
||||
|
||||
class QSkeletonMapping('QAbstractChannelMapping'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def skeletonChanged(self, skeleton: Qt3DCore.QAbstractSkeleton) -> None: ...
|
||||
def setSkeleton(self, skeleton: Qt3DCore.QAbstractSkeleton) -> None: ...
|
||||
def skeleton(self) -> Qt3DCore.QAbstractSkeleton: ...
|
||||
|
||||
class QVertexBlendAnimation('QAbstractAnimation'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def targetNameChanged(self, name: str) -> None: ...
|
||||
def targetChanged(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
|
||||
def interpolatorChanged(self, interpolator: float) -> None: ...
|
||||
def targetPositionsChanged(self, targetPositions: typing.Iterable[float]) -> None: ...
|
||||
def setTargetName(self, name: str) -> None: ...
|
||||
def setTarget(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
|
||||
def setTargetPositions(self, targetPositions: typing.Iterable[float]) -> None: ...
|
||||
def morphTargetList(self) -> typing.List['QMorphTarget']: ...
|
||||
def removeMorphTarget(self, target: 'QMorphTarget') -> None: ...
|
||||
def addMorphTarget(self, target: 'QMorphTarget') -> None: ...
|
||||
def setMorphTargets(self, targets: typing.Iterable['QMorphTarget']) -> None: ...
|
||||
def targetName(self) -> str: ...
|
||||
def target(self) -> Qt3DRender.QGeometryRenderer: ...
|
||||
def interpolator(self) -> float: ...
|
||||
def targetPositions(self) -> typing.List[float]: ...
|
||||
@@ -0,0 +1,499 @@
|
||||
# The PEP 484 type hints stub file for the Qt3DCore module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQt3D.
|
||||
#
|
||||
# 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 ChangeFlag(int): ...
|
||||
NodeCreated = ... # type: 'ChangeFlag'
|
||||
NodeDeleted = ... # type: 'ChangeFlag'
|
||||
PropertyUpdated = ... # type: 'ChangeFlag'
|
||||
PropertyValueAdded = ... # type: 'ChangeFlag'
|
||||
PropertyValueRemoved = ... # type: 'ChangeFlag'
|
||||
ComponentAdded = ... # type: 'ChangeFlag'
|
||||
ComponentRemoved = ... # type: 'ChangeFlag'
|
||||
CommandRequested = ... # type: 'ChangeFlag'
|
||||
CallbackTriggered = ... # type: 'ChangeFlag'
|
||||
AllChanges = ... # type: 'ChangeFlag'
|
||||
|
||||
class QAbstractAspect(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def unregisterBackendType(self, a0: QtCore.QMetaObject) -> None: ...
|
||||
@typing.overload
|
||||
def registerBackendType(self, a0: QtCore.QMetaObject, functor: 'QBackendNodeMapper') -> None: ...
|
||||
@typing.overload
|
||||
def registerBackendType(self, obj: QtCore.QMetaObject, functor: 'QBackendNodeMapper', supportsSyncing: bool) -> None: ...
|
||||
def rootEntityId(self) -> 'QNodeId': ...
|
||||
|
||||
class QAspectEngine(QtCore.QObject):
|
||||
|
||||
class RunMode(int): ...
|
||||
Manual = ... # type: 'QAspectEngine.RunMode'
|
||||
Automatic = ... # type: 'QAspectEngine.RunMode'
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def processFrame(self) -> None: ...
|
||||
def runMode(self) -> 'QAspectEngine.RunMode': ...
|
||||
def setRunMode(self, mode: 'QAspectEngine.RunMode') -> None: ...
|
||||
def executeCommand(self, command: str) -> typing.Any: ...
|
||||
def aspects(self) -> typing.List['QAbstractAspect']: ...
|
||||
@typing.overload
|
||||
def unregisterAspect(self, aspect: 'QAbstractAspect') -> None: ...
|
||||
@typing.overload
|
||||
def unregisterAspect(self, name: str) -> None: ...
|
||||
@typing.overload
|
||||
def registerAspect(self, aspect: 'QAbstractAspect') -> None: ...
|
||||
@typing.overload
|
||||
def registerAspect(self, name: str) -> None: ...
|
||||
def rootEntity(self) -> 'QEntity': ...
|
||||
def setRootEntity(self, root: 'QEntity') -> None: ...
|
||||
|
||||
class QNode(QtCore.QObject):
|
||||
|
||||
class PropertyTrackingMode(int): ...
|
||||
TrackFinalValues = ... # type: 'QNode.PropertyTrackingMode'
|
||||
DontTrackValues = ... # type: 'QNode.PropertyTrackingMode'
|
||||
TrackAllValues = ... # type: 'QNode.PropertyTrackingMode'
|
||||
|
||||
def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
|
||||
def sendReply(self, command: 'QNodeCommand') -> None: ...
|
||||
def sendCommand(self, name: str, data: typing.Any = ..., replyTo: int = ...) -> int: ...
|
||||
def defaultPropertyTrackingModeChanged(self, mode: 'QNode.PropertyTrackingMode') -> None: ...
|
||||
def setDefaultPropertyTrackingMode(self, mode: 'QNode.PropertyTrackingMode') -> None: ...
|
||||
def clearPropertyTrackings(self) -> None: ...
|
||||
def clearPropertyTracking(self, propertyName: str) -> None: ...
|
||||
def propertyTracking(self, propertyName: str) -> 'QNode.PropertyTrackingMode': ...
|
||||
def setPropertyTracking(self, propertyName: str, trackMode: 'QNode.PropertyTrackingMode') -> None: ...
|
||||
def defaultPropertyTrackingMode(self) -> 'QNode.PropertyTrackingMode': ...
|
||||
def sceneChangeEvent(self, change: 'QSceneChange') -> None: ...
|
||||
def notifyObservers(self, change: 'QSceneChange') -> None: ...
|
||||
def nodeDestroyed(self) -> None: ...
|
||||
def enabledChanged(self, enabled: bool) -> None: ...
|
||||
def parentChanged(self, parent: QtCore.QObject) -> None: ...
|
||||
def setEnabled(self, isEnabled: bool) -> None: ...
|
||||
def setParent(self, parent: 'QNode') -> None: ... # type: ignore[override]
|
||||
def isEnabled(self) -> bool: ...
|
||||
def childNodes(self) -> typing.List['QNode']: ...
|
||||
def blockNotifications(self, block: bool) -> bool: ...
|
||||
def notificationsBlocked(self) -> bool: ...
|
||||
def parentNode(self) -> 'QNode': ...
|
||||
def id(self) -> 'QNodeId': ...
|
||||
|
||||
class QAbstractSkeleton('QNode'):
|
||||
|
||||
def sceneChangeEvent(self, change: 'QSceneChange') -> None: ...
|
||||
def jointCountChanged(self, jointCount: int) -> None: ...
|
||||
def jointCount(self) -> int: ...
|
||||
|
||||
class QComponent('QNode'):
|
||||
|
||||
def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
|
||||
def removedFromEntity(self, entity: 'QEntity') -> None: ...
|
||||
def addedToEntity(self, entity: 'QEntity') -> None: ...
|
||||
def shareableChanged(self, isShareable: bool) -> None: ...
|
||||
def setShareable(self, isShareable: bool) -> None: ...
|
||||
def entities(self) -> typing.List['QEntity']: ...
|
||||
def isShareable(self) -> bool: ...
|
||||
|
||||
class QArmature('QComponent'):
|
||||
|
||||
def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
|
||||
def skeletonChanged(self, skeleton: 'QAbstractSkeleton') -> None: ...
|
||||
def setSkeleton(self, skeleton: 'QAbstractSkeleton') -> None: ...
|
||||
def skeleton(self) -> 'QAbstractSkeleton': ...
|
||||
|
||||
class QBackendNodeMapper(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QBackendNodeMapper') -> None: ...
|
||||
|
||||
def destroy(self, id: 'QNodeId') -> None: ...
|
||||
def get(self, id: 'QNodeId') -> 'QBackendNode': ...
|
||||
def create(self, change: 'QNodeCreatedChangeBase') -> 'QBackendNode': ...
|
||||
|
||||
class QBackendNode(sip.simplewrapper):
|
||||
|
||||
class Mode(int): ...
|
||||
ReadOnly = ... # type: 'QBackendNode.Mode'
|
||||
ReadWrite = ... # type: 'QBackendNode.Mode'
|
||||
|
||||
def __init__(self, mode: 'QBackendNode.Mode' = ...) -> None: ...
|
||||
|
||||
def sendReply(self, command: 'QNodeCommand') -> None: ...
|
||||
def sendCommand(self, name: str, data: typing.Any, replyTo: int = ...) -> int: ...
|
||||
def sceneChangeEvent(self, e: 'QSceneChange') -> None: ...
|
||||
def notifyObservers(self, e: 'QSceneChange') -> None: ...
|
||||
def mode(self) -> 'QBackendNode.Mode': ...
|
||||
def isEnabled(self) -> bool: ...
|
||||
def setEnabled(self, enabled: bool) -> None: ...
|
||||
def peerId(self) -> 'QNodeId': ...
|
||||
|
||||
class QSceneChange(sip.simplewrapper):
|
||||
|
||||
class DeliveryFlag(int): ...
|
||||
BackendNodes = ... # type: 'QSceneChange.DeliveryFlag'
|
||||
Nodes = ... # type: 'QSceneChange.DeliveryFlag'
|
||||
DeliverToAll = ... # type: 'QSceneChange.DeliveryFlag'
|
||||
|
||||
class DeliveryFlags(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, f: typing.Union['QSceneChange.DeliveryFlags', 'QSceneChange.DeliveryFlag']) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QSceneChange.DeliveryFlags') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> int: ...
|
||||
def __invert__(self) -> 'QSceneChange.DeliveryFlags': ...
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
def __init__(self, type: 'ChangeFlag', subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
def subjectId(self) -> 'QNodeId': ...
|
||||
def deliveryFlags(self) -> 'QSceneChange.DeliveryFlags': ...
|
||||
def setDeliveryFlags(self, flags: typing.Union['QSceneChange.DeliveryFlags', 'QSceneChange.DeliveryFlag']) -> None: ...
|
||||
def type(self) -> 'ChangeFlag': ...
|
||||
|
||||
class QComponentAddedChange('QSceneChange'):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, entity: 'QEntity', component: 'QComponent') -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, component: 'QComponent', entity: 'QEntity') -> None: ...
|
||||
|
||||
def componentMetaObject(self) -> QtCore.QMetaObject: ...
|
||||
def componentId(self) -> 'QNodeId': ...
|
||||
def entityId(self) -> 'QNodeId': ...
|
||||
|
||||
class QComponentRemovedChange('QSceneChange'):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, entity: 'QEntity', component: 'QComponent') -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, component: 'QComponent', entity: 'QEntity') -> None: ...
|
||||
|
||||
def componentMetaObject(self) -> QtCore.QMetaObject: ...
|
||||
def componentId(self) -> 'QNodeId': ...
|
||||
def entityId(self) -> 'QNodeId': ...
|
||||
|
||||
class QPropertyUpdatedChangeBase('QSceneChange'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
class QDynamicPropertyUpdatedChange('QPropertyUpdatedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
def setValue(self, value: typing.Any) -> None: ...
|
||||
def value(self) -> typing.Any: ...
|
||||
def setPropertyName(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def propertyName(self) -> QtCore.QByteArray: ...
|
||||
|
||||
class QEntity('QNode'):
|
||||
|
||||
def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
|
||||
def parentEntity(self) -> 'QEntity': ...
|
||||
def removeComponent(self, comp: 'QComponent') -> None: ...
|
||||
def addComponent(self, comp: 'QComponent') -> None: ...
|
||||
def components(self) -> typing.List['QComponent']: ...
|
||||
|
||||
class QJoint('QNode'):
|
||||
|
||||
def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
|
||||
def nameChanged(self, name: str) -> None: ...
|
||||
def rotationZChanged(self, rotationZ: float) -> None: ...
|
||||
def rotationYChanged(self, rotationY: float) -> None: ...
|
||||
def rotationXChanged(self, rotationX: float) -> None: ...
|
||||
def inverseBindMatrixChanged(self, inverseBindMatrix: QtGui.QMatrix4x4) -> None: ...
|
||||
def translationChanged(self, translation: QtGui.QVector3D) -> None: ...
|
||||
def rotationChanged(self, rotation: QtGui.QQuaternion) -> None: ...
|
||||
def scaleChanged(self, scale: QtGui.QVector3D) -> None: ...
|
||||
def setToIdentity(self) -> None: ...
|
||||
def setName(self, name: str) -> None: ...
|
||||
def setRotationZ(self, rotationZ: float) -> None: ...
|
||||
def setRotationY(self, rotationY: float) -> None: ...
|
||||
def setRotationX(self, rotationX: float) -> None: ...
|
||||
def setInverseBindMatrix(self, inverseBindMatrix: QtGui.QMatrix4x4) -> None: ...
|
||||
def setTranslation(self, translation: QtGui.QVector3D) -> None: ...
|
||||
def setRotation(self, rotation: QtGui.QQuaternion) -> None: ...
|
||||
def setScale(self, scale: QtGui.QVector3D) -> None: ...
|
||||
def childJoints(self) -> typing.List['QJoint']: ...
|
||||
def removeChildJoint(self, joint: 'QJoint') -> None: ...
|
||||
def addChildJoint(self, joint: 'QJoint') -> None: ...
|
||||
def name(self) -> str: ...
|
||||
def rotationZ(self) -> float: ...
|
||||
def rotationY(self) -> float: ...
|
||||
def rotationX(self) -> float: ...
|
||||
def inverseBindMatrix(self) -> QtGui.QMatrix4x4: ...
|
||||
def translation(self) -> QtGui.QVector3D: ...
|
||||
def rotation(self) -> QtGui.QQuaternion: ...
|
||||
def scale(self) -> QtGui.QVector3D: ...
|
||||
|
||||
class QNodeIdTypePair(sip.simplewrapper):
|
||||
|
||||
id = ... # type: 'QNodeId'
|
||||
type = ... # type: QtCore.QMetaObject
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, _id: 'QNodeId', _type: QtCore.QMetaObject) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QNodeIdTypePair') -> None: ...
|
||||
|
||||
class QNodeCommand('QSceneChange'):
|
||||
|
||||
def __init__(self, id: 'QNodeId') -> None: ...
|
||||
|
||||
def setReplyToCommandId(self, id: int) -> None: ...
|
||||
def inReplyTo(self) -> int: ...
|
||||
def setData(self, data: typing.Any) -> None: ...
|
||||
def data(self) -> typing.Any: ...
|
||||
def setName(self, name: str) -> None: ...
|
||||
def name(self) -> str: ...
|
||||
def commandId(self) -> int: ...
|
||||
|
||||
class QNodeCreatedChangeBase('QSceneChange'):
|
||||
|
||||
def __init__(self, node: 'QNode') -> None: ...
|
||||
|
||||
def isNodeEnabled(self) -> bool: ...
|
||||
def metaObject(self) -> QtCore.QMetaObject: ...
|
||||
def parentId(self) -> 'QNodeId': ...
|
||||
|
||||
class QNodeDestroyedChange('QSceneChange'):
|
||||
|
||||
def __init__(self, node: 'QNode', subtreeIdsAndTypes: typing.Iterable['QNodeIdTypePair']) -> None: ...
|
||||
|
||||
def subtreeIdsAndTypes(self) -> typing.List['QNodeIdTypePair']: ...
|
||||
|
||||
class QNodeId(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QNodeId') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __int__(self) -> bool: ...
|
||||
def id(self) -> int: ...
|
||||
def isNull(self) -> bool: ...
|
||||
@staticmethod
|
||||
def createId() -> 'QNodeId': ...
|
||||
|
||||
class QPropertyValueAddedChangeBase('QSceneChange'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
class QStaticPropertyValueAddedChangeBase('QPropertyValueAddedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
def setPropertyName(self, name: str) -> None: ...
|
||||
def propertyName(self) -> str: ...
|
||||
|
||||
class QPropertyNodeAddedChange('QStaticPropertyValueAddedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId', node: 'QNode') -> None: ...
|
||||
|
||||
def metaObject(self) -> QtCore.QMetaObject: ...
|
||||
def addedNodeId(self) -> 'QNodeId': ...
|
||||
|
||||
class QPropertyValueRemovedChangeBase('QSceneChange'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
class QStaticPropertyValueRemovedChangeBase('QPropertyValueRemovedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
def setPropertyName(self, name: str) -> None: ...
|
||||
def propertyName(self) -> str: ...
|
||||
|
||||
class QPropertyNodeRemovedChange('QStaticPropertyValueRemovedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId', node: 'QNode') -> None: ...
|
||||
|
||||
def metaObject(self) -> QtCore.QMetaObject: ...
|
||||
def removedNodeId(self) -> 'QNodeId': ...
|
||||
|
||||
class QStaticPropertyUpdatedChangeBase('QPropertyUpdatedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
def setPropertyName(self, name: str) -> None: ...
|
||||
def propertyName(self) -> str: ...
|
||||
|
||||
class QPropertyUpdatedChange('QStaticPropertyUpdatedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
def setValue(self, value: typing.Any) -> None: ...
|
||||
def value(self) -> typing.Any: ...
|
||||
|
||||
class QPropertyValueAddedChange('QStaticPropertyValueAddedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
def addedValue(self) -> typing.Any: ...
|
||||
def setAddedValue(self, value: typing.Any) -> None: ...
|
||||
|
||||
class QPropertyValueRemovedChange('QStaticPropertyValueRemovedChangeBase'):
|
||||
|
||||
def __init__(self, subjectId: 'QNodeId') -> None: ...
|
||||
|
||||
def removedValue(self) -> typing.Any: ...
|
||||
def setRemovedValue(self, value: typing.Any) -> None: ...
|
||||
|
||||
class ChangeFlags(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, f: typing.Union['ChangeFlags', 'ChangeFlag']) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'ChangeFlags') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> int: ...
|
||||
def __invert__(self) -> 'ChangeFlags': ...
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
class QSkeleton('QAbstractSkeleton'):
|
||||
|
||||
def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
|
||||
def rootJointChanged(self, rootJoint: 'QJoint') -> None: ...
|
||||
def setRootJoint(self, rootJoint: 'QJoint') -> None: ...
|
||||
def rootJoint(self) -> 'QJoint': ...
|
||||
|
||||
class QSkeletonLoader('QAbstractSkeleton'):
|
||||
|
||||
class Status(int): ...
|
||||
NotReady = ... # type: 'QSkeletonLoader.Status'
|
||||
Ready = ... # type: 'QSkeletonLoader.Status'
|
||||
Error = ... # type: 'QSkeletonLoader.Status'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, source: QtCore.QUrl, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: 'QSceneChange') -> None: ...
|
||||
def rootJointChanged(self, rootJoint: 'QJoint') -> None: ...
|
||||
def createJointsEnabledChanged(self, createJointsEnabled: bool) -> None: ...
|
||||
def statusChanged(self, status: 'QSkeletonLoader.Status') -> None: ...
|
||||
def sourceChanged(self, source: QtCore.QUrl) -> None: ...
|
||||
def setCreateJointsEnabled(self, enabled: bool) -> None: ...
|
||||
def setSource(self, source: QtCore.QUrl) -> None: ...
|
||||
def rootJoint(self) -> 'QJoint': ...
|
||||
def isCreateJointsEnabled(self) -> bool: ...
|
||||
def status(self) -> 'QSkeletonLoader.Status': ...
|
||||
def source(self) -> QtCore.QUrl: ...
|
||||
|
||||
class QTransform('QComponent'):
|
||||
|
||||
def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: 'QSceneChange') -> None: ...
|
||||
def worldMatrixChanged(self, worldMatrix: QtGui.QMatrix4x4) -> None: ...
|
||||
def worldMatrix(self) -> QtGui.QMatrix4x4: ...
|
||||
def rotationZChanged(self, rotationZ: float) -> None: ...
|
||||
def rotationYChanged(self, rotationY: float) -> None: ...
|
||||
def rotationXChanged(self, rotationX: float) -> None: ...
|
||||
def matrixChanged(self) -> None: ...
|
||||
def translationChanged(self, translation: QtGui.QVector3D) -> None: ...
|
||||
def rotationChanged(self, rotation: QtGui.QQuaternion) -> None: ...
|
||||
def scale3DChanged(self, scale: QtGui.QVector3D) -> None: ...
|
||||
def scaleChanged(self, scale: float) -> None: ...
|
||||
def setRotationZ(self, rotationZ: float) -> None: ...
|
||||
def setRotationY(self, rotationY: float) -> None: ...
|
||||
def setRotationX(self, rotationX: float) -> None: ...
|
||||
def setMatrix(self, matrix: QtGui.QMatrix4x4) -> None: ...
|
||||
def setTranslation(self, translation: QtGui.QVector3D) -> None: ...
|
||||
def setRotation(self, rotation: QtGui.QQuaternion) -> None: ...
|
||||
def setScale3D(self, scale: QtGui.QVector3D) -> None: ...
|
||||
def setScale(self, scale: float) -> None: ...
|
||||
def rotationZ(self) -> float: ...
|
||||
def rotationY(self) -> float: ...
|
||||
def rotationX(self) -> float: ...
|
||||
def matrix(self) -> QtGui.QMatrix4x4: ...
|
||||
@staticmethod
|
||||
def rotateFromAxes(xAxis: QtGui.QVector3D, yAxis: QtGui.QVector3D, zAxis: QtGui.QVector3D) -> QtGui.QMatrix4x4: ...
|
||||
@staticmethod
|
||||
def rotateAround(point: QtGui.QVector3D, angle: float, axis: QtGui.QVector3D) -> QtGui.QMatrix4x4: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def fromEulerAngles(eulerAngles: QtGui.QVector3D) -> QtGui.QQuaternion: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def fromEulerAngles(pitch: float, yaw: float, roll: float) -> QtGui.QQuaternion: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def fromAxesAndAngles(axis1: QtGui.QVector3D, angle1: float, axis2: QtGui.QVector3D, angle2: float) -> QtGui.QQuaternion: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def fromAxesAndAngles(axis1: QtGui.QVector3D, angle1: float, axis2: QtGui.QVector3D, angle2: float, axis3: QtGui.QVector3D, angle3: float) -> QtGui.QQuaternion: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def fromAxisAndAngle(axis: QtGui.QVector3D, angle: float) -> QtGui.QQuaternion: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def fromAxisAndAngle(x: float, y: float, z: float, angle: float) -> QtGui.QQuaternion: ...
|
||||
@staticmethod
|
||||
def fromAxes(xAxis: QtGui.QVector3D, yAxis: QtGui.QVector3D, zAxis: QtGui.QVector3D) -> QtGui.QQuaternion: ...
|
||||
def translation(self) -> QtGui.QVector3D: ...
|
||||
def rotation(self) -> QtGui.QQuaternion: ...
|
||||
def scale3D(self) -> QtGui.QVector3D: ...
|
||||
def scale(self) -> float: ...
|
||||
|
||||
def qIdForNode(node: 'QNode') -> 'QNodeId': ...
|
||||
@@ -0,0 +1,782 @@
|
||||
# The PEP 484 type hints stub file for the Qt3DExtras module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQt3D.
|
||||
#
|
||||
# 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
from PyQt5 import Qt3DRender
|
||||
from PyQt5 import Qt3DInput
|
||||
from PyQt5 import Qt3DCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QAbstractCameraController(Qt3DCore.QEntity):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def mouseDevice(self) -> Qt3DInput.QMouseDevice: ...
|
||||
def keyboardDevice(self) -> Qt3DInput.QKeyboardDevice: ...
|
||||
def decelerationChanged(self, deceleration: float) -> None: ...
|
||||
def accelerationChanged(self, acceleration: float) -> None: ...
|
||||
def lookSpeedChanged(self) -> None: ...
|
||||
def linearSpeedChanged(self) -> None: ...
|
||||
def cameraChanged(self) -> None: ...
|
||||
def setDeceleration(self, deceleration: float) -> None: ...
|
||||
def setAcceleration(self, acceleration: float) -> None: ...
|
||||
def setLookSpeed(self, lookSpeed: float) -> None: ...
|
||||
def setLinearSpeed(self, linearSpeed: float) -> None: ...
|
||||
def setCamera(self, camera: Qt3DRender.QCamera) -> None: ...
|
||||
def deceleration(self) -> float: ...
|
||||
def acceleration(self) -> float: ...
|
||||
def lookSpeed(self) -> float: ...
|
||||
def linearSpeed(self) -> float: ...
|
||||
def camera(self) -> Qt3DRender.QCamera: ...
|
||||
|
||||
class QAbstractSpriteSheet(Qt3DCore.QNode):
|
||||
|
||||
def currentIndexChanged(self, currentIndex: int) -> None: ...
|
||||
def textureTransformChanged(self, textureTransform: QtGui.QMatrix3x3) -> None: ...
|
||||
def textureChanged(self, texture: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setCurrentIndex(self, currentIndex: int) -> None: ...
|
||||
def setTexture(self, texture: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def currentIndex(self) -> int: ...
|
||||
def textureTransform(self) -> QtGui.QMatrix3x3: ...
|
||||
def texture(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
|
||||
class QConeGeometry(Qt3DRender.QGeometry):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def lengthChanged(self, length: float) -> None: ...
|
||||
def slicesChanged(self, slices: int) -> None: ...
|
||||
def ringsChanged(self, rings: int) -> None: ...
|
||||
def bottomRadiusChanged(self, bottomRadius: float) -> None: ...
|
||||
def topRadiusChanged(self, topRadius: float) -> None: ...
|
||||
def hasBottomEndcapChanged(self, hasBottomEndcap: bool) -> None: ...
|
||||
def hasTopEndcapChanged(self, hasTopEndcap: bool) -> None: ...
|
||||
def setLength(self, length: float) -> None: ...
|
||||
def setSlices(self, slices: int) -> None: ...
|
||||
def setRings(self, rings: int) -> None: ...
|
||||
def setBottomRadius(self, bottomRadius: float) -> None: ...
|
||||
def setTopRadius(self, topRadius: float) -> None: ...
|
||||
def setHasBottomEndcap(self, hasBottomEndcap: bool) -> None: ...
|
||||
def setHasTopEndcap(self, hasTopEndcap: bool) -> None: ...
|
||||
def indexAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def texCoordAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def normalAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def positionAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def length(self) -> float: ...
|
||||
def slices(self) -> int: ...
|
||||
def rings(self) -> int: ...
|
||||
def bottomRadius(self) -> float: ...
|
||||
def topRadius(self) -> float: ...
|
||||
def hasBottomEndcap(self) -> bool: ...
|
||||
def hasTopEndcap(self) -> bool: ...
|
||||
def updateIndices(self) -> None: ...
|
||||
def updateVertices(self) -> None: ...
|
||||
|
||||
class QConeMesh(Qt3DRender.QGeometryRenderer):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def lengthChanged(self, length: float) -> None: ...
|
||||
def slicesChanged(self, slices: int) -> None: ...
|
||||
def ringsChanged(self, rings: int) -> None: ...
|
||||
def bottomRadiusChanged(self, bottomRadius: float) -> None: ...
|
||||
def topRadiusChanged(self, topRadius: float) -> None: ...
|
||||
def hasBottomEndcapChanged(self, hasBottomEndcap: bool) -> None: ...
|
||||
def hasTopEndcapChanged(self, hasTopEndcap: bool) -> None: ...
|
||||
def setLength(self, length: float) -> None: ...
|
||||
def setSlices(self, slices: int) -> None: ...
|
||||
def setRings(self, rings: int) -> None: ...
|
||||
def setBottomRadius(self, bottomRadius: float) -> None: ...
|
||||
def setTopRadius(self, topRadius: float) -> None: ...
|
||||
def setHasBottomEndcap(self, hasBottomEndcap: bool) -> None: ...
|
||||
def setHasTopEndcap(self, hasTopEndcap: bool) -> None: ...
|
||||
def length(self) -> float: ...
|
||||
def bottomRadius(self) -> float: ...
|
||||
def topRadius(self) -> float: ...
|
||||
def hasBottomEndcap(self) -> bool: ...
|
||||
def hasTopEndcap(self) -> bool: ...
|
||||
def slices(self) -> int: ...
|
||||
def rings(self) -> int: ...
|
||||
|
||||
class QCuboidGeometry(Qt3DRender.QGeometry):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def xyMeshResolutionChanged(self, xyMeshResolution: QtCore.QSize) -> None: ...
|
||||
def xzMeshResolutionChanged(self, xzMeshResolution: QtCore.QSize) -> None: ...
|
||||
def yzMeshResolutionChanged(self, yzMeshResolution: QtCore.QSize) -> None: ...
|
||||
def zExtentChanged(self, zExtent: float) -> None: ...
|
||||
def yExtentChanged(self, yExtent: float) -> None: ...
|
||||
def xExtentChanged(self, xExtent: float) -> None: ...
|
||||
def setXYMeshResolution(self, resolution: QtCore.QSize) -> None: ...
|
||||
def setXZMeshResolution(self, resolution: QtCore.QSize) -> None: ...
|
||||
def setYZMeshResolution(self, resolution: QtCore.QSize) -> None: ...
|
||||
def setZExtent(self, zExtent: float) -> None: ...
|
||||
def setYExtent(self, yExtent: float) -> None: ...
|
||||
def setXExtent(self, xExtent: float) -> None: ...
|
||||
def indexAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def tangentAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def texCoordAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def normalAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def positionAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def xzMeshResolution(self) -> QtCore.QSize: ...
|
||||
def xyMeshResolution(self) -> QtCore.QSize: ...
|
||||
def yzMeshResolution(self) -> QtCore.QSize: ...
|
||||
def zExtent(self) -> float: ...
|
||||
def yExtent(self) -> float: ...
|
||||
def xExtent(self) -> float: ...
|
||||
def updateVertices(self) -> None: ...
|
||||
def updateIndices(self) -> None: ...
|
||||
|
||||
class QCuboidMesh(Qt3DRender.QGeometryRenderer):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def xyMeshResolutionChanged(self, xyMeshResolution: QtCore.QSize) -> None: ...
|
||||
def xzMeshResolutionChanged(self, xzMeshResolution: QtCore.QSize) -> None: ...
|
||||
def yzMeshResolutionChanged(self, yzMeshResolution: QtCore.QSize) -> None: ...
|
||||
def zExtentChanged(self, zExtent: float) -> None: ...
|
||||
def yExtentChanged(self, yExtent: float) -> None: ...
|
||||
def xExtentChanged(self, xExtent: float) -> None: ...
|
||||
def setXYMeshResolution(self, resolution: QtCore.QSize) -> None: ...
|
||||
def setXZMeshResolution(self, resolution: QtCore.QSize) -> None: ...
|
||||
def setYZMeshResolution(self, resolution: QtCore.QSize) -> None: ...
|
||||
def setZExtent(self, zExtent: float) -> None: ...
|
||||
def setYExtent(self, yExtent: float) -> None: ...
|
||||
def setXExtent(self, xExtent: float) -> None: ...
|
||||
def xyMeshResolution(self) -> QtCore.QSize: ...
|
||||
def xzMeshResolution(self) -> QtCore.QSize: ...
|
||||
def yzMeshResolution(self) -> QtCore.QSize: ...
|
||||
def zExtent(self) -> float: ...
|
||||
def yExtent(self) -> float: ...
|
||||
def xExtent(self) -> float: ...
|
||||
|
||||
class QCylinderGeometry(Qt3DRender.QGeometry):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def lengthChanged(self, length: float) -> None: ...
|
||||
def slicesChanged(self, slices: int) -> None: ...
|
||||
def ringsChanged(self, rings: int) -> None: ...
|
||||
def radiusChanged(self, radius: float) -> None: ...
|
||||
def setLength(self, length: float) -> None: ...
|
||||
def setRadius(self, radius: float) -> None: ...
|
||||
def setSlices(self, slices: int) -> None: ...
|
||||
def setRings(self, rings: int) -> None: ...
|
||||
def indexAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def texCoordAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def normalAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def positionAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def length(self) -> float: ...
|
||||
def radius(self) -> float: ...
|
||||
def slices(self) -> int: ...
|
||||
def rings(self) -> int: ...
|
||||
def updateIndices(self) -> None: ...
|
||||
def updateVertices(self) -> None: ...
|
||||
|
||||
class QCylinderMesh(Qt3DRender.QGeometryRenderer):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def lengthChanged(self, length: float) -> None: ...
|
||||
def slicesChanged(self, slices: int) -> None: ...
|
||||
def ringsChanged(self, rings: int) -> None: ...
|
||||
def radiusChanged(self, radius: float) -> None: ...
|
||||
def setLength(self, length: float) -> None: ...
|
||||
def setRadius(self, radius: float) -> None: ...
|
||||
def setSlices(self, slices: int) -> None: ...
|
||||
def setRings(self, rings: int) -> None: ...
|
||||
def length(self) -> float: ...
|
||||
def radius(self) -> float: ...
|
||||
def slices(self) -> int: ...
|
||||
def rings(self) -> int: ...
|
||||
|
||||
class QDiffuseMapMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def textureScaleChanged(self, textureScale: float) -> None: ...
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def diffuseChanged(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setTextureScale(self, textureScale: float) -> None: ...
|
||||
def setDiffuse(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setAmbient(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def textureScale(self) -> float: ...
|
||||
def diffuse(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
def shininess(self) -> float: ...
|
||||
def specular(self) -> QtGui.QColor: ...
|
||||
def ambient(self) -> QtGui.QColor: ...
|
||||
|
||||
class QDiffuseSpecularMapMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def textureScaleChanged(self, textureScale: float) -> None: ...
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def specularChanged(self, specular: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def diffuseChanged(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setTextureScale(self, textureScale: float) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setSpecular(self, specular: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setDiffuse(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def textureScale(self) -> float: ...
|
||||
def shininess(self) -> float: ...
|
||||
def specular(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
def diffuse(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
def ambient(self) -> QtGui.QColor: ...
|
||||
|
||||
class QDiffuseSpecularMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def alphaBlendingEnabledChanged(self, enabled: bool) -> None: ...
|
||||
def textureScaleChanged(self, textureScale: float) -> None: ...
|
||||
def normalChanged(self, normal: typing.Any) -> None: ...
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def specularChanged(self, specular: typing.Any) -> None: ...
|
||||
def diffuseChanged(self, diffuse: typing.Any) -> None: ...
|
||||
def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setAlphaBlendingEnabled(self, enabled: bool) -> None: ...
|
||||
def setTextureScale(self, textureScale: float) -> None: ...
|
||||
def setNormal(self, normal: typing.Any) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setSpecular(self, specular: typing.Any) -> None: ...
|
||||
def setDiffuse(self, diffuse: typing.Any) -> None: ...
|
||||
def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def isAlphaBlendingEnabled(self) -> bool: ...
|
||||
def textureScale(self) -> float: ...
|
||||
def normal(self) -> typing.Any: ...
|
||||
def shininess(self) -> float: ...
|
||||
def specular(self) -> typing.Any: ...
|
||||
def diffuse(self) -> typing.Any: ...
|
||||
def ambient(self) -> QtGui.QColor: ...
|
||||
|
||||
class QExtrudedTextGeometry(Qt3DRender.QGeometry):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def depthChanged(self, extrusionLength: float) -> None: ...
|
||||
def fontChanged(self, font: QtGui.QFont) -> None: ...
|
||||
def textChanged(self, text: str) -> None: ...
|
||||
def setDepth(self, extrusionLength: float) -> None: ...
|
||||
def setFont(self, font: QtGui.QFont) -> None: ...
|
||||
def setText(self, text: str) -> None: ...
|
||||
def extrusionLength(self) -> float: ...
|
||||
def font(self) -> QtGui.QFont: ...
|
||||
def text(self) -> str: ...
|
||||
def indexAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def normalAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def positionAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
|
||||
class QExtrudedTextMesh(Qt3DRender.QGeometryRenderer):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def depthChanged(self, depth: float) -> None: ...
|
||||
def fontChanged(self, font: QtGui.QFont) -> None: ...
|
||||
def textChanged(self, text: str) -> None: ...
|
||||
def setDepth(self, depth: float) -> None: ...
|
||||
def setFont(self, font: QtGui.QFont) -> None: ...
|
||||
def setText(self, text: str) -> None: ...
|
||||
def depth(self) -> float: ...
|
||||
def font(self) -> QtGui.QFont: ...
|
||||
def text(self) -> str: ...
|
||||
|
||||
class QFirstPersonCameraController('QAbstractCameraController'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
class QForwardRenderer(Qt3DRender.QTechniqueFilter):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def showDebugOverlayChanged(self, showDebugOverlay: bool) -> None: ...
|
||||
def setShowDebugOverlay(self, showDebugOverlay: bool) -> None: ...
|
||||
def showDebugOverlay(self) -> bool: ...
|
||||
def buffersToClearChanged(self, a0: Qt3DRender.QClearBuffers.BufferType) -> None: ...
|
||||
def setBuffersToClear(self, a0: Qt3DRender.QClearBuffers.BufferType) -> None: ...
|
||||
def buffersToClear(self) -> Qt3DRender.QClearBuffers.BufferType: ...
|
||||
def gammaChanged(self, gamma: float) -> None: ...
|
||||
def frustumCullingEnabledChanged(self, enabled: bool) -> None: ...
|
||||
def setGamma(self, gamma: float) -> None: ...
|
||||
def setFrustumCullingEnabled(self, enabled: bool) -> None: ...
|
||||
def gamma(self) -> float: ...
|
||||
def isFrustumCullingEnabled(self) -> bool: ...
|
||||
def externalRenderTargetSizeChanged(self, size: QtCore.QSize) -> None: ...
|
||||
def surfaceChanged(self, surface: QtCore.QObject) -> None: ...
|
||||
def cameraChanged(self, camera: Qt3DCore.QEntity) -> None: ...
|
||||
def clearColorChanged(self, clearColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def viewportRectChanged(self, viewportRect: QtCore.QRectF) -> None: ...
|
||||
def setExternalRenderTargetSize(self, size: QtCore.QSize) -> None: ...
|
||||
def setSurface(self, surface: QtCore.QObject) -> None: ...
|
||||
def setCamera(self, camera: Qt3DCore.QEntity) -> None: ...
|
||||
def setClearColor(self, clearColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setViewportRect(self, viewportRect: QtCore.QRectF) -> None: ...
|
||||
def externalRenderTargetSize(self) -> QtCore.QSize: ...
|
||||
def surface(self) -> QtCore.QObject: ...
|
||||
def camera(self) -> Qt3DCore.QEntity: ...
|
||||
def clearColor(self) -> QtGui.QColor: ...
|
||||
def viewportRect(self) -> QtCore.QRectF: ...
|
||||
|
||||
class QGoochMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def betaChanged(self, beta: float) -> None: ...
|
||||
def alphaChanged(self, alpha: float) -> None: ...
|
||||
def warmChanged(self, warm: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def coolChanged(self, cool: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def diffuseChanged(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setBeta(self, beta: float) -> None: ...
|
||||
def setAlpha(self, alpha: float) -> None: ...
|
||||
def setWarm(self, warm: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setCool(self, cool: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setDiffuse(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def shininess(self) -> float: ...
|
||||
def beta(self) -> float: ...
|
||||
def alpha(self) -> float: ...
|
||||
def warm(self) -> QtGui.QColor: ...
|
||||
def cool(self) -> QtGui.QColor: ...
|
||||
def specular(self) -> QtGui.QColor: ...
|
||||
def diffuse(self) -> QtGui.QColor: ...
|
||||
|
||||
class QMetalRoughMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def textureScaleChanged(self, textureScale: float) -> None: ...
|
||||
def normalChanged(self, normal: typing.Any) -> None: ...
|
||||
def ambientOcclusionChanged(self, ambientOcclusion: typing.Any) -> None: ...
|
||||
def roughnessChanged(self, roughness: typing.Any) -> None: ...
|
||||
def metalnessChanged(self, metalness: typing.Any) -> None: ...
|
||||
def baseColorChanged(self, baseColor: typing.Any) -> None: ...
|
||||
def setTextureScale(self, textureScale: float) -> None: ...
|
||||
def setNormal(self, normal: typing.Any) -> None: ...
|
||||
def setAmbientOcclusion(self, ambientOcclusion: typing.Any) -> None: ...
|
||||
def setRoughness(self, roughness: typing.Any) -> None: ...
|
||||
def setMetalness(self, metalness: typing.Any) -> None: ...
|
||||
def setBaseColor(self, baseColor: typing.Any) -> None: ...
|
||||
def textureScale(self) -> float: ...
|
||||
def normal(self) -> typing.Any: ...
|
||||
def ambientOcclusion(self) -> typing.Any: ...
|
||||
def roughness(self) -> typing.Any: ...
|
||||
def metalness(self) -> typing.Any: ...
|
||||
def baseColor(self) -> typing.Any: ...
|
||||
|
||||
class QMorphPhongMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def interpolatorChanged(self, interpolator: float) -> None: ...
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def diffuseChanged(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setInterpolator(self, interpolator: float) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setDiffuse(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def interpolator(self) -> float: ...
|
||||
def shininess(self) -> float: ...
|
||||
def specular(self) -> QtGui.QColor: ...
|
||||
def diffuse(self) -> QtGui.QColor: ...
|
||||
def ambient(self) -> QtGui.QColor: ...
|
||||
|
||||
class QNormalDiffuseMapMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def textureScaleChanged(self, textureScale: float) -> None: ...
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def normalChanged(self, normal: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def diffuseChanged(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setTextureScale(self, textureScale: float) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setNormal(self, normal: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setDiffuse(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def textureScale(self) -> float: ...
|
||||
def shininess(self) -> float: ...
|
||||
def normal(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
def diffuse(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
def specular(self) -> QtGui.QColor: ...
|
||||
def ambient(self) -> QtGui.QColor: ...
|
||||
|
||||
class QNormalDiffuseMapAlphaMaterial('QNormalDiffuseMapMaterial'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
class QNormalDiffuseSpecularMapMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def textureScaleChanged(self, textureScale: float) -> None: ...
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def specularChanged(self, specular: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def normalChanged(self, normal: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def diffuseChanged(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setTextureScale(self, textureScale: float) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setSpecular(self, specular: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setNormal(self, normal: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setDiffuse(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def textureScale(self) -> float: ...
|
||||
def shininess(self) -> float: ...
|
||||
def specular(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
def normal(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
def diffuse(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
def ambient(self) -> QtGui.QColor: ...
|
||||
|
||||
class QOrbitCameraController('QAbstractCameraController'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def zoomInLimitChanged(self) -> None: ...
|
||||
def setZoomInLimit(self, zoomInLimit: float) -> None: ...
|
||||
def zoomInLimit(self) -> float: ...
|
||||
|
||||
class QPerVertexColorMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
class QPhongAlphaMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def blendFunctionArgChanged(self, blendFunctionArg: Qt3DRender.QBlendEquation.BlendFunction) -> None: ...
|
||||
def destinationAlphaArgChanged(self, destinationAlphaArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ...
|
||||
def sourceAlphaArgChanged(self, sourceAlphaArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ...
|
||||
def destinationRgbArgChanged(self, destinationRgbArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ...
|
||||
def sourceRgbArgChanged(self, sourceRgbArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ...
|
||||
def setBlendFunctionArg(self, blendFunctionArg: Qt3DRender.QBlendEquation.BlendFunction) -> None: ...
|
||||
def setDestinationAlphaArg(self, destinationAlphaArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ...
|
||||
def setSourceAlphaArg(self, sourceAlphaArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ...
|
||||
def setDestinationRgbArg(self, destinationRgbArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ...
|
||||
def setSourceRgbArg(self, sourceRgbArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ...
|
||||
def blendFunctionArg(self) -> Qt3DRender.QBlendEquation.BlendFunction: ...
|
||||
def destinationAlphaArg(self) -> Qt3DRender.QBlendEquationArguments.Blending: ...
|
||||
def sourceAlphaArg(self) -> Qt3DRender.QBlendEquationArguments.Blending: ...
|
||||
def destinationRgbArg(self) -> Qt3DRender.QBlendEquationArguments.Blending: ...
|
||||
def sourceRgbArg(self) -> Qt3DRender.QBlendEquationArguments.Blending: ...
|
||||
def alphaChanged(self, alpha: float) -> None: ...
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def diffuseChanged(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setAlpha(self, alpha: float) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setDiffuse(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def alpha(self) -> float: ...
|
||||
def shininess(self) -> float: ...
|
||||
def specular(self) -> QtGui.QColor: ...
|
||||
def diffuse(self) -> QtGui.QColor: ...
|
||||
def ambient(self) -> QtGui.QColor: ...
|
||||
|
||||
class QPhongMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def shininessChanged(self, shininess: float) -> None: ...
|
||||
def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def diffuseChanged(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setShininess(self, shininess: float) -> None: ...
|
||||
def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setDiffuse(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def shininess(self) -> float: ...
|
||||
def specular(self) -> QtGui.QColor: ...
|
||||
def diffuse(self) -> QtGui.QColor: ...
|
||||
def ambient(self) -> QtGui.QColor: ...
|
||||
|
||||
class QPlaneGeometry(Qt3DRender.QGeometry):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def mirroredChanged(self, mirrored: bool) -> None: ...
|
||||
def setMirrored(self, mirrored: bool) -> None: ...
|
||||
def mirrored(self) -> bool: ...
|
||||
def heightChanged(self, height: float) -> None: ...
|
||||
def widthChanged(self, width: float) -> None: ...
|
||||
def resolutionChanged(self, resolution: QtCore.QSize) -> None: ...
|
||||
def setHeight(self, height: float) -> None: ...
|
||||
def setWidth(self, width: float) -> None: ...
|
||||
def setResolution(self, resolution: QtCore.QSize) -> None: ...
|
||||
def indexAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def tangentAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def texCoordAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def normalAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def positionAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def height(self) -> float: ...
|
||||
def width(self) -> float: ...
|
||||
def resolution(self) -> QtCore.QSize: ...
|
||||
def updateIndices(self) -> None: ...
|
||||
def updateVertices(self) -> None: ...
|
||||
|
||||
class QPlaneMesh(Qt3DRender.QGeometryRenderer):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def mirroredChanged(self, mirrored: bool) -> None: ...
|
||||
def setMirrored(self, mirrored: bool) -> None: ...
|
||||
def mirrored(self) -> bool: ...
|
||||
def heightChanged(self, height: float) -> None: ...
|
||||
def widthChanged(self, width: float) -> None: ...
|
||||
def meshResolutionChanged(self, meshResolution: QtCore.QSize) -> None: ...
|
||||
def setMeshResolution(self, resolution: QtCore.QSize) -> None: ...
|
||||
def setHeight(self, height: float) -> None: ...
|
||||
def setWidth(self, width: float) -> None: ...
|
||||
def meshResolution(self) -> QtCore.QSize: ...
|
||||
def height(self) -> float: ...
|
||||
def width(self) -> float: ...
|
||||
|
||||
class QSkyboxEntity(Qt3DCore.QEntity):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def gammaCorrectEnabledChanged(self, enabled: bool) -> None: ...
|
||||
def baseNameChanged(self, path: str) -> None: ...
|
||||
def setGammaCorrectEnabled(self, enabled: bool) -> None: ...
|
||||
def isGammaCorrectEnabled(self) -> bool: ...
|
||||
def extensionChanged(self, extension: str) -> None: ...
|
||||
def extension(self) -> str: ...
|
||||
def setExtension(self, extension: str) -> None: ...
|
||||
def baseName(self) -> str: ...
|
||||
def setBaseName(self, path: str) -> None: ...
|
||||
|
||||
class QSphereGeometry(Qt3DRender.QGeometry):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def generateTangentsChanged(self, generateTangents: bool) -> None: ...
|
||||
def slicesChanged(self, slices: int) -> None: ...
|
||||
def ringsChanged(self, rings: int) -> None: ...
|
||||
def radiusChanged(self, radius: float) -> None: ...
|
||||
def setGenerateTangents(self, gen: bool) -> None: ...
|
||||
def setRadius(self, radius: float) -> None: ...
|
||||
def setSlices(self, slices: int) -> None: ...
|
||||
def setRings(self, rings: int) -> None: ...
|
||||
def indexAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def tangentAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def texCoordAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def normalAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def positionAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def radius(self) -> float: ...
|
||||
def slices(self) -> int: ...
|
||||
def rings(self) -> int: ...
|
||||
def generateTangents(self) -> bool: ...
|
||||
def updateIndices(self) -> None: ...
|
||||
def updateVertices(self) -> None: ...
|
||||
|
||||
class QSphereMesh(Qt3DRender.QGeometryRenderer):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def generateTangentsChanged(self, generateTangents: bool) -> None: ...
|
||||
def slicesChanged(self, slices: int) -> None: ...
|
||||
def ringsChanged(self, rings: int) -> None: ...
|
||||
def radiusChanged(self, radius: float) -> None: ...
|
||||
def setGenerateTangents(self, gen: bool) -> None: ...
|
||||
def setRadius(self, radius: float) -> None: ...
|
||||
def setSlices(self, slices: int) -> None: ...
|
||||
def setRings(self, rings: int) -> None: ...
|
||||
def generateTangents(self) -> bool: ...
|
||||
def radius(self) -> float: ...
|
||||
def slices(self) -> int: ...
|
||||
def rings(self) -> int: ...
|
||||
|
||||
class QSpriteGrid('QAbstractSpriteSheet'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def columnsChanged(self, columns: int) -> None: ...
|
||||
def rowsChanged(self, rows: int) -> None: ...
|
||||
def setColumns(self, columns: int) -> None: ...
|
||||
def setRows(self, rows: int) -> None: ...
|
||||
def columns(self) -> int: ...
|
||||
def rows(self) -> int: ...
|
||||
|
||||
class QSpriteSheet('QAbstractSpriteSheet'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def spritesChanged(self, sprites: typing.Iterable['QSpriteSheetItem']) -> None: ...
|
||||
def setSprites(self, sprites: typing.Iterable['QSpriteSheetItem']) -> None: ...
|
||||
def removeSprite(self, sprite: 'QSpriteSheetItem') -> None: ...
|
||||
@typing.overload
|
||||
def addSprite(self, x: int, y: int, width: int, height: int) -> 'QSpriteSheetItem': ...
|
||||
@typing.overload
|
||||
def addSprite(self, sprite: 'QSpriteSheetItem') -> None: ...
|
||||
def sprites(self) -> typing.List['QSpriteSheetItem']: ...
|
||||
|
||||
class QSpriteSheetItem(Qt3DCore.QNode):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def heightChanged(self, height: int) -> None: ...
|
||||
def widthChanged(self, width: int) -> None: ...
|
||||
def yChanged(self, y: int) -> None: ...
|
||||
def xChanged(self, x: int) -> None: ...
|
||||
def setHeight(self, height: int) -> None: ...
|
||||
def setWidth(self, width: int) -> None: ...
|
||||
def setY(self, y: int) -> None: ...
|
||||
def setX(self, x: int) -> None: ...
|
||||
def height(self) -> int: ...
|
||||
def width(self) -> int: ...
|
||||
def y(self) -> int: ...
|
||||
def x(self) -> int: ...
|
||||
|
||||
class Qt3DWindow(QtGui.QWindow):
|
||||
|
||||
def __init__(self, screen: typing.Optional[QtGui.QScreen] = ...) -> None: ...
|
||||
|
||||
def event(self, e: QtCore.QEvent) -> bool: ...
|
||||
def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ...
|
||||
def showEvent(self, e: QtGui.QShowEvent) -> None: ...
|
||||
def renderSettings(self) -> Qt3DRender.QRenderSettings: ...
|
||||
def camera(self) -> Qt3DRender.QCamera: ...
|
||||
def defaultFrameGraph(self) -> 'QForwardRenderer': ...
|
||||
def activeFrameGraph(self) -> Qt3DRender.QFrameGraphNode: ...
|
||||
def setActiveFrameGraph(self, activeFrameGraph: Qt3DRender.QFrameGraphNode) -> None: ...
|
||||
def setRootEntity(self, root: Qt3DCore.QEntity) -> None: ...
|
||||
@typing.overload
|
||||
def registerAspect(self, aspect: Qt3DCore.QAbstractAspect) -> None: ...
|
||||
@typing.overload
|
||||
def registerAspect(self, name: str) -> None: ...
|
||||
|
||||
class QText2DEntity(Qt3DCore.QEntity):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def heightChanged(self, height: float) -> None: ...
|
||||
def widthChanged(self, width: float) -> None: ...
|
||||
def textChanged(self, text: str) -> None: ...
|
||||
def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def fontChanged(self, font: QtGui.QFont) -> None: ...
|
||||
def setHeight(self, height: float) -> None: ...
|
||||
def setWidth(self, width: float) -> None: ...
|
||||
def height(self) -> float: ...
|
||||
def width(self) -> float: ...
|
||||
def setText(self, text: str) -> None: ...
|
||||
def text(self) -> str: ...
|
||||
def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def color(self) -> QtGui.QColor: ...
|
||||
def setFont(self, font: QtGui.QFont) -> None: ...
|
||||
def font(self) -> QtGui.QFont: ...
|
||||
|
||||
class QTexturedMetalRoughMaterial('QMetalRoughMaterial'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def normalChanged(self, normal: typing.Any) -> None: ...
|
||||
def ambientOcclusionChanged(self, ambientOcclusion: typing.Any) -> None: ...
|
||||
|
||||
class QTextureMaterial(Qt3DRender.QMaterial):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def alphaBlendingEnabledChanged(self, enabled: bool) -> None: ...
|
||||
def textureTransformChanged(self, textureTransform: QtGui.QMatrix3x3) -> None: ...
|
||||
def textureOffsetChanged(self, textureOffset: QtGui.QVector2D) -> None: ...
|
||||
def textureChanged(self, texture: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def setAlphaBlendingEnabled(self, enabled: bool) -> None: ...
|
||||
def setTextureTransform(self, matrix: QtGui.QMatrix3x3) -> None: ...
|
||||
def setTextureOffset(self, textureOffset: QtGui.QVector2D) -> None: ...
|
||||
def setTexture(self, texture: Qt3DRender.QAbstractTexture) -> None: ...
|
||||
def isAlphaBlendingEnabled(self) -> bool: ...
|
||||
def textureTransform(self) -> QtGui.QMatrix3x3: ...
|
||||
def textureOffset(self) -> QtGui.QVector2D: ...
|
||||
def texture(self) -> Qt3DRender.QAbstractTexture: ...
|
||||
|
||||
class QTorusGeometry(Qt3DRender.QGeometry):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def minorRadiusChanged(self, minorRadius: float) -> None: ...
|
||||
def slicesChanged(self, slices: int) -> None: ...
|
||||
def ringsChanged(self, rings: int) -> None: ...
|
||||
def radiusChanged(self, radius: float) -> None: ...
|
||||
def setMinorRadius(self, minorRadius: float) -> None: ...
|
||||
def setRadius(self, radius: float) -> None: ...
|
||||
def setSlices(self, slices: int) -> None: ...
|
||||
def setRings(self, rings: int) -> None: ...
|
||||
def indexAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def texCoordAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def normalAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def positionAttribute(self) -> Qt3DRender.QAttribute: ...
|
||||
def minorRadius(self) -> float: ...
|
||||
def radius(self) -> float: ...
|
||||
def slices(self) -> int: ...
|
||||
def rings(self) -> int: ...
|
||||
def updateIndices(self) -> None: ...
|
||||
def updateVertices(self) -> None: ...
|
||||
|
||||
class QTorusMesh(Qt3DRender.QGeometryRenderer):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def minorRadiusChanged(self, minorRadius: float) -> None: ...
|
||||
def slicesChanged(self, slices: int) -> None: ...
|
||||
def ringsChanged(self, rings: int) -> None: ...
|
||||
def radiusChanged(self, radius: float) -> None: ...
|
||||
def setMinorRadius(self, minorRadius: float) -> None: ...
|
||||
def setRadius(self, radius: float) -> None: ...
|
||||
def setSlices(self, slices: int) -> None: ...
|
||||
def setRings(self, rings: int) -> None: ...
|
||||
def minorRadius(self) -> float: ...
|
||||
def radius(self) -> float: ...
|
||||
def slices(self) -> int: ...
|
||||
def rings(self) -> int: ...
|
||||
@@ -0,0 +1,400 @@
|
||||
# The PEP 484 type hints stub file for the Qt3DInput module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQt3D.
|
||||
#
|
||||
# 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
from PyQt5 import Qt3DCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QAbstractActionInput(Qt3DCore.QNode): ...
|
||||
|
||||
class QAbstractAxisInput(Qt3DCore.QNode):
|
||||
|
||||
def sourceDeviceChanged(self, sourceDevice: 'QAbstractPhysicalDevice') -> None: ...
|
||||
def setSourceDevice(self, sourceDevice: 'QAbstractPhysicalDevice') -> None: ...
|
||||
def sourceDevice(self) -> 'QAbstractPhysicalDevice': ...
|
||||
|
||||
class QAbstractPhysicalDevice(Qt3DCore.QNode):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def axisSettings(self) -> typing.List['QAxisSetting']: ...
|
||||
def removeAxisSetting(self, axisSetting: 'QAxisSetting') -> None: ...
|
||||
def addAxisSetting(self, axisSetting: 'QAxisSetting') -> None: ...
|
||||
def buttonIdentifier(self, name: str) -> int: ...
|
||||
def axisIdentifier(self, name: str) -> int: ...
|
||||
def buttonNames(self) -> typing.List[str]: ...
|
||||
def axisNames(self) -> typing.List[str]: ...
|
||||
def buttonCount(self) -> int: ...
|
||||
def axisCount(self) -> int: ...
|
||||
|
||||
class QAction(Qt3DCore.QNode):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def activeChanged(self, isActive: bool) -> None: ...
|
||||
def inputs(self) -> typing.List['QAbstractActionInput']: ...
|
||||
def removeInput(self, input: 'QAbstractActionInput') -> None: ...
|
||||
def addInput(self, input: 'QAbstractActionInput') -> None: ...
|
||||
def isActive(self) -> bool: ...
|
||||
|
||||
class QActionInput('QAbstractActionInput'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def buttonsChanged(self, buttons: typing.Iterable[int]) -> None: ...
|
||||
def sourceDeviceChanged(self, sourceDevice: 'QAbstractPhysicalDevice') -> None: ...
|
||||
def setButtons(self, buttons: typing.Iterable[int]) -> None: ...
|
||||
def setSourceDevice(self, sourceDevice: 'QAbstractPhysicalDevice') -> None: ...
|
||||
def buttons(self) -> typing.List[int]: ...
|
||||
def sourceDevice(self) -> 'QAbstractPhysicalDevice': ...
|
||||
|
||||
class QAnalogAxisInput('QAbstractAxisInput'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def axisChanged(self, axis: int) -> None: ...
|
||||
def setAxis(self, axis: int) -> None: ...
|
||||
def axis(self) -> int: ...
|
||||
|
||||
class QAxis(Qt3DCore.QNode):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def valueChanged(self, value: float) -> None: ...
|
||||
def value(self) -> float: ...
|
||||
def inputs(self) -> typing.List['QAbstractAxisInput']: ...
|
||||
def removeInput(self, input: 'QAbstractAxisInput') -> None: ...
|
||||
def addInput(self, input: 'QAbstractAxisInput') -> None: ...
|
||||
|
||||
class QAxisAccumulator(Qt3DCore.QComponent):
|
||||
|
||||
class SourceAxisType(int): ...
|
||||
Velocity = ... # type: 'QAxisAccumulator.SourceAxisType'
|
||||
Acceleration = ... # type: 'QAxisAccumulator.SourceAxisType'
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def scaleChanged(self, scale: float) -> None: ...
|
||||
def velocityChanged(self, value: float) -> None: ...
|
||||
def valueChanged(self, value: float) -> None: ...
|
||||
def sourceAxisTypeChanged(self, sourceAxisType: 'QAxisAccumulator.SourceAxisType') -> None: ...
|
||||
def sourceAxisChanged(self, sourceAxis: 'QAxis') -> None: ...
|
||||
def setScale(self, scale: float) -> None: ...
|
||||
def setSourceAxisType(self, sourceAxisType: 'QAxisAccumulator.SourceAxisType') -> None: ...
|
||||
def setSourceAxis(self, sourceAxis: 'QAxis') -> None: ...
|
||||
def scale(self) -> float: ...
|
||||
def velocity(self) -> float: ...
|
||||
def value(self) -> float: ...
|
||||
def sourceAxisType(self) -> 'QAxisAccumulator.SourceAxisType': ...
|
||||
def sourceAxis(self) -> 'QAxis': ...
|
||||
|
||||
class QAxisSetting(Qt3DCore.QNode):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def smoothChanged(self, smooth: bool) -> None: ...
|
||||
def axesChanged(self, axes: typing.Iterable[int]) -> None: ...
|
||||
def deadZoneRadiusChanged(self, deadZoneRadius: float) -> None: ...
|
||||
def setSmoothEnabled(self, enabled: bool) -> None: ...
|
||||
def setAxes(self, axes: typing.Iterable[int]) -> None: ...
|
||||
def setDeadZoneRadius(self, deadZoneRadius: float) -> None: ...
|
||||
def isSmoothEnabled(self) -> bool: ...
|
||||
def axes(self) -> typing.List[int]: ...
|
||||
def deadZoneRadius(self) -> float: ...
|
||||
|
||||
class QButtonAxisInput('QAbstractAxisInput'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def decelerationChanged(self, deceleration: float) -> None: ...
|
||||
def accelerationChanged(self, acceleration: float) -> None: ...
|
||||
def buttonsChanged(self, buttons: typing.Iterable[int]) -> None: ...
|
||||
def scaleChanged(self, scale: float) -> None: ...
|
||||
def setDeceleration(self, deceleration: float) -> None: ...
|
||||
def setAcceleration(self, acceleration: float) -> None: ...
|
||||
def setButtons(self, buttons: typing.Iterable[int]) -> None: ...
|
||||
def setScale(self, scale: float) -> None: ...
|
||||
def deceleration(self) -> float: ...
|
||||
def acceleration(self) -> float: ...
|
||||
def buttons(self) -> typing.List[int]: ...
|
||||
def scale(self) -> float: ...
|
||||
|
||||
class QInputAspect(Qt3DCore.QAbstractAspect):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def availablePhysicalDevices(self) -> typing.List[str]: ...
|
||||
def createPhysicalDevice(self, name: str) -> 'QAbstractPhysicalDevice': ...
|
||||
|
||||
class QInputChord('QAbstractActionInput'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def timeoutChanged(self, timeout: int) -> None: ...
|
||||
def setTimeout(self, timeout: int) -> None: ...
|
||||
def chords(self) -> typing.List['QAbstractActionInput']: ...
|
||||
def removeChord(self, input: 'QAbstractActionInput') -> None: ...
|
||||
def addChord(self, input: 'QAbstractActionInput') -> None: ...
|
||||
def timeout(self) -> int: ...
|
||||
|
||||
class QInputSequence('QAbstractActionInput'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def buttonIntervalChanged(self, buttonInterval: int) -> None: ...
|
||||
def timeoutChanged(self, timeout: int) -> None: ...
|
||||
def setButtonInterval(self, buttonInterval: int) -> None: ...
|
||||
def setTimeout(self, timeout: int) -> None: ...
|
||||
def sequences(self) -> typing.List['QAbstractActionInput']: ...
|
||||
def removeSequence(self, input: 'QAbstractActionInput') -> None: ...
|
||||
def addSequence(self, input: 'QAbstractActionInput') -> None: ...
|
||||
def buttonInterval(self) -> int: ...
|
||||
def timeout(self) -> int: ...
|
||||
|
||||
class QInputSettings(Qt3DCore.QComponent):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def eventSourceChanged(self, a0: QtCore.QObject) -> None: ...
|
||||
def setEventSource(self, eventSource: QtCore.QObject) -> None: ...
|
||||
def eventSource(self) -> QtCore.QObject: ...
|
||||
|
||||
class QKeyboardDevice('QAbstractPhysicalDevice'):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def activeInputChanged(self, activeInput: 'QKeyboardHandler') -> None: ...
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def buttonIdentifier(self, name: str) -> int: ...
|
||||
def axisIdentifier(self, name: str) -> int: ...
|
||||
def buttonNames(self) -> typing.List[str]: ...
|
||||
def axisNames(self) -> typing.List[str]: ...
|
||||
def buttonCount(self) -> int: ...
|
||||
def axisCount(self) -> int: ...
|
||||
def activeInput(self) -> 'QKeyboardHandler': ...
|
||||
|
||||
class QKeyboardHandler(Qt3DCore.QComponent):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def released(self, event: 'QKeyEvent') -> None: ...
|
||||
def pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def volumeDownPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def volumeUpPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def menuPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def flipPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def hangupPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def callPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def context4Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def context3Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def context2Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def context1Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def noPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def yesPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def selectPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def cancelPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def backPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def spacePressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def deletePressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def enterPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def returnPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def escapePressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def numberSignPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def asteriskPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def backtabPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def tabPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def downPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def upPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def rightPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def leftPressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit9Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit8Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit7Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit6Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit5Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit4Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit3Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit2Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit1Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def digit0Pressed(self, event: 'QKeyEvent') -> None: ...
|
||||
def focusChanged(self, focus: bool) -> None: ...
|
||||
def sourceDeviceChanged(self, keyboardDevice: 'QKeyboardDevice') -> None: ...
|
||||
def setFocus(self, focus: bool) -> None: ...
|
||||
def setSourceDevice(self, keyboardDevice: 'QKeyboardDevice') -> None: ...
|
||||
def focus(self) -> bool: ...
|
||||
def sourceDevice(self) -> 'QKeyboardDevice': ...
|
||||
|
||||
class QKeyEvent(QtCore.QObject):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], text: str = ..., autorep: bool = ..., count: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, ke: QtGui.QKeyEvent) -> None: ...
|
||||
|
||||
def matches(self, key_: QtGui.QKeySequence.StandardKey) -> bool: ...
|
||||
def type(self) -> QtCore.QEvent.Type: ...
|
||||
def setAccepted(self, accepted: bool) -> None: ...
|
||||
def isAccepted(self) -> bool: ...
|
||||
def nativeScanCode(self) -> int: ...
|
||||
def count(self) -> int: ...
|
||||
def isAutoRepeat(self) -> bool: ...
|
||||
def modifiers(self) -> int: ...
|
||||
def text(self) -> str: ...
|
||||
def key(self) -> int: ...
|
||||
|
||||
class QLogicalDevice(Qt3DCore.QComponent):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def axes(self) -> typing.List['QAxis']: ...
|
||||
def removeAxis(self, axis: 'QAxis') -> None: ...
|
||||
def addAxis(self, axis: 'QAxis') -> None: ...
|
||||
def actions(self) -> typing.List['QAction']: ...
|
||||
def removeAction(self, action: 'QAction') -> None: ...
|
||||
def addAction(self, action: 'QAction') -> None: ...
|
||||
|
||||
class QMouseDevice('QAbstractPhysicalDevice'):
|
||||
|
||||
class Axis(int): ...
|
||||
X = ... # type: 'QMouseDevice.Axis'
|
||||
Y = ... # type: 'QMouseDevice.Axis'
|
||||
WheelX = ... # type: 'QMouseDevice.Axis'
|
||||
WheelY = ... # type: 'QMouseDevice.Axis'
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def updateAxesContinuouslyChanged(self, updateAxesContinuously: bool) -> None: ...
|
||||
def setUpdateAxesContinuously(self, updateAxesContinuously: bool) -> None: ...
|
||||
def updateAxesContinuously(self) -> bool: ...
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def sensitivityChanged(self, value: float) -> None: ...
|
||||
def setSensitivity(self, value: float) -> None: ...
|
||||
def sensitivity(self) -> float: ...
|
||||
def buttonIdentifier(self, name: str) -> int: ...
|
||||
def axisIdentifier(self, name: str) -> int: ...
|
||||
def buttonNames(self) -> typing.List[str]: ...
|
||||
def axisNames(self) -> typing.List[str]: ...
|
||||
def buttonCount(self) -> int: ...
|
||||
def axisCount(self) -> int: ...
|
||||
|
||||
class QMouseEvent(QtCore.QObject):
|
||||
|
||||
class Modifiers(int): ...
|
||||
NoModifier = ... # type: 'QMouseEvent.Modifiers'
|
||||
ShiftModifier = ... # type: 'QMouseEvent.Modifiers'
|
||||
ControlModifier = ... # type: 'QMouseEvent.Modifiers'
|
||||
AltModifier = ... # type: 'QMouseEvent.Modifiers'
|
||||
MetaModifier = ... # type: 'QMouseEvent.Modifiers'
|
||||
KeypadModifier = ... # type: 'QMouseEvent.Modifiers'
|
||||
|
||||
class Buttons(int): ...
|
||||
LeftButton = ... # type: 'QMouseEvent.Buttons'
|
||||
RightButton = ... # type: 'QMouseEvent.Buttons'
|
||||
MiddleButton = ... # type: 'QMouseEvent.Buttons'
|
||||
BackButton = ... # type: 'QMouseEvent.Buttons'
|
||||
NoButton = ... # type: 'QMouseEvent.Buttons'
|
||||
|
||||
def __init__(self, e: QtGui.QMouseEvent) -> None: ...
|
||||
|
||||
def type(self) -> QtCore.QEvent.Type: ...
|
||||
def setAccepted(self, accepted: bool) -> None: ...
|
||||
def isAccepted(self) -> bool: ...
|
||||
def modifiers(self) -> 'QMouseEvent.Modifiers': ...
|
||||
def buttons(self) -> int: ...
|
||||
def button(self) -> 'QMouseEvent.Buttons': ...
|
||||
def wasHeld(self) -> bool: ...
|
||||
def y(self) -> int: ...
|
||||
def x(self) -> int: ...
|
||||
|
||||
class QWheelEvent(QtCore.QObject):
|
||||
|
||||
class Modifiers(int): ...
|
||||
NoModifier = ... # type: 'QWheelEvent.Modifiers'
|
||||
ShiftModifier = ... # type: 'QWheelEvent.Modifiers'
|
||||
ControlModifier = ... # type: 'QWheelEvent.Modifiers'
|
||||
AltModifier = ... # type: 'QWheelEvent.Modifiers'
|
||||
MetaModifier = ... # type: 'QWheelEvent.Modifiers'
|
||||
KeypadModifier = ... # type: 'QWheelEvent.Modifiers'
|
||||
|
||||
class Buttons(int): ...
|
||||
LeftButton = ... # type: 'QWheelEvent.Buttons'
|
||||
RightButton = ... # type: 'QWheelEvent.Buttons'
|
||||
MiddleButton = ... # type: 'QWheelEvent.Buttons'
|
||||
BackButton = ... # type: 'QWheelEvent.Buttons'
|
||||
NoButton = ... # type: 'QWheelEvent.Buttons'
|
||||
|
||||
def __init__(self, e: QtGui.QWheelEvent) -> None: ...
|
||||
|
||||
def type(self) -> QtCore.QEvent.Type: ...
|
||||
def setAccepted(self, accepted: bool) -> None: ...
|
||||
def isAccepted(self) -> bool: ...
|
||||
def modifiers(self) -> 'QWheelEvent.Modifiers': ...
|
||||
def buttons(self) -> int: ...
|
||||
def angleDelta(self) -> QtCore.QPoint: ...
|
||||
def y(self) -> int: ...
|
||||
def x(self) -> int: ...
|
||||
|
||||
class QMouseHandler(Qt3DCore.QComponent):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
|
||||
def wheel(self, wheel: 'QWheelEvent') -> None: ...
|
||||
def positionChanged(self, mouse: 'QMouseEvent') -> None: ...
|
||||
def pressAndHold(self, mouse: 'QMouseEvent') -> None: ...
|
||||
def released(self, mouse: 'QMouseEvent') -> None: ...
|
||||
def pressed(self, mouse: 'QMouseEvent') -> None: ...
|
||||
def exited(self) -> None: ...
|
||||
def entered(self) -> None: ...
|
||||
def doubleClicked(self, mouse: 'QMouseEvent') -> None: ...
|
||||
def clicked(self, mouse: 'QMouseEvent') -> None: ...
|
||||
def containsMouseChanged(self, containsMouse: bool) -> None: ...
|
||||
def sourceDeviceChanged(self, mouseDevice: 'QMouseDevice') -> None: ...
|
||||
def setSourceDevice(self, mouseDevice: 'QMouseDevice') -> None: ...
|
||||
def containsMouse(self) -> bool: ...
|
||||
def sourceDevice(self) -> 'QMouseDevice': ...
|
||||
|
||||
class QPhysicalDeviceCreatedChangeBase(Qt3DCore.QNodeCreatedChangeBase):
|
||||
|
||||
def __init__(self, device: 'QAbstractPhysicalDevice') -> None: ...
|
||||
|
||||
def axisSettingIds(self) -> typing.List[Qt3DCore.QNodeId]: ...
|
||||
@@ -0,0 +1,50 @@
|
||||
# The PEP 484 type hints stub file for the Qt3DLogic module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQt3D.
|
||||
#
|
||||
# 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
from PyQt5 import Qt3DCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QFrameAction(Qt3DCore.QComponent):
|
||||
|
||||
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
|
||||
|
||||
def triggered(self, dt: float) -> None: ...
|
||||
|
||||
class QLogicAspect(Qt3DCore.QAbstractAspect):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,517 @@
|
||||
# The PEP 484 type hints stub file for the QtDBus module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
from PyQt5 import sip
|
||||
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 __index__(self) -> int: ...
|
||||
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 __index__(self) -> int: ...
|
||||
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 activatableServiceNames(self) -> '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 __index__(self) -> int: ...
|
||||
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: ...
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,482 @@
|
||||
# The PEP 484 type hints stub file for the QtDesigner module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 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_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 __index__(self) -> int: ...
|
||||
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': ... # type: ignore[override]
|
||||
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): # type: ignore[misc]
|
||||
|
||||
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
@@ -0,0 +1,310 @@
|
||||
# The PEP 484 type hints stub file for the QtHelp module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 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_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: ...
|
||||
|
||||
def isNull(self) -> bool: ...
|
||||
@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: ... # type: ignore[override]
|
||||
def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
|
||||
def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ... # type: ignore[override]
|
||||
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: ...
|
||||
|
||||
@typing.overload
|
||||
def documentsForKeyword(self, keyword: str) -> typing.List['QHelpLink']: ...
|
||||
@typing.overload
|
||||
def documentsForKeyword(self, keyword: str, filterName: str) -> typing.List['QHelpLink']: ...
|
||||
@typing.overload
|
||||
def documentsForIdentifier(self, id: str) -> typing.List['QHelpLink']: ...
|
||||
@typing.overload
|
||||
def documentsForIdentifier(self, id: str, filterName: str) -> typing.List['QHelpLink']: ...
|
||||
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):
|
||||
|
||||
@typing.overload
|
||||
def indices(self) -> typing.List[str]: ...
|
||||
@typing.overload
|
||||
def indices(self, filterName: str) -> typing.List[str]: ...
|
||||
def availableVersions(self) -> typing.List[QtCore.QVersionNumber]: ...
|
||||
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 QHelpFilterSettingsWidget(QtWidgets.QWidget):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
|
||||
|
||||
def applySettings(self, filterEngine: QHelpFilterEngine) -> bool: ...
|
||||
def readSettings(self, filterEngine: QHelpFilterEngine) -> None: ...
|
||||
def setAvailableVersions(self, versions: typing.Iterable[QtCore.QVersionNumber]) -> None: ...
|
||||
def setAvailableComponents(self, components: typing.Iterable[str]) -> None: ...
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
def helpEngine(self) -> QHelpEngineCore: ...
|
||||
|
||||
|
||||
class QHelpIndexWidget(QtWidgets.QListView):
|
||||
|
||||
def documentsActivated(self, documents: typing.Iterable['QHelpLink'], keyword: str) -> None: ...
|
||||
def documentActivated(self, document: 'QHelpLink', keyword: str) -> None: ...
|
||||
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 QHelpLink(sip.simplewrapper):
|
||||
|
||||
title = ... # type: str
|
||||
url = ... # type: QtCore.QUrl
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QHelpLink') -> 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
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,126 @@
|
||||
# The PEP 484 type hints stub file for the QtMultimediaWidgets module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5 import QtMultimedia
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 videoSurface(self) -> QtMultimedia.QAbstractVideoSurface: ...
|
||||
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 videoSurface(self) -> QtMultimedia.QAbstractVideoSurface: ...
|
||||
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: ...
|
||||
|
||||
|
||||
class QVideoWidgetControl(QtMultimedia.QMediaControl):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
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 saturation(self) -> int: ...
|
||||
def setHue(self, hue: int) -> None: ...
|
||||
def hue(self) -> int: ...
|
||||
def setContrast(self, contrast: int) -> None: ...
|
||||
def contrast(self) -> int: ...
|
||||
def setBrightness(self, brightness: int) -> None: ...
|
||||
def brightness(self) -> int: ...
|
||||
def setFullScreen(self, fullScreen: bool) -> None: ...
|
||||
def isFullScreen(self) -> bool: ...
|
||||
def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ...
|
||||
def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ...
|
||||
def videoWidget(self) -> QtWidgets.QWidget: ...
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,313 @@
|
||||
# The PEP 484 type hints stub file for the QtNetworkAuth module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtNetwork
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
|
||||
|
||||
|
||||
class QAbstractOAuth(QtCore.QObject):
|
||||
|
||||
class ContentType(int):
|
||||
WwwFormUrlEncoded = ... # type: 'QAbstractOAuth.ContentType'
|
||||
Json = ... # type: 'QAbstractOAuth.ContentType'
|
||||
|
||||
class Error(int):
|
||||
NoError = ... # type: 'QAbstractOAuth.Error'
|
||||
NetworkError = ... # type: 'QAbstractOAuth.Error'
|
||||
ServerError = ... # type: 'QAbstractOAuth.Error'
|
||||
OAuthTokenNotFoundError = ... # type: 'QAbstractOAuth.Error'
|
||||
OAuthTokenSecretNotFoundError = ... # type: 'QAbstractOAuth.Error'
|
||||
OAuthCallbackNotVerified = ... # type: 'QAbstractOAuth.Error'
|
||||
|
||||
class Stage(int):
|
||||
RequestingTemporaryCredentials = ... # type: 'QAbstractOAuth.Stage'
|
||||
RequestingAuthorization = ... # type: 'QAbstractOAuth.Stage'
|
||||
RequestingAccessToken = ... # type: 'QAbstractOAuth.Stage'
|
||||
RefreshingAccessToken = ... # type: 'QAbstractOAuth.Stage'
|
||||
|
||||
class Status(int):
|
||||
NotAuthenticated = ... # type: 'QAbstractOAuth.Status'
|
||||
TemporaryCredentialsReceived = ... # type: 'QAbstractOAuth.Status'
|
||||
Granted = ... # type: 'QAbstractOAuth.Status'
|
||||
RefreshingToken = ... # type: 'QAbstractOAuth.Status'
|
||||
|
||||
@staticmethod
|
||||
def generateRandomString(length: int) -> QtCore.QByteArray: ...
|
||||
def resourceOwnerAuthorization(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any]) -> None: ...
|
||||
def callback(self) -> str: ...
|
||||
def setStatus(self, status: 'QAbstractOAuth.Status') -> None: ...
|
||||
def replyDataReceived(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def finished(self, reply: QtNetwork.QNetworkReply) -> None: ...
|
||||
def granted(self) -> None: ...
|
||||
def authorizeWithBrowser(self, url: QtCore.QUrl) -> None: ...
|
||||
def requestFailed(self, error: 'QAbstractOAuth.Error') -> None: ...
|
||||
def contentTypeChanged(self, contentType: 'QAbstractOAuth.ContentType') -> None: ...
|
||||
def extraTokensChanged(self, tokens: typing.Dict[str, typing.Any]) -> None: ...
|
||||
def authorizationUrlChanged(self, url: QtCore.QUrl) -> None: ...
|
||||
def statusChanged(self, status: 'QAbstractOAuth.Status') -> None: ...
|
||||
def tokenChanged(self, token: str) -> None: ...
|
||||
def clientIdentifierChanged(self, clientIdentifier: str) -> None: ...
|
||||
def grant(self) -> None: ...
|
||||
def prepareRequest(self, request: QtNetwork.QNetworkRequest, verb: typing.Union[QtCore.QByteArray, bytes, bytearray], body: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ...
|
||||
def setContentType(self, contentType: 'QAbstractOAuth.ContentType') -> None: ...
|
||||
def contentType(self) -> 'QAbstractOAuth.ContentType': ...
|
||||
def setModifyParametersFunction(self, modifyParametersFunction: typing.Callable[..., None]) -> None: ...
|
||||
def modifyParametersFunction(self) -> typing.Callable[..., None]: ...
|
||||
def deleteResource(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def put(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def post(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def get(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def head(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def setReplyHandler(self, handler: 'QAbstractOAuthReplyHandler') -> None: ...
|
||||
def replyHandler(self) -> 'QAbstractOAuthReplyHandler': ...
|
||||
def extraTokens(self) -> typing.Dict[str, typing.Any]: ...
|
||||
def setAuthorizationUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def authorizationUrl(self) -> QtCore.QUrl: ...
|
||||
def status(self) -> 'QAbstractOAuth.Status': ...
|
||||
def setNetworkAccessManager(self, networkAccessManager: QtNetwork.QNetworkAccessManager) -> None: ...
|
||||
def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ...
|
||||
def setToken(self, token: str) -> None: ...
|
||||
def token(self) -> str: ...
|
||||
def setClientIdentifier(self, clientIdentifier: str) -> None: ...
|
||||
def clientIdentifier(self) -> str: ...
|
||||
|
||||
|
||||
class QAbstractOAuth2(QAbstractOAuth):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, manager: QtNetwork.QNetworkAccessManager, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def setResponseType(self, responseType: str) -> None: ...
|
||||
def authorizationCallbackReceived(self, data: typing.Dict[str, typing.Any]) -> None: ...
|
||||
def error(self, error: str, errorDescription: str, uri: QtCore.QUrl) -> None: ...
|
||||
def expirationAtChanged(self, expiration: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ...
|
||||
def stateChanged(self, state: str) -> None: ...
|
||||
def clientIdentifierSharedKeyChanged(self, clientIdentifierSharedKey: str) -> None: ...
|
||||
def responseTypeChanged(self, responseType: str) -> None: ...
|
||||
def refreshTokenChanged(self, refreshToken: str) -> None: ...
|
||||
def userAgentChanged(self, userAgent: str) -> None: ...
|
||||
def scopeChanged(self, scope: str) -> None: ...
|
||||
def setRefreshToken(self, refreshToken: str) -> None: ...
|
||||
def refreshToken(self) -> str: ...
|
||||
def expirationAt(self) -> QtCore.QDateTime: ...
|
||||
def setState(self, state: str) -> None: ...
|
||||
def state(self) -> str: ...
|
||||
def setClientIdentifierSharedKey(self, clientIdentifierSharedKey: str) -> None: ...
|
||||
def clientIdentifierSharedKey(self) -> str: ...
|
||||
def responseType(self) -> str: ...
|
||||
def setUserAgent(self, userAgent: str) -> None: ...
|
||||
def userAgent(self) -> str: ...
|
||||
def setScope(self, scope: str) -> None: ...
|
||||
def scope(self) -> str: ...
|
||||
def deleteResource(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
@typing.overload
|
||||
def put(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
@typing.overload
|
||||
def put(self, url: QtCore.QUrl, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtNetwork.QNetworkReply: ...
|
||||
@typing.overload
|
||||
def put(self, url: QtCore.QUrl, multiPart: QtNetwork.QHttpMultiPart) -> QtNetwork.QNetworkReply: ...
|
||||
@typing.overload
|
||||
def post(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
@typing.overload
|
||||
def post(self, url: QtCore.QUrl, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtNetwork.QNetworkReply: ...
|
||||
@typing.overload
|
||||
def post(self, url: QtCore.QUrl, multiPart: QtNetwork.QHttpMultiPart) -> QtNetwork.QNetworkReply: ...
|
||||
def get(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def head(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def createAuthenticatedUrl(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtCore.QUrl: ...
|
||||
|
||||
|
||||
class QAbstractOAuthReplyHandler(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def callbackDataReceived(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def replyDataReceived(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def tokensReceived(self, tokens: typing.Dict[str, typing.Any]) -> None: ...
|
||||
def callbackReceived(self, values: typing.Dict[str, typing.Any]) -> None: ...
|
||||
def networkReplyFinished(self, reply: QtNetwork.QNetworkReply) -> None: ...
|
||||
def callback(self) -> str: ...
|
||||
|
||||
|
||||
class QOAuth1(QAbstractOAuth):
|
||||
|
||||
class SignatureMethod(int):
|
||||
Hmac_Sha1 = ... # type: 'QOAuth1.SignatureMethod'
|
||||
Rsa_Sha1 = ... # type: 'QOAuth1.SignatureMethod'
|
||||
PlainText = ... # type: 'QOAuth1.SignatureMethod'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, manager: QtNetwork.QNetworkAccessManager, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, clientIdentifier: str, clientSharedSecret: str, manager: QtNetwork.QNetworkAccessManager, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
@staticmethod
|
||||
def generateAuthorizationHeader(oauthParams: typing.Dict[str, typing.Any]) -> QtCore.QByteArray: ...
|
||||
@staticmethod
|
||||
def nonce() -> QtCore.QByteArray: ...
|
||||
@typing.overload
|
||||
def setup(self, request: QtNetwork.QNetworkRequest, signingParameters: typing.Dict[str, typing.Any], operation: QtNetwork.QNetworkAccessManager.Operation) -> None: ...
|
||||
@typing.overload
|
||||
def setup(self, request: QtNetwork.QNetworkRequest, signingParameters: typing.Dict[str, typing.Any], operationVerb: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def requestTokenCredentials(self, operation: QtNetwork.QNetworkAccessManager.Operation, url: QtCore.QUrl, temporaryToken: typing.Tuple[str, str], parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def requestTemporaryCredentials(self, operation: QtNetwork.QNetworkAccessManager.Operation, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def tokenCredentialsUrlChanged(self, url: QtCore.QUrl) -> None: ...
|
||||
def temporaryCredentialsUrlChanged(self, url: QtCore.QUrl) -> None: ...
|
||||
def tokenSecretChanged(self, token: str) -> None: ...
|
||||
def clientSharedSecretChanged(self, credential: str) -> None: ...
|
||||
def signatureMethodChanged(self, method: 'QOAuth1.SignatureMethod') -> None: ...
|
||||
def continueGrantWithVerifier(self, verifier: str) -> None: ...
|
||||
def grant(self) -> None: ...
|
||||
def deleteResource(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def put(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def post(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def get(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def head(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> QtNetwork.QNetworkReply: ...
|
||||
def setSignatureMethod(self, value: 'QOAuth1.SignatureMethod') -> None: ...
|
||||
def signatureMethod(self) -> 'QOAuth1.SignatureMethod': ...
|
||||
def setTokenCredentialsUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def tokenCredentialsUrl(self) -> QtCore.QUrl: ...
|
||||
def setTemporaryCredentialsUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def temporaryCredentialsUrl(self) -> QtCore.QUrl: ...
|
||||
@typing.overload
|
||||
def setTokenCredentials(self, tokenCredentials: typing.Tuple[str, str]) -> None: ...
|
||||
@typing.overload
|
||||
def setTokenCredentials(self, token: str, tokenSecret: str) -> None: ...
|
||||
def tokenCredentials(self) -> typing.Tuple[str, str]: ...
|
||||
def setTokenSecret(self, tokenSecret: str) -> None: ...
|
||||
def tokenSecret(self) -> str: ...
|
||||
@typing.overload
|
||||
def setClientCredentials(self, clientCredentials: typing.Tuple[str, str]) -> None: ...
|
||||
@typing.overload
|
||||
def setClientCredentials(self, clientIdentifier: str, clientSharedSecret: str) -> None: ...
|
||||
def clientCredentials(self) -> typing.Tuple[str, str]: ...
|
||||
def setClientSharedSecret(self, clientSharedSecret: str) -> None: ...
|
||||
def clientSharedSecret(self) -> str: ...
|
||||
|
||||
|
||||
class QOAuth1Signature(sip.simplewrapper):
|
||||
|
||||
class HttpRequestMethod(int):
|
||||
Head = ... # type: 'QOAuth1Signature.HttpRequestMethod'
|
||||
Get = ... # type: 'QOAuth1Signature.HttpRequestMethod'
|
||||
Put = ... # type: 'QOAuth1Signature.HttpRequestMethod'
|
||||
Post = ... # type: 'QOAuth1Signature.HttpRequestMethod'
|
||||
Delete = ... # type: 'QOAuth1Signature.HttpRequestMethod'
|
||||
Custom = ... # type: 'QOAuth1Signature.HttpRequestMethod'
|
||||
Unknown = ... # type: 'QOAuth1Signature.HttpRequestMethod'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, url: QtCore.QUrl = ..., method: 'QOAuth1Signature.HttpRequestMethod' = ..., parameters: typing.Dict[str, typing.Any] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, url: QtCore.QUrl, clientSharedKey: str, tokenSecret: str, method: 'QOAuth1Signature.HttpRequestMethod' = ..., parameters: typing.Dict[str, typing.Any] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, other: 'QOAuth1Signature') -> None: ...
|
||||
|
||||
def setCustomMethodString(self, verb: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def customMethodString(self) -> QtCore.QByteArray: ...
|
||||
def swap(self, other: 'QOAuth1Signature') -> None: ...
|
||||
@typing.overload # type: ignore[misc]
|
||||
def plainText(self) -> QtCore.QByteArray: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def plainText(clientSharedSecret: str, tokenSecret: str) -> QtCore.QByteArray: ...
|
||||
def rsaSha1(self) -> QtCore.QByteArray: ...
|
||||
def hmacSha1(self) -> QtCore.QByteArray: ...
|
||||
def setTokenSecret(self, secret: str) -> None: ...
|
||||
def tokenSecret(self) -> str: ...
|
||||
def setClientSharedKey(self, secret: str) -> None: ...
|
||||
def clientSharedKey(self) -> str: ...
|
||||
def value(self, key: str, defaultValue: typing.Any = ...) -> typing.Any: ...
|
||||
def take(self, key: str) -> typing.Any: ...
|
||||
def keys(self) -> typing.List[str]: ...
|
||||
def insert(self, key: str, value: typing.Any) -> None: ...
|
||||
def addRequestBody(self, body: QtCore.QUrlQuery) -> None: ...
|
||||
def setParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ...
|
||||
def parameters(self) -> typing.Dict[str, typing.Any]: ...
|
||||
def setUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def setHttpRequestMethod(self, method: 'QOAuth1Signature.HttpRequestMethod') -> None: ...
|
||||
def httpRequestMethod(self) -> 'QOAuth1Signature.HttpRequestMethod': ...
|
||||
|
||||
|
||||
class QOAuth2AuthorizationCodeFlow(QAbstractOAuth2):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, manager: QtNetwork.QNetworkAccessManager, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, clientIdentifier: str, manager: QtNetwork.QNetworkAccessManager, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, authorizationUrl: QtCore.QUrl, accessTokenUrl: QtCore.QUrl, manager: QtNetwork.QNetworkAccessManager, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, clientIdentifier: str, authorizationUrl: QtCore.QUrl, accessTokenUrl: QtCore.QUrl, manager: QtNetwork.QNetworkAccessManager, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def resourceOwnerAuthorization(self, url: QtCore.QUrl, parameters: typing.Dict[str, typing.Any] = ...) -> None: ...
|
||||
def requestAccessToken(self, code: str) -> None: ...
|
||||
def buildAuthenticateUrl(self, parameters: typing.Dict[str, typing.Any] = ...) -> QtCore.QUrl: ...
|
||||
def accessTokenUrlChanged(self, accessTokenUrl: QtCore.QUrl) -> None: ...
|
||||
def refreshAccessToken(self) -> None: ...
|
||||
def grant(self) -> None: ...
|
||||
def setAccessTokenUrl(self, accessTokenUrl: QtCore.QUrl) -> None: ...
|
||||
def accessTokenUrl(self) -> QtCore.QUrl: ...
|
||||
|
||||
|
||||
class QOAuthOobReplyHandler(QAbstractOAuthReplyHandler):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def networkReplyFinished(self, reply: QtNetwork.QNetworkReply) -> None: ...
|
||||
def callback(self) -> str: ...
|
||||
|
||||
|
||||
class QOAuthHttpServerReplyHandler(QOAuthOobReplyHandler):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, port: int, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, address: typing.Union[QtNetwork.QHostAddress, QtNetwork.QHostAddress.SpecialAddress], port: int, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def isListening(self) -> bool: ...
|
||||
def close(self) -> None: ...
|
||||
def listen(self, address: typing.Union[QtNetwork.QHostAddress, QtNetwork.QHostAddress.SpecialAddress] = ..., port: int = ...) -> bool: ...
|
||||
def port(self) -> int: ...
|
||||
def setCallbackText(self, text: str) -> None: ...
|
||||
def callbackText(self) -> str: ...
|
||||
def setCallbackPath(self, path: str) -> None: ...
|
||||
def callbackPath(self) -> str: ...
|
||||
def callback(self) -> str: ...
|
||||
@@ -0,0 +1,433 @@
|
||||
# The PEP 484 type hints stub file for the QtNfc module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 __index__(self) -> int: ...
|
||||
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 __index__(self) -> int: ...
|
||||
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 __index__(self) -> int: ...
|
||||
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: ... # type: ignore[override]
|
||||
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: ...
|
||||
@@ -0,0 +1,332 @@
|
||||
# The PEP 484 type hints stub file for the QtOpenGL module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
from PyQt5 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_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 __index__(self) -> int: ...
|
||||
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 __index__(self) -> int: ...
|
||||
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 __index__(self) -> int: ...
|
||||
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: ...
|
||||
@@ -0,0 +1,534 @@
|
||||
# The PEP 484 type hints stub file for the QtPositioning module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 __index__(self) -> int: ...
|
||||
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 __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
def __init__(self, parent: QtCore.QObject) -> None: ...
|
||||
|
||||
def backendProperty(self, name: str) -> typing.Any: ...
|
||||
def setBackendProperty(self, name: str, value: typing.Any) -> bool: ...
|
||||
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: ...
|
||||
# If the error signal is real, it isn't accessible in PyQt 5.15.1
|
||||
def error(self) -> 'QGeoPositionInfoSource.Error': ...
|
||||
@staticmethod
|
||||
def availableSources() -> typing.List[str]: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def createSource(sourceName: str, parameters: typing.Dict[str, typing.Any], parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def createDefaultSource(parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def createDefaultSource(parameters: typing.Dict[str, typing.Any], 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: ... # type: ignore[override]
|
||||
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]: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def createSource(sourceName: str, parameters: typing.Dict[str, typing.Any], parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def createDefaultSource(parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def createDefaultSource(parameters: typing.Dict[str, typing.Any], 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': ...
|
||||
@@ -0,0 +1,438 @@
|
||||
# The PEP 484 type hints stub file for the QtPrintSupport module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
from PyQt5 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_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 __index__(self) -> int: ...
|
||||
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 # type: ignore[override]
|
||||
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 accept(self) -> 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: ... # type: ignore[override]
|
||||
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: ...
|
||||
|
||||
paintRequested: typing.ClassVar[QtCore.pyqtSignal]
|
||||
|
||||
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: ...
|
||||
previewChanged: typing.ClassVar[QtCore.pyqtSignal]
|
||||
paintRequested: typing.ClassVar[QtCore.pyqtSignal]
|
||||
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: ...
|
||||
@@ -0,0 +1,88 @@
|
||||
# The PEP 484 type hints stub file for the QtPurchasing module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQtPurchasing.
|
||||
#
|
||||
# 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
|
||||
|
||||
|
||||
class QInAppProduct(QtCore.QObject):
|
||||
|
||||
class ProductType(int): ...
|
||||
Consumable = ... # type: 'QInAppProduct.ProductType'
|
||||
Unlockable = ... # type: 'QInAppProduct.ProductType'
|
||||
|
||||
def purchase(self) -> None: ...
|
||||
def description(self) -> str: ...
|
||||
def title(self) -> str: ...
|
||||
def price(self) -> str: ...
|
||||
def productType(self) -> 'QInAppProduct.ProductType': ...
|
||||
def identifier(self) -> str: ...
|
||||
|
||||
|
||||
class QInAppStore(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def transactionReady(self, transaction: 'QInAppTransaction') -> None: ...
|
||||
def productUnknown(self, productType: QInAppProduct.ProductType, identifier: str) -> None: ...
|
||||
def productRegistered(self, product: QInAppProduct) -> None: ...
|
||||
def setPlatformProperty(self, propertyName: str, value: str) -> None: ...
|
||||
def registeredProduct(self, identifier: str) -> QInAppProduct: ...
|
||||
def registerProduct(self, productType: QInAppProduct.ProductType, identifier: str) -> None: ...
|
||||
def restorePurchases(self) -> None: ...
|
||||
|
||||
|
||||
class QInAppTransaction(QtCore.QObject):
|
||||
|
||||
class FailureReason(int): ...
|
||||
NoFailure = ... # type: 'QInAppTransaction.FailureReason'
|
||||
CanceledByUser = ... # type: 'QInAppTransaction.FailureReason'
|
||||
ErrorOccurred = ... # type: 'QInAppTransaction.FailureReason'
|
||||
|
||||
class TransactionStatus(int): ...
|
||||
Unknown = ... # type: 'QInAppTransaction.TransactionStatus'
|
||||
PurchaseApproved = ... # type: 'QInAppTransaction.TransactionStatus'
|
||||
PurchaseFailed = ... # type: 'QInAppTransaction.TransactionStatus'
|
||||
PurchaseRestored = ... # type: 'QInAppTransaction.TransactionStatus'
|
||||
|
||||
def status(self) -> 'QInAppTransaction.TransactionStatus': ...
|
||||
def platformProperty(self, propertyName: str) -> str: ...
|
||||
def finalize(self) -> None: ...
|
||||
def timestamp(self) -> QtCore.QDateTime: ...
|
||||
def errorString(self) -> str: ...
|
||||
def failureReason(self) -> 'QInAppTransaction.FailureReason': ...
|
||||
def orderId(self) -> str: ...
|
||||
def product(self) -> QInAppProduct: ...
|
||||
|
||||
|
||||
PYQT_PURCHASING_VERSION = ... # type: int
|
||||
PYQT_PURCHASING_VERSION_STR = ... # type: str
|
||||
QTPURCHASING_VERSION = ... # type: int
|
||||
QTPURCHASING_VERSION_STR = ... # type: str
|
||||
@@ -0,0 +1,667 @@
|
||||
# The PEP 484 type hints stub file for the QtQml module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtNetwork
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, parent: QtCore.QObject) -> None: ...
|
||||
|
||||
def uiLanguageChanged(self) -> None: ...
|
||||
def setUiLanguage(self, language: str) -> None: ...
|
||||
def uiLanguage(self) -> str: ...
|
||||
def isInterrupted(self) -> bool: ...
|
||||
def setInterrupted(self, interrupted: bool) -> 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: ...
|
||||
exit: typing.ClassVar[QtCore.pyqtSignal]
|
||||
warnings: typing.ClassVar[QtCore.pyqtSignal]
|
||||
quit: typing.ClassVar[QtCore.pyqtSignal]
|
||||
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: ...
|
||||
|
||||
objectCreated: typing.ClassVar[QtCore.pyqtSignal]
|
||||
def setInitialProperties(self, initialProperties: typing.Dict[str, typing.Any]) -> 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 setInitialProperties(self, component: QtCore.QObject, properties: typing.Dict[str, typing.Any]) -> 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: ...
|
||||
def createWithInitialProperties(self, initialProperties: typing.Dict[str, typing.Any], context: typing.Optional['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 __index__(self) -> int: ...
|
||||
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 QQmlEngineExtensionPlugin(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def initializeEngine(self, engine: QQmlEngine, 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 setInitialProperties(self, initialProperties: typing.Dict[str, typing.Any]) -> 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 removeLast(self) -> bool: ...
|
||||
def replace(self, a0: int, a1: QtCore.QObject) -> bool: ...
|
||||
def canRemoveLast(self) -> bool: ...
|
||||
def canReplace(self) -> bool: ...
|
||||
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 # type: ignore[misc]
|
||||
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 # type: ignore[misc]
|
||||
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
@@ -0,0 +1,101 @@
|
||||
# The PEP 484 type hints stub file for the QtQuickWidgets module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 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_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: ...
|
||||
@@ -0,0 +1,192 @@
|
||||
# The PEP 484 type hints stub file for the QtRemoteObjects module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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: ... # type: ignore[override]
|
||||
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: ... # type: ignore[override]
|
||||
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 notified(self) -> None: ...
|
||||
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 hostUrlChanged(self) -> 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'
|
||||
@@ -0,0 +1,662 @@
|
||||
# The PEP 484 type hints stub file for the QtSensors module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ... # type: ignore[override]
|
||||
|
||||
|
||||
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: ...
|
||||
@@ -0,0 +1,240 @@
|
||||
# The PEP 484 type hints stub file for the QtSerialPort module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 __index__(self) -> int: ...
|
||||
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 __index__(self) -> int: ...
|
||||
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: ...
|
||||
@@ -0,0 +1,668 @@
|
||||
# The PEP 484 type hints stub file for the QtSql module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
from PyQt5 import sip
|
||||
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 # type: ignore[override]
|
||||
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: ... # type: ignore[override]
|
||||
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: ... # type: ignore[override]
|
||||
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: ... # Rename first argument from item to index
|
||||
def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... # Rename first argument from item to index
|
||||
|
||||
|
||||
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 __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
@@ -0,0 +1,145 @@
|
||||
# The PEP 484 type hints stub file for the QtSvg module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 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_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 transformForElement(self, id: str) -> QtGui.QTransform: ...
|
||||
def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ...
|
||||
def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ...
|
||||
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: ...
|
||||
@@ -0,0 +1,207 @@
|
||||
# The PEP 484 type hints stub file for the QtTest module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
from PyQt5 import sip
|
||||
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5 import QtCore
|
||||
from PyQt5 import QtGui # add import of QtGui
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, signal: QtCore.pyqtBoundSignal) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, obj: QtCore.QObject, signal: QtCore.QMetaMethod) -> 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
|
||||
@staticmethod
|
||||
def touchEvent(widget: QtWidgets.QWidget, device: QtGui.QTouchDevice) -> 'QTest.QTouchEventSequence': ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def touchEvent(window: QtGui.QWindow, device: QtGui.QTouchDevice) -> 'QTest.QTouchEventSequence': ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def qWaitForWindowExposed(window: QtGui.QWindow, timeout: int = ...) -> bool: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def qWaitForWindowExposed(widget: QtWidgets.QWidget, timeout: int = ...) -> bool: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def qWaitForWindowActive(window: QtGui.QWindow, timeout: int = ...) -> bool: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def qWaitForWindowActive(widget: QtWidgets.QWidget, timeout: int = ...) -> bool: ...
|
||||
@staticmethod
|
||||
def qWait(ms: int) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mouseRelease(widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mouseRelease(window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mousePress(widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mousePress(window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mouseMove(widget: QtWidgets.QWidget, pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mouseMove(window: QtGui.QWindow, pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mouseDClick(widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mouseDClick(window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mouseClick(widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def mouseClick(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
|
||||
@staticmethod
|
||||
def keyRelease(widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyRelease(widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyRelease(window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyRelease(window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyPress(widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyPress(widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyPress(window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyPress(window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyEvent(action: 'QTest.KeyAction', widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyEvent(action: 'QTest.KeyAction', widget: QtWidgets.QWidget, ascii: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyEvent(action: 'QTest.KeyAction', window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyEvent(action: 'QTest.KeyAction', window: QtGui.QWindow, ascii: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@staticmethod
|
||||
def keyClicks(widget: QtWidgets.QWidget, sequence: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyClick(widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyClick(widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyClick(window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@typing.overload
|
||||
@staticmethod
|
||||
def keyClick(window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ...
|
||||
@staticmethod
|
||||
def qSleep(ms: int) -> None: ...
|
||||
@@ -0,0 +1,55 @@
|
||||
# The PEP 484 type hints stub file for the QtWebChannel module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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, None, 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, None, str]]) -> None: ...
|
||||
@@ -0,0 +1,152 @@
|
||||
# The PEP 484 type hints stub file for the QtWebEngine module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQtWebEngine.
|
||||
#
|
||||
# This file may be used under the terms of the GNU General Public License
|
||||
# version 3.0 as published by the Free Software Foundation and appearing in
|
||||
# the file LICENSE included in the packaging of this file. Please review the
|
||||
# following information to ensure the GNU General Public License version 3.0
|
||||
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
#
|
||||
# If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
# then you may purchase a commercial license. For more information contact
|
||||
# info@riverbankcomputing.com.
|
||||
#
|
||||
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
import typing
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtWebEngineCore
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QQuickWebEngineProfile(QtCore.QObject):
|
||||
|
||||
class PersistentCookiesPolicy(int): ...
|
||||
NoPersistentCookies = ... # type: 'QQuickWebEngineProfile.PersistentCookiesPolicy'
|
||||
AllowPersistentCookies = ... # type: 'QQuickWebEngineProfile.PersistentCookiesPolicy'
|
||||
ForcePersistentCookies = ... # type: 'QQuickWebEngineProfile.PersistentCookiesPolicy'
|
||||
|
||||
class HttpCacheType(int): ...
|
||||
MemoryHttpCache = ... # type: 'QQuickWebEngineProfile.HttpCacheType'
|
||||
DiskHttpCache = ... # type: 'QQuickWebEngineProfile.HttpCacheType'
|
||||
NoCache = ... # type: 'QQuickWebEngineProfile.HttpCacheType'
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def presentNotification(self, notification: QtWebEngineCore.QWebEngineNotification) -> None: ...
|
||||
def downloadPathChanged(self) -> None: ...
|
||||
def useForGlobalCertificateVerificationChanged(self) -> None: ...
|
||||
def clientCertificateStore(self) -> QtWebEngineCore.QWebEngineClientCertificateStore: ...
|
||||
def setDownloadPath(self, path: str) -> None: ...
|
||||
def downloadPath(self) -> str: ...
|
||||
def isUsedForGlobalCertificateVerification(self) -> bool: ...
|
||||
def setUseForGlobalCertificateVerification(self, b: bool) -> None: ...
|
||||
def spellCheckEnabledChanged(self) -> None: ...
|
||||
def spellCheckLanguagesChanged(self) -> None: ...
|
||||
def isSpellCheckEnabled(self) -> bool: ...
|
||||
def setSpellCheckEnabled(self, enabled: bool) -> None: ...
|
||||
def spellCheckLanguages(self) -> typing.List[str]: ...
|
||||
def setSpellCheckLanguages(self, languages: typing.Iterable[str]) -> None: ...
|
||||
def httpAcceptLanguageChanged(self) -> None: ...
|
||||
def httpCacheMaximumSizeChanged(self) -> None: ...
|
||||
def persistentCookiesPolicyChanged(self) -> None: ...
|
||||
def httpCacheTypeChanged(self) -> None: ...
|
||||
def httpUserAgentChanged(self) -> None: ...
|
||||
def cachePathChanged(self) -> None: ...
|
||||
def persistentStoragePathChanged(self) -> None: ...
|
||||
def offTheRecordChanged(self) -> None: ...
|
||||
def storageNameChanged(self) -> None: ...
|
||||
@staticmethod
|
||||
def defaultProfile() -> 'QQuickWebEngineProfile': ...
|
||||
def clearHttpCache(self) -> None: ...
|
||||
def removeAllUrlSchemeHandlers(self) -> None: ...
|
||||
def removeUrlSchemeHandler(self, a0: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ...
|
||||
def removeUrlScheme(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def installUrlSchemeHandler(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray], a1: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ...
|
||||
def urlSchemeHandler(self, a0: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtWebEngineCore.QWebEngineUrlSchemeHandler: ...
|
||||
def setRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ...
|
||||
def setUrlRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ...
|
||||
def cookieStore(self) -> QtWebEngineCore.QWebEngineCookieStore: ...
|
||||
def setHttpAcceptLanguage(self, httpAcceptLanguage: str) -> None: ...
|
||||
def httpAcceptLanguage(self) -> str: ...
|
||||
def setHttpCacheMaximumSize(self, maxSize: int) -> None: ...
|
||||
def httpCacheMaximumSize(self) -> int: ...
|
||||
def setPersistentCookiesPolicy(self, a0: 'QQuickWebEngineProfile.PersistentCookiesPolicy') -> None: ...
|
||||
def persistentCookiesPolicy(self) -> 'QQuickWebEngineProfile.PersistentCookiesPolicy': ...
|
||||
def setHttpCacheType(self, a0: 'QQuickWebEngineProfile.HttpCacheType') -> None: ...
|
||||
def httpCacheType(self) -> 'QQuickWebEngineProfile.HttpCacheType': ...
|
||||
def setHttpUserAgent(self, userAgent: str) -> None: ...
|
||||
def httpUserAgent(self) -> str: ...
|
||||
def setCachePath(self, path: str) -> None: ...
|
||||
def cachePath(self) -> str: ...
|
||||
def setPersistentStoragePath(self, path: str) -> None: ...
|
||||
def persistentStoragePath(self) -> str: ...
|
||||
def setOffTheRecord(self, offTheRecord: bool) -> None: ...
|
||||
def isOffTheRecord(self) -> bool: ...
|
||||
def setStorageName(self, name: str) -> None: ...
|
||||
def storageName(self) -> str: ...
|
||||
|
||||
|
||||
class QQuickWebEngineScript(QtCore.QObject):
|
||||
|
||||
class ScriptWorldId(int): ...
|
||||
MainWorld = ... # type: 'QQuickWebEngineScript.ScriptWorldId'
|
||||
ApplicationWorld = ... # type: 'QQuickWebEngineScript.ScriptWorldId'
|
||||
UserWorld = ... # type: 'QQuickWebEngineScript.ScriptWorldId'
|
||||
|
||||
class InjectionPoint(int): ...
|
||||
Deferred = ... # type: 'QQuickWebEngineScript.InjectionPoint'
|
||||
DocumentReady = ... # type: 'QQuickWebEngineScript.InjectionPoint'
|
||||
DocumentCreation = ... # type: 'QQuickWebEngineScript.InjectionPoint'
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def timerEvent(self, e: QtCore.QTimerEvent) -> None: ...
|
||||
def runOnSubframesChanged(self, on: bool) -> None: ...
|
||||
def worldIdChanged(self, scriptWorldId: 'QQuickWebEngineScript.ScriptWorldId') -> None: ...
|
||||
def injectionPointChanged(self, injectionPoint: 'QQuickWebEngineScript.InjectionPoint') -> None: ...
|
||||
def sourceCodeChanged(self, code: str) -> None: ...
|
||||
def sourceUrlChanged(self, url: QtCore.QUrl) -> None: ...
|
||||
def nameChanged(self, name: str) -> None: ...
|
||||
def setRunOnSubframes(self, on: bool) -> None: ...
|
||||
def setWorldId(self, scriptWorldId: 'QQuickWebEngineScript.ScriptWorldId') -> None: ...
|
||||
def setInjectionPoint(self, injectionPoint: 'QQuickWebEngineScript.InjectionPoint') -> None: ...
|
||||
def setSourceCode(self, code: str) -> None: ...
|
||||
def setSourceUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def setName(self, name: str) -> None: ...
|
||||
def runOnSubframes(self) -> bool: ...
|
||||
def worldId(self) -> 'QQuickWebEngineScript.ScriptWorldId': ...
|
||||
def injectionPoint(self) -> 'QQuickWebEngineScript.InjectionPoint': ...
|
||||
def sourceCode(self) -> str: ...
|
||||
def sourceUrl(self) -> QtCore.QUrl: ...
|
||||
def name(self) -> str: ...
|
||||
def toString(self) -> str: ...
|
||||
|
||||
|
||||
class QtWebEngine(sip.simplewrapper):
|
||||
|
||||
def initialize(self) -> None: ...
|
||||
|
||||
|
||||
PYQT_WEBENGINE_VERSION = ... # type: int
|
||||
PYQT_WEBENGINE_VERSION_STR = ... # type: str
|
||||
@@ -0,0 +1,289 @@
|
||||
# The PEP 484 type hints stub file for the QtWebEngineCore module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQtWebEngine.
|
||||
#
|
||||
# This file may be used under the terms of the GNU General Public License
|
||||
# version 3.0 as published by the Free Software Foundation and appearing in
|
||||
# the file LICENSE included in the packaging of this file. Please review the
|
||||
# following information to ensure the GNU General Public License version 3.0
|
||||
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
#
|
||||
# If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
# then you may purchase a commercial license. For more information contact
|
||||
# info@riverbankcomputing.com.
|
||||
#
|
||||
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
import typing
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtNetwork
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QtWebEngineCore(sip.simplewrapper): ...
|
||||
|
||||
|
||||
class QWebEngineClientCertificateStore(sip.simplewrapper):
|
||||
|
||||
def clear(self) -> None: ...
|
||||
def remove(self, certificate: QtNetwork.QSslCertificate) -> None: ...
|
||||
def certificates(self) -> typing.List[QtNetwork.QSslCertificate]: ...
|
||||
def add(self, certificate: QtNetwork.QSslCertificate, privateKey: QtNetwork.QSslKey) -> None: ...
|
||||
|
||||
|
||||
class QWebEngineCookieStore(QtCore.QObject):
|
||||
|
||||
class FilterRequest(sip.simplewrapper):
|
||||
|
||||
firstPartyUrl = ... # type: QtCore.QUrl
|
||||
origin = ... # type: QtCore.QUrl
|
||||
thirdParty = ... # type: bool
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebEngineCookieStore.FilterRequest') -> None: ...
|
||||
|
||||
def setCookieFilter(self, filterCallback: typing.Optional[typing.Callable[[FilterRequest], bool]] = ...) -> None: ...
|
||||
def cookieRemoved(self, cookie: QtNetwork.QNetworkCookie) -> None: ...
|
||||
def cookieAdded(self, cookie: QtNetwork.QNetworkCookie) -> None: ...
|
||||
def loadAllCookies(self) -> None: ...
|
||||
def deleteAllCookies(self) -> None: ...
|
||||
def deleteSessionCookies(self) -> None: ...
|
||||
def deleteCookie(self, cookie: QtNetwork.QNetworkCookie, origin: QtCore.QUrl = ...) -> None: ...
|
||||
def setCookie(self, cookie: QtNetwork.QNetworkCookie, origin: QtCore.QUrl = ...) -> None: ...
|
||||
|
||||
|
||||
class QWebEngineFindTextResult(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, other: 'QWebEngineFindTextResult') -> None: ...
|
||||
|
||||
def activeMatch(self) -> int: ...
|
||||
def numberOfMatches(self) -> int: ...
|
||||
|
||||
|
||||
class QWebEngineHttpRequest(sip.simplewrapper):
|
||||
|
||||
class Method(int): ...
|
||||
Get = ... # type: 'QWebEngineHttpRequest.Method'
|
||||
Post = ... # type: 'QWebEngineHttpRequest.Method'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, url: QtCore.QUrl = ..., method: 'QWebEngineHttpRequest.Method' = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, other: 'QWebEngineHttpRequest') -> None: ...
|
||||
|
||||
def unsetHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def setHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def header(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ...
|
||||
def headers(self) -> typing.List[QtCore.QByteArray]: ...
|
||||
def hasHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ...
|
||||
def setPostData(self, postData: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def postData(self) -> QtCore.QByteArray: ...
|
||||
def setUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def setMethod(self, method: 'QWebEngineHttpRequest.Method') -> None: ...
|
||||
def method(self) -> 'QWebEngineHttpRequest.Method': ...
|
||||
def swap(self, other: 'QWebEngineHttpRequest') -> None: ...
|
||||
@staticmethod
|
||||
def postRequest(url: QtCore.QUrl, postData: typing.Dict[str, str]) -> 'QWebEngineHttpRequest': ...
|
||||
|
||||
|
||||
class QWebEngineNotification(QtCore.QObject):
|
||||
|
||||
def closed(self) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def click(self) -> None: ...
|
||||
def show(self) -> None: ...
|
||||
def direction(self) -> QtCore.Qt.LayoutDirection: ...
|
||||
def language(self) -> str: ...
|
||||
def tag(self) -> str: ...
|
||||
def message(self) -> str: ...
|
||||
def title(self) -> str: ...
|
||||
def icon(self) -> QtGui.QImage: ...
|
||||
def origin(self) -> QtCore.QUrl: ...
|
||||
def matches(self, other: 'QWebEngineNotification') -> bool: ...
|
||||
|
||||
|
||||
class QWebEngineQuotaRequest(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebEngineQuotaRequest') -> None: ...
|
||||
|
||||
def requestedSize(self) -> int: ...
|
||||
def origin(self) -> QtCore.QUrl: ...
|
||||
def reject(self) -> None: ...
|
||||
def accept(self) -> None: ...
|
||||
|
||||
|
||||
class QWebEngineRegisterProtocolHandlerRequest(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebEngineRegisterProtocolHandlerRequest') -> None: ...
|
||||
|
||||
def scheme(self) -> str: ...
|
||||
def origin(self) -> QtCore.QUrl: ...
|
||||
def reject(self) -> None: ...
|
||||
def accept(self) -> None: ...
|
||||
|
||||
|
||||
class QWebEngineUrlRequestInfo(sip.simplewrapper):
|
||||
|
||||
class NavigationType(int): ...
|
||||
NavigationTypeLink = ... # type: 'QWebEngineUrlRequestInfo.NavigationType'
|
||||
NavigationTypeTyped = ... # type: 'QWebEngineUrlRequestInfo.NavigationType'
|
||||
NavigationTypeFormSubmitted = ... # type: 'QWebEngineUrlRequestInfo.NavigationType'
|
||||
NavigationTypeBackForward = ... # type: 'QWebEngineUrlRequestInfo.NavigationType'
|
||||
NavigationTypeReload = ... # type: 'QWebEngineUrlRequestInfo.NavigationType'
|
||||
NavigationTypeRedirect = ... # type: 'QWebEngineUrlRequestInfo.NavigationType'
|
||||
NavigationTypeOther = ... # type: 'QWebEngineUrlRequestInfo.NavigationType'
|
||||
|
||||
class ResourceType(int): ...
|
||||
ResourceTypeMainFrame = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeSubFrame = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeStylesheet = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeScript = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeImage = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeFontResource = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeSubResource = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeObject = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeMedia = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeWorker = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeSharedWorker = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypePrefetch = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeFavicon = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeXhr = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypePing = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeServiceWorker = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeUnknown = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeCspReport = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypePluginResource = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeNavigationPreloadMainFrame = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
ResourceTypeNavigationPreloadSubFrame = ... # type: 'QWebEngineUrlRequestInfo.ResourceType'
|
||||
|
||||
def initiator(self) -> QtCore.QUrl: ...
|
||||
def setHttpHeader(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def redirect(self, url: QtCore.QUrl) -> None: ...
|
||||
def block(self, shouldBlock: bool) -> None: ...
|
||||
def requestMethod(self) -> QtCore.QByteArray: ...
|
||||
def firstPartyUrl(self) -> QtCore.QUrl: ...
|
||||
def requestUrl(self) -> QtCore.QUrl: ...
|
||||
def navigationType(self) -> 'QWebEngineUrlRequestInfo.NavigationType': ...
|
||||
def resourceType(self) -> 'QWebEngineUrlRequestInfo.ResourceType': ...
|
||||
|
||||
|
||||
class QWebEngineUrlRequestInterceptor(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def interceptRequest(self, info: QWebEngineUrlRequestInfo) -> None: ...
|
||||
|
||||
|
||||
class QWebEngineUrlRequestJob(QtCore.QObject):
|
||||
|
||||
class Error(int): ...
|
||||
NoError = ... # type: 'QWebEngineUrlRequestJob.Error'
|
||||
UrlNotFound = ... # type: 'QWebEngineUrlRequestJob.Error'
|
||||
UrlInvalid = ... # type: 'QWebEngineUrlRequestJob.Error'
|
||||
RequestAborted = ... # type: 'QWebEngineUrlRequestJob.Error'
|
||||
RequestDenied = ... # type: 'QWebEngineUrlRequestJob.Error'
|
||||
RequestFailed = ... # type: 'QWebEngineUrlRequestJob.Error'
|
||||
|
||||
def requestHeaders(self) -> typing.Dict[QtCore.QByteArray, QtCore.QByteArray]: ...
|
||||
def initiator(self) -> QtCore.QUrl: ...
|
||||
def redirect(self, url: QtCore.QUrl) -> None: ...
|
||||
def fail(self, error: 'QWebEngineUrlRequestJob.Error') -> None: ...
|
||||
def reply(self, contentType: typing.Union[QtCore.QByteArray, bytes, bytearray], device: QtCore.QIODevice) -> None: ...
|
||||
def requestMethod(self) -> QtCore.QByteArray: ...
|
||||
def requestUrl(self) -> QtCore.QUrl: ...
|
||||
|
||||
|
||||
class QWebEngineUrlScheme(sip.simplewrapper):
|
||||
|
||||
class Flag(int): ...
|
||||
SecureScheme = ... # type: 'QWebEngineUrlScheme.Flag'
|
||||
LocalScheme = ... # type: 'QWebEngineUrlScheme.Flag'
|
||||
LocalAccessAllowed = ... # type: 'QWebEngineUrlScheme.Flag'
|
||||
NoAccessAllowed = ... # type: 'QWebEngineUrlScheme.Flag'
|
||||
ServiceWorkersAllowed = ... # type: 'QWebEngineUrlScheme.Flag'
|
||||
ViewSourceAllowed = ... # type: 'QWebEngineUrlScheme.Flag'
|
||||
ContentSecurityPolicyIgnored = ... # type: 'QWebEngineUrlScheme.Flag'
|
||||
CorsEnabled = ... # type: 'QWebEngineUrlScheme.Flag'
|
||||
|
||||
class SpecialPort(int): ...
|
||||
PortUnspecified = ... # type: 'QWebEngineUrlScheme.SpecialPort'
|
||||
|
||||
class Syntax(int):
|
||||
HostPortAndUserInformation = ... # type: 'QWebEngineUrlScheme.Syntax'
|
||||
HostAndPort = ... # type: 'QWebEngineUrlScheme.Syntax'
|
||||
Host = ... # type: 'QWebEngineUrlScheme.Syntax'
|
||||
Path = ... # type: 'QWebEngineUrlScheme.Syntax'
|
||||
|
||||
class Flags(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, f: typing.Union['QWebEngineUrlScheme.Flags', 'QWebEngineUrlScheme.Flag']) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebEngineUrlScheme.Flags') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> int: ...
|
||||
def __invert__(self) -> 'QWebEngineUrlScheme.Flags': ...
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, that: 'QWebEngineUrlScheme') -> None: ...
|
||||
|
||||
@staticmethod
|
||||
def schemeByName(name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QWebEngineUrlScheme': ...
|
||||
@staticmethod
|
||||
def registerScheme(scheme: 'QWebEngineUrlScheme') -> None: ...
|
||||
def setFlags(self, newValue: typing.Union['QWebEngineUrlScheme.Flags', 'QWebEngineUrlScheme.Flag']) -> None: ...
|
||||
def flags(self) -> 'QWebEngineUrlScheme.Flags': ...
|
||||
def setDefaultPort(self, newValue: int) -> None: ...
|
||||
def defaultPort(self) -> int: ...
|
||||
def setSyntax(self, newValue: 'QWebEngineUrlScheme.Syntax') -> None: ...
|
||||
def syntax(self) -> 'QWebEngineUrlScheme.Syntax': ...
|
||||
def setName(self, newValue: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def name(self) -> QtCore.QByteArray: ...
|
||||
|
||||
|
||||
class QWebEngineUrlSchemeHandler(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def requestStarted(self, a0: QWebEngineUrlRequestJob) -> None: ...
|
||||
@@ -0,0 +1,763 @@
|
||||
# The PEP 484 type hints stub file for the QtWebEngineWidgets module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of PyQtWebEngine.
|
||||
#
|
||||
# This file may be used under the terms of the GNU General Public License
|
||||
# version 3.0 as published by the Free Software Foundation and appearing in
|
||||
# the file LICENSE included in the packaging of this file. Please review the
|
||||
# following information to ensure the GNU General Public License version 3.0
|
||||
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
#
|
||||
# If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
# then you may purchase a commercial license. For more information contact
|
||||
# info@riverbankcomputing.com.
|
||||
#
|
||||
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
import typing
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtWebChannel
|
||||
from PyQt5 import QtWebEngineCore
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5 import QtPrintSupport
|
||||
from PyQt5 import QtNetwork
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QWebEngineCertificateError(sip.simplewrapper):
|
||||
|
||||
class Error(int): ...
|
||||
SslPinnedKeyNotInCertificateChain = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateCommonNameInvalid = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateDateInvalid = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateAuthorityInvalid = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateContainsErrors = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateNoRevocationMechanism = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateUnableToCheckRevocation = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateRevoked = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateInvalid = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateWeakSignatureAlgorithm = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateNonUniqueName = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateWeakKey = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateNameConstraintViolation = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateValidityTooLong = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateTransparencyRequired = ... # type: 'QWebEngineCertificateError.Error'
|
||||
CertificateKnownInterceptionBlocked = ... # type: 'QWebEngineCertificateError.Error'
|
||||
|
||||
def __init__(self, other: 'QWebEngineCertificateError') -> None: ...
|
||||
|
||||
def certificateChain(self) -> typing.List[QtNetwork.QSslCertificate]: ...
|
||||
def answered(self) -> bool: ...
|
||||
def ignoreCertificateError(self) -> None: ...
|
||||
def rejectCertificate(self) -> None: ...
|
||||
def deferred(self) -> bool: ...
|
||||
def defer(self) -> None: ...
|
||||
def errorDescription(self) -> str: ...
|
||||
def isOverridable(self) -> bool: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def error(self) -> 'QWebEngineCertificateError.Error': ...
|
||||
|
||||
|
||||
class QWebEngineClientCertificateSelection(sip.simplewrapper):
|
||||
|
||||
def __init__(self, a0: 'QWebEngineClientCertificateSelection') -> None: ...
|
||||
|
||||
def certificates(self) -> typing.List[QtNetwork.QSslCertificate]: ...
|
||||
def selectNone(self) -> None: ...
|
||||
def select(self, certificate: QtNetwork.QSslCertificate) -> None: ...
|
||||
def host(self) -> QtCore.QUrl: ...
|
||||
|
||||
|
||||
class QWebEngineContextMenuData(sip.simplewrapper):
|
||||
|
||||
class EditFlag(int): ...
|
||||
CanUndo = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
CanRedo = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
CanCut = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
CanCopy = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
CanPaste = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
CanDelete = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
CanSelectAll = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
CanTranslate = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
CanEditRichly = ... # type: 'QWebEngineContextMenuData.EditFlag'
|
||||
|
||||
class MediaFlag(int): ...
|
||||
MediaInError = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaPaused = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaMuted = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaLoop = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaCanSave = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaHasAudio = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaCanToggleControls = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaControls = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaCanPrint = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
MediaCanRotate = ... # type: 'QWebEngineContextMenuData.MediaFlag'
|
||||
|
||||
class MediaType(int): ...
|
||||
MediaTypeNone = ... # type: 'QWebEngineContextMenuData.MediaType'
|
||||
MediaTypeImage = ... # type: 'QWebEngineContextMenuData.MediaType'
|
||||
MediaTypeVideo = ... # type: 'QWebEngineContextMenuData.MediaType'
|
||||
MediaTypeAudio = ... # type: 'QWebEngineContextMenuData.MediaType'
|
||||
MediaTypeCanvas = ... # type: 'QWebEngineContextMenuData.MediaType'
|
||||
MediaTypeFile = ... # type: 'QWebEngineContextMenuData.MediaType'
|
||||
MediaTypePlugin = ... # type: 'QWebEngineContextMenuData.MediaType'
|
||||
|
||||
class MediaFlags(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, f: typing.Union['QWebEngineContextMenuData.MediaFlags', 'QWebEngineContextMenuData.MediaFlag']) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebEngineContextMenuData.MediaFlags') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> int: ...
|
||||
def __invert__(self) -> 'QWebEngineContextMenuData.MediaFlags': ...
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
class EditFlags(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, f: typing.Union['QWebEngineContextMenuData.EditFlags', 'QWebEngineContextMenuData.EditFlag']) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebEngineContextMenuData.EditFlags') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> int: ...
|
||||
def __invert__(self) -> 'QWebEngineContextMenuData.EditFlags': ...
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, other: 'QWebEngineContextMenuData') -> None: ...
|
||||
|
||||
def editFlags(self) -> 'QWebEngineContextMenuData.EditFlags': ...
|
||||
def mediaFlags(self) -> 'QWebEngineContextMenuData.MediaFlags': ...
|
||||
def spellCheckerSuggestions(self) -> typing.List[str]: ...
|
||||
def misspelledWord(self) -> str: ...
|
||||
def isContentEditable(self) -> bool: ...
|
||||
def mediaType(self) -> 'QWebEngineContextMenuData.MediaType': ...
|
||||
def mediaUrl(self) -> QtCore.QUrl: ...
|
||||
def linkUrl(self) -> QtCore.QUrl: ...
|
||||
def linkText(self) -> str: ...
|
||||
def selectedText(self) -> str: ...
|
||||
def position(self) -> QtCore.QPoint: ...
|
||||
def isValid(self) -> bool: ...
|
||||
|
||||
|
||||
class QWebEngineDownloadItem(QtCore.QObject):
|
||||
|
||||
class DownloadInterruptReason(int): ...
|
||||
NoReason = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileAccessDenied = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileNoSpace = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileNameTooLong = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileTooLarge = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileVirusInfected = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileTransientError = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileBlocked = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileSecurityCheckFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileTooShort = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
FileHashMismatch = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
NetworkFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
NetworkTimeout = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
NetworkDisconnected = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
NetworkServerDown = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
NetworkInvalidRequest = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
ServerFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
ServerBadContent = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
ServerUnauthorized = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
ServerCertProblem = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
ServerForbidden = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
ServerUnreachable = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
UserCanceled = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
|
||||
|
||||
class DownloadType(int): ...
|
||||
Attachment = ... # type: 'QWebEngineDownloadItem.DownloadType'
|
||||
DownloadAttribute = ... # type: 'QWebEngineDownloadItem.DownloadType'
|
||||
UserRequested = ... # type: 'QWebEngineDownloadItem.DownloadType'
|
||||
SavePage = ... # type: 'QWebEngineDownloadItem.DownloadType'
|
||||
|
||||
class SavePageFormat(int): ...
|
||||
UnknownSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat'
|
||||
SingleHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat'
|
||||
CompleteHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat'
|
||||
MimeHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat'
|
||||
|
||||
class DownloadState(int): ...
|
||||
DownloadRequested = ... # type: 'QWebEngineDownloadItem.DownloadState'
|
||||
DownloadInProgress = ... # type: 'QWebEngineDownloadItem.DownloadState'
|
||||
DownloadCompleted = ... # type: 'QWebEngineDownloadItem.DownloadState'
|
||||
DownloadCancelled = ... # type: 'QWebEngineDownloadItem.DownloadState'
|
||||
DownloadInterrupted = ... # type: 'QWebEngineDownloadItem.DownloadState'
|
||||
|
||||
def setDownloadFileName(self, fileName: str) -> None: ...
|
||||
def downloadFileName(self) -> str: ...
|
||||
def setDownloadDirectory(self, directory: str) -> None: ...
|
||||
def downloadDirectory(self) -> str: ...
|
||||
def suggestedFileName(self) -> str: ...
|
||||
def page(self) -> 'QWebEnginePage': ...
|
||||
def isSavePageDownload(self) -> bool: ...
|
||||
def isPausedChanged(self, isPaused: bool) -> None: ...
|
||||
def resume(self) -> None: ...
|
||||
def pause(self) -> None: ...
|
||||
def isPaused(self) -> bool: ...
|
||||
def interruptReasonString(self) -> str: ...
|
||||
def interruptReason(self) -> 'QWebEngineDownloadItem.DownloadInterruptReason': ...
|
||||
def type(self) -> 'QWebEngineDownloadItem.DownloadType': ...
|
||||
def setSavePageFormat(self, format: 'QWebEngineDownloadItem.SavePageFormat') -> None: ...
|
||||
def savePageFormat(self) -> 'QWebEngineDownloadItem.SavePageFormat': ...
|
||||
def mimeType(self) -> str: ...
|
||||
def downloadProgress(self, bytesReceived: int, bytesTotal: int) -> None: ...
|
||||
def stateChanged(self, state: 'QWebEngineDownloadItem.DownloadState') -> None: ...
|
||||
def finished(self) -> None: ...
|
||||
def cancel(self) -> None: ...
|
||||
def accept(self) -> None: ...
|
||||
def isFinished(self) -> bool: ...
|
||||
def setPath(self, path: str) -> None: ...
|
||||
def path(self) -> str: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def receivedBytes(self) -> int: ...
|
||||
def totalBytes(self) -> int: ...
|
||||
def state(self) -> 'QWebEngineDownloadItem.DownloadState': ...
|
||||
def id(self) -> int: ...
|
||||
|
||||
|
||||
class QWebEngineFullScreenRequest(sip.simplewrapper):
|
||||
|
||||
def origin(self) -> QtCore.QUrl: ...
|
||||
def toggleOn(self) -> bool: ...
|
||||
def accept(self) -> None: ...
|
||||
def reject(self) -> None: ...
|
||||
|
||||
|
||||
class QWebEngineHistoryItem(sip.simplewrapper):
|
||||
|
||||
def __init__(self, other: 'QWebEngineHistoryItem') -> None: ...
|
||||
|
||||
def swap(self, other: 'QWebEngineHistoryItem') -> None: ...
|
||||
def isValid(self) -> bool: ...
|
||||
def iconUrl(self) -> QtCore.QUrl: ...
|
||||
def lastVisited(self) -> QtCore.QDateTime: ...
|
||||
def title(self) -> str: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def originalUrl(self) -> QtCore.QUrl: ...
|
||||
|
||||
|
||||
class QWebEngineHistory(sip.simplewrapper):
|
||||
|
||||
def __len__(self) -> int: ...
|
||||
def count(self) -> int: ...
|
||||
def currentItemIndex(self) -> int: ...
|
||||
def itemAt(self, i: int) -> QWebEngineHistoryItem: ...
|
||||
def forwardItem(self) -> QWebEngineHistoryItem: ...
|
||||
def currentItem(self) -> QWebEngineHistoryItem: ...
|
||||
def backItem(self) -> QWebEngineHistoryItem: ...
|
||||
def goToItem(self, item: QWebEngineHistoryItem) -> None: ...
|
||||
def forward(self) -> None: ...
|
||||
def back(self) -> None: ...
|
||||
def canGoForward(self) -> bool: ...
|
||||
def canGoBack(self) -> bool: ...
|
||||
def forwardItems(self, maxItems: int) -> typing.List[QWebEngineHistoryItem]: ...
|
||||
def backItems(self, maxItems: int) -> typing.List[QWebEngineHistoryItem]: ...
|
||||
def items(self) -> typing.List[QWebEngineHistoryItem]: ...
|
||||
def clear(self) -> None: ...
|
||||
|
||||
|
||||
class QWebEnginePage(QtCore.QObject):
|
||||
|
||||
class LifecycleState(int):
|
||||
Active = ... # type: 'QWebEnginePage.LifecycleState'
|
||||
Frozen = ... # type: 'QWebEnginePage.LifecycleState'
|
||||
Discarded = ... # type: 'QWebEnginePage.LifecycleState'
|
||||
|
||||
class RenderProcessTerminationStatus(int): ...
|
||||
NormalTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus'
|
||||
AbnormalTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus'
|
||||
CrashedTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus'
|
||||
KilledTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus'
|
||||
|
||||
class NavigationType(int): ...
|
||||
NavigationTypeLinkClicked = ... # type: 'QWebEnginePage.NavigationType'
|
||||
NavigationTypeTyped = ... # type: 'QWebEnginePage.NavigationType'
|
||||
NavigationTypeFormSubmitted = ... # type: 'QWebEnginePage.NavigationType'
|
||||
NavigationTypeBackForward = ... # type: 'QWebEnginePage.NavigationType'
|
||||
NavigationTypeReload = ... # type: 'QWebEnginePage.NavigationType'
|
||||
NavigationTypeRedirect = ... # type: 'QWebEnginePage.NavigationType'
|
||||
NavigationTypeOther = ... # type: 'QWebEnginePage.NavigationType'
|
||||
|
||||
class JavaScriptConsoleMessageLevel(int): ...
|
||||
InfoMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel'
|
||||
WarningMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel'
|
||||
ErrorMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel'
|
||||
|
||||
class FileSelectionMode(int): ...
|
||||
FileSelectOpen = ... # type: 'QWebEnginePage.FileSelectionMode'
|
||||
FileSelectOpenMultiple = ... # type: 'QWebEnginePage.FileSelectionMode'
|
||||
|
||||
class Feature(int): ...
|
||||
Notifications = ... # type: 'QWebEnginePage.Feature'
|
||||
Geolocation = ... # type: 'QWebEnginePage.Feature'
|
||||
MediaAudioCapture = ... # type: 'QWebEnginePage.Feature'
|
||||
MediaVideoCapture = ... # type: 'QWebEnginePage.Feature'
|
||||
MediaAudioVideoCapture = ... # type: 'QWebEnginePage.Feature'
|
||||
MouseLock = ... # type: 'QWebEnginePage.Feature'
|
||||
DesktopVideoCapture = ... # type: 'QWebEnginePage.Feature'
|
||||
DesktopAudioVideoCapture = ... # type: 'QWebEnginePage.Feature'
|
||||
|
||||
class PermissionPolicy(int): ...
|
||||
PermissionUnknown = ... # type: 'QWebEnginePage.PermissionPolicy'
|
||||
PermissionGrantedByUser = ... # type: 'QWebEnginePage.PermissionPolicy'
|
||||
PermissionDeniedByUser = ... # type: 'QWebEnginePage.PermissionPolicy'
|
||||
|
||||
class WebWindowType(int): ...
|
||||
WebBrowserWindow = ... # type: 'QWebEnginePage.WebWindowType'
|
||||
WebBrowserTab = ... # type: 'QWebEnginePage.WebWindowType'
|
||||
WebDialog = ... # type: 'QWebEnginePage.WebWindowType'
|
||||
WebBrowserBackgroundTab = ... # type: 'QWebEnginePage.WebWindowType'
|
||||
|
||||
class FindFlag(int): ...
|
||||
FindBackward = ... # type: 'QWebEnginePage.FindFlag'
|
||||
FindCaseSensitively = ... # type: 'QWebEnginePage.FindFlag'
|
||||
|
||||
class WebAction(int): ...
|
||||
NoWebAction = ... # type: 'QWebEnginePage.WebAction'
|
||||
Back = ... # type: 'QWebEnginePage.WebAction'
|
||||
Forward = ... # type: 'QWebEnginePage.WebAction'
|
||||
Stop = ... # type: 'QWebEnginePage.WebAction'
|
||||
Reload = ... # type: 'QWebEnginePage.WebAction'
|
||||
Cut = ... # type: 'QWebEnginePage.WebAction'
|
||||
Copy = ... # type: 'QWebEnginePage.WebAction'
|
||||
Paste = ... # type: 'QWebEnginePage.WebAction'
|
||||
Undo = ... # type: 'QWebEnginePage.WebAction'
|
||||
Redo = ... # type: 'QWebEnginePage.WebAction'
|
||||
SelectAll = ... # type: 'QWebEnginePage.WebAction'
|
||||
ReloadAndBypassCache = ... # type: 'QWebEnginePage.WebAction'
|
||||
PasteAndMatchStyle = ... # type: 'QWebEnginePage.WebAction'
|
||||
OpenLinkInThisWindow = ... # type: 'QWebEnginePage.WebAction'
|
||||
OpenLinkInNewWindow = ... # type: 'QWebEnginePage.WebAction'
|
||||
OpenLinkInNewTab = ... # type: 'QWebEnginePage.WebAction'
|
||||
CopyLinkToClipboard = ... # type: 'QWebEnginePage.WebAction'
|
||||
DownloadLinkToDisk = ... # type: 'QWebEnginePage.WebAction'
|
||||
CopyImageToClipboard = ... # type: 'QWebEnginePage.WebAction'
|
||||
CopyImageUrlToClipboard = ... # type: 'QWebEnginePage.WebAction'
|
||||
DownloadImageToDisk = ... # type: 'QWebEnginePage.WebAction'
|
||||
CopyMediaUrlToClipboard = ... # type: 'QWebEnginePage.WebAction'
|
||||
ToggleMediaControls = ... # type: 'QWebEnginePage.WebAction'
|
||||
ToggleMediaLoop = ... # type: 'QWebEnginePage.WebAction'
|
||||
ToggleMediaPlayPause = ... # type: 'QWebEnginePage.WebAction'
|
||||
ToggleMediaMute = ... # type: 'QWebEnginePage.WebAction'
|
||||
DownloadMediaToDisk = ... # type: 'QWebEnginePage.WebAction'
|
||||
InspectElement = ... # type: 'QWebEnginePage.WebAction'
|
||||
ExitFullScreen = ... # type: 'QWebEnginePage.WebAction'
|
||||
RequestClose = ... # type: 'QWebEnginePage.WebAction'
|
||||
Unselect = ... # type: 'QWebEnginePage.WebAction'
|
||||
SavePage = ... # type: 'QWebEnginePage.WebAction'
|
||||
OpenLinkInNewBackgroundTab = ... # type: 'QWebEnginePage.WebAction'
|
||||
ViewSource = ... # type: 'QWebEnginePage.WebAction'
|
||||
ToggleBold = ... # type: 'QWebEnginePage.WebAction'
|
||||
ToggleItalic = ... # type: 'QWebEnginePage.WebAction'
|
||||
ToggleUnderline = ... # type: 'QWebEnginePage.WebAction'
|
||||
ToggleStrikethrough = ... # type: 'QWebEnginePage.WebAction'
|
||||
AlignLeft = ... # type: 'QWebEnginePage.WebAction'
|
||||
AlignCenter = ... # type: 'QWebEnginePage.WebAction'
|
||||
AlignRight = ... # type: 'QWebEnginePage.WebAction'
|
||||
AlignJustified = ... # type: 'QWebEnginePage.WebAction'
|
||||
Indent = ... # type: 'QWebEnginePage.WebAction'
|
||||
Outdent = ... # type: 'QWebEnginePage.WebAction'
|
||||
InsertOrderedList = ... # type: 'QWebEnginePage.WebAction'
|
||||
InsertUnorderedList = ... # type: 'QWebEnginePage.WebAction'
|
||||
|
||||
class FindFlags(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, f: typing.Union['QWebEnginePage.FindFlags', 'QWebEnginePage.FindFlag']) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebEnginePage.FindFlags') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> int: ...
|
||||
def __invert__(self) -> 'QWebEnginePage.FindFlags': ...
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, profile: 'QWebEngineProfile', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def renderProcessPidChanged(self, pid: int) -> None: ...
|
||||
def renderProcessPid(self) -> int: ...
|
||||
def findTextFinished(self, result: QtWebEngineCore.QWebEngineFindTextResult) -> None: ...
|
||||
def recommendedStateChanged(self, state: 'QWebEnginePage.LifecycleState') -> None: ...
|
||||
def lifecycleStateChanged(self, state: 'QWebEnginePage.LifecycleState') -> None: ...
|
||||
def visibleChanged(self, visible: bool) -> None: ...
|
||||
def setVisible(self, visible: bool) -> None: ...
|
||||
def isVisible(self) -> bool: ...
|
||||
def recommendedState(self) -> 'QWebEnginePage.LifecycleState': ...
|
||||
def setLifecycleState(self, state: 'QWebEnginePage.LifecycleState') -> None: ...
|
||||
def lifecycleState(self) -> 'QWebEnginePage.LifecycleState': ...
|
||||
def setUrlRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ...
|
||||
def printRequested(self) -> None: ...
|
||||
def selectClientCertificate(self, clientCertSelection: QWebEngineClientCertificateSelection) -> None: ...
|
||||
def registerProtocolHandlerRequested(self, request: QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest) -> None: ...
|
||||
def quotaRequested(self, quotaRequest: QtWebEngineCore.QWebEngineQuotaRequest) -> None: ...
|
||||
def devToolsPage(self) -> 'QWebEnginePage': ...
|
||||
def setDevToolsPage(self, page: 'QWebEnginePage') -> None: ...
|
||||
def inspectedPage(self) -> 'QWebEnginePage': ...
|
||||
def setInspectedPage(self, page: 'QWebEnginePage') -> None: ...
|
||||
def download(self, url: QtCore.QUrl, filename: str = ...) -> None: ...
|
||||
def print(self, printer: QtPrintSupport.QPrinter, resultCallback: typing.Callable[[bool], None]) -> None: ...
|
||||
def save(self, filePath: str, format: QWebEngineDownloadItem.SavePageFormat = ...) -> None: ...
|
||||
def replaceMisspelledWord(self, replacement: str) -> None: ...
|
||||
def pdfPrintingFinished(self, filePath: str, success: bool) -> None: ...
|
||||
def recentlyAudibleChanged(self, recentlyAudible: bool) -> None: ...
|
||||
def audioMutedChanged(self, muted: bool) -> None: ...
|
||||
def contentsSizeChanged(self, size: QtCore.QSizeF) -> None: ...
|
||||
def scrollPositionChanged(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ...
|
||||
def iconChanged(self, icon: QtGui.QIcon) -> None: ...
|
||||
def contextMenuData(self) -> QWebEngineContextMenuData: ...
|
||||
@typing.overload
|
||||
def printToPdf(self, filePath: str, pageLayout: QtGui.QPageLayout = ...) -> None: ...
|
||||
@typing.overload
|
||||
def printToPdf(self, resultCallback: typing.Callable[[typing.Union[QtCore.QByteArray, bytes, bytearray]], None], pageLayout: QtGui.QPageLayout = ...) -> None: ...
|
||||
def recentlyAudible(self) -> bool: ...
|
||||
def setAudioMuted(self, muted: bool) -> None: ...
|
||||
def isAudioMuted(self) -> bool: ...
|
||||
def contentsSize(self) -> QtCore.QSizeF: ...
|
||||
def scrollPosition(self) -> QtCore.QPointF: ...
|
||||
def icon(self) -> QtGui.QIcon: ...
|
||||
def renderProcessTerminated(self, terminationStatus: 'QWebEnginePage.RenderProcessTerminationStatus', exitCode: int) -> None: ...
|
||||
def fullScreenRequested(self, fullScreenRequest: QWebEngineFullScreenRequest) -> None: ...
|
||||
def setBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
|
||||
def backgroundColor(self) -> QtGui.QColor: ...
|
||||
def acceptNavigationRequest(self, url: QtCore.QUrl, type: 'QWebEnginePage.NavigationType', isMainFrame: bool) -> bool: ...
|
||||
@typing.overload
|
||||
def setWebChannel(self, a0: QtWebChannel.QWebChannel) -> None: ...
|
||||
@typing.overload
|
||||
def setWebChannel(self, a0: QtWebChannel.QWebChannel, worldId: int) -> None: ...
|
||||
def webChannel(self) -> QtWebChannel.QWebChannel: ...
|
||||
def scripts(self) -> 'QWebEngineScriptCollection': ...
|
||||
def profile(self) -> 'QWebEngineProfile': ...
|
||||
def certificateError(self, certificateError: QWebEngineCertificateError) -> bool: ...
|
||||
def javaScriptConsoleMessage(self, level: 'QWebEnginePage.JavaScriptConsoleMessageLevel', message: str, lineNumber: int, sourceID: str) -> None: ...
|
||||
def javaScriptPrompt(self, securityOrigin: QtCore.QUrl, msg: str, defaultValue: str) -> typing.Tuple[bool, str]: ...
|
||||
def javaScriptConfirm(self, securityOrigin: QtCore.QUrl, msg: str) -> bool: ...
|
||||
def javaScriptAlert(self, securityOrigin: QtCore.QUrl, msg: str) -> None: ...
|
||||
def chooseFiles(self, mode: 'QWebEnginePage.FileSelectionMode', oldFiles: typing.Iterable[str], acceptedMimeTypes: typing.Iterable[str]) -> typing.List[str]: ...
|
||||
def createWindow(self, type: 'QWebEnginePage.WebWindowType') -> 'QWebEnginePage': ...
|
||||
def iconUrlChanged(self, url: QtCore.QUrl) -> None: ...
|
||||
def urlChanged(self, url: QtCore.QUrl) -> None: ...
|
||||
def titleChanged(self, title: str) -> None: ...
|
||||
def proxyAuthenticationRequired(self, requestUrl: QtCore.QUrl, authenticator: QtNetwork.QAuthenticator, proxyHost: str) -> None: ...
|
||||
def authenticationRequired(self, requestUrl: QtCore.QUrl, authenticator: QtNetwork.QAuthenticator) -> None: ...
|
||||
def featurePermissionRequestCanceled(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature') -> None: ...
|
||||
def featurePermissionRequested(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature') -> None: ...
|
||||
def windowCloseRequested(self) -> None: ...
|
||||
def geometryChangeRequested(self, geom: QtCore.QRect) -> None: ...
|
||||
def selectionChanged(self) -> None: ...
|
||||
def linkHovered(self, url: str) -> None: ...
|
||||
def loadFinished(self, ok: bool) -> None: ...
|
||||
def loadProgress(self, progress: int) -> None: ...
|
||||
def loadStarted(self) -> None: ...
|
||||
def settings(self) -> 'QWebEngineSettings': ...
|
||||
@typing.overload
|
||||
def runJavaScript(self, scriptSource: str, worldId: int) -> None: ...
|
||||
@typing.overload
|
||||
def runJavaScript(self, scriptSource: str, worldId: int, resultCallback: typing.Callable[..., None]) -> None: ...
|
||||
@typing.overload
|
||||
def runJavaScript(self, scriptSource: str) -> None: ...
|
||||
@typing.overload
|
||||
def runJavaScript(self, scriptSource: str, resultCallback: typing.Callable[[typing.Any], None]) -> None: ...
|
||||
def setZoomFactor(self, factor: float) -> None: ...
|
||||
def zoomFactor(self) -> float: ...
|
||||
def iconUrl(self) -> QtCore.QUrl: ...
|
||||
def requestedUrl(self) -> QtCore.QUrl: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def setUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def title(self) -> str: ...
|
||||
def toPlainText(self, resultCallback: typing.Callable[[str], None]) -> None: ...
|
||||
def toHtml(self, resultCallback: typing.Callable[[str], None]) -> None: ...
|
||||
def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, url: QtCore.QUrl) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, request: QtWebEngineCore.QWebEngineHttpRequest) -> None: ...
|
||||
def setFeaturePermission(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature', policy: 'QWebEnginePage.PermissionPolicy') -> None: ...
|
||||
def createStandardContextMenu(self) -> QtWidgets.QMenu: ...
|
||||
def findText(self, subString: str, options: typing.Union['QWebEnginePage.FindFlags', 'QWebEnginePage.FindFlag'] = ..., resultCallback: typing.Optional[typing.Callable[[bool], None]] = ...) -> None: ...
|
||||
def event(self, a0: QtCore.QEvent) -> bool: ...
|
||||
def triggerAction(self, action: 'QWebEnginePage.WebAction', checked: bool = ...) -> None: ...
|
||||
def action(self, action: 'QWebEnginePage.WebAction') -> QtWidgets.QAction: ...
|
||||
def selectedText(self) -> str: ...
|
||||
def hasSelection(self) -> bool: ...
|
||||
def view(self) -> QtWidgets.QWidget: ...
|
||||
def setView(self, view: QtWidgets.QWidget) -> None: ...
|
||||
def history(self) -> QWebEngineHistory: ...
|
||||
|
||||
|
||||
class QWebEngineProfile(QtCore.QObject):
|
||||
|
||||
class PersistentCookiesPolicy(int): ...
|
||||
NoPersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy'
|
||||
AllowPersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy'
|
||||
ForcePersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy'
|
||||
|
||||
class HttpCacheType(int): ...
|
||||
MemoryHttpCache = ... # type: 'QWebEngineProfile.HttpCacheType'
|
||||
DiskHttpCache = ... # type: 'QWebEngineProfile.HttpCacheType'
|
||||
NoCache = ... # type: 'QWebEngineProfile.HttpCacheType'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def clientCertificateStore(self) -> QtWebEngineCore.QWebEngineClientCertificateStore: ...
|
||||
def setNotificationPresenter(self, a0: typing.Callable[[QtWebEngineCore.QWebEngineNotification], None]) -> None: ...
|
||||
def setDownloadPath(self, path: str) -> None: ...
|
||||
def downloadPath(self) -> str: ...
|
||||
def isUsedForGlobalCertificateVerification(self) -> bool: ...
|
||||
def setUseForGlobalCertificateVerification(self, enabled: bool = ...) -> None: ...
|
||||
def isSpellCheckEnabled(self) -> bool: ...
|
||||
def setSpellCheckEnabled(self, enabled: bool) -> None: ...
|
||||
def spellCheckLanguages(self) -> typing.List[str]: ...
|
||||
def setSpellCheckLanguages(self, languages: typing.Iterable[str]) -> None: ...
|
||||
def clearHttpCache(self) -> None: ...
|
||||
def removeAllUrlSchemeHandlers(self) -> None: ...
|
||||
def removeUrlSchemeHandler(self, a0: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ...
|
||||
def removeUrlScheme(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
def installUrlSchemeHandler(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray], a1: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ...
|
||||
def urlSchemeHandler(self, a0: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtWebEngineCore.QWebEngineUrlSchemeHandler: ...
|
||||
def setRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ...
|
||||
def setUrlRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ...
|
||||
def cookieStore(self) -> QtWebEngineCore.QWebEngineCookieStore: ...
|
||||
def httpAcceptLanguage(self) -> str: ...
|
||||
def setHttpAcceptLanguage(self, httpAcceptLanguage: str) -> None: ...
|
||||
def downloadRequested(self, download: QWebEngineDownloadItem) -> None: ...
|
||||
@staticmethod
|
||||
def defaultProfile() -> 'QWebEngineProfile': ...
|
||||
def scripts(self) -> 'QWebEngineScriptCollection': ...
|
||||
def settings(self) -> 'QWebEngineSettings': ...
|
||||
def visitedLinksContainsUrl(self, url: QtCore.QUrl) -> bool: ...
|
||||
def clearVisitedLinks(self, urls: typing.Iterable[QtCore.QUrl]) -> None: ...
|
||||
def clearAllVisitedLinks(self) -> None: ...
|
||||
def setHttpCacheMaximumSize(self, maxSize: int) -> None: ...
|
||||
def httpCacheMaximumSize(self) -> int: ...
|
||||
def setPersistentCookiesPolicy(self, a0: 'QWebEngineProfile.PersistentCookiesPolicy') -> None: ...
|
||||
def persistentCookiesPolicy(self) -> 'QWebEngineProfile.PersistentCookiesPolicy': ...
|
||||
def setHttpCacheType(self, a0: 'QWebEngineProfile.HttpCacheType') -> None: ...
|
||||
def httpCacheType(self) -> 'QWebEngineProfile.HttpCacheType': ...
|
||||
def setHttpUserAgent(self, userAgent: str) -> None: ...
|
||||
def httpUserAgent(self) -> str: ...
|
||||
def setCachePath(self, path: str) -> None: ...
|
||||
def cachePath(self) -> str: ...
|
||||
def setPersistentStoragePath(self, path: str) -> None: ...
|
||||
def persistentStoragePath(self) -> str: ...
|
||||
def isOffTheRecord(self) -> bool: ...
|
||||
def storageName(self) -> str: ...
|
||||
|
||||
|
||||
class QWebEngineScript(sip.simplewrapper):
|
||||
|
||||
class ScriptWorldId(int): ...
|
||||
MainWorld = ... # type: 'QWebEngineScript.ScriptWorldId'
|
||||
ApplicationWorld = ... # type: 'QWebEngineScript.ScriptWorldId'
|
||||
UserWorld = ... # type: 'QWebEngineScript.ScriptWorldId'
|
||||
|
||||
class InjectionPoint(int): ...
|
||||
Deferred = ... # type: 'QWebEngineScript.InjectionPoint'
|
||||
DocumentReady = ... # type: 'QWebEngineScript.InjectionPoint'
|
||||
DocumentCreation = ... # type: 'QWebEngineScript.InjectionPoint'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, other: 'QWebEngineScript') -> None: ...
|
||||
|
||||
def swap(self, other: 'QWebEngineScript') -> None: ...
|
||||
def setRunsOnSubFrames(self, on: bool) -> None: ...
|
||||
def runsOnSubFrames(self) -> bool: ...
|
||||
def setWorldId(self, a0: int) -> None: ...
|
||||
def worldId(self) -> int: ...
|
||||
def setInjectionPoint(self, a0: 'QWebEngineScript.InjectionPoint') -> None: ...
|
||||
def injectionPoint(self) -> 'QWebEngineScript.InjectionPoint': ...
|
||||
def setSourceCode(self, a0: str) -> None: ...
|
||||
def sourceCode(self) -> str: ...
|
||||
def setName(self, a0: str) -> None: ...
|
||||
def name(self) -> str: ...
|
||||
def isNull(self) -> bool: ...
|
||||
|
||||
|
||||
class QWebEngineScriptCollection(sip.simplewrapper):
|
||||
|
||||
def toList(self) -> typing.List[QWebEngineScript]: ...
|
||||
def clear(self) -> None: ...
|
||||
def remove(self, a0: QWebEngineScript) -> bool: ...
|
||||
@typing.overload
|
||||
def insert(self, a0: QWebEngineScript) -> None: ...
|
||||
@typing.overload
|
||||
def insert(self, list: typing.Iterable[QWebEngineScript]) -> None: ...
|
||||
def findScripts(self, name: str) -> typing.List[QWebEngineScript]: ...
|
||||
def findScript(self, name: str) -> QWebEngineScript: ...
|
||||
def contains(self, value: QWebEngineScript) -> bool: ...
|
||||
def __len__(self) -> int: ...
|
||||
def count(self) -> int: ...
|
||||
def isEmpty(self) -> bool: ...
|
||||
|
||||
|
||||
class QWebEngineSettings(sip.simplewrapper):
|
||||
|
||||
class UnknownUrlSchemePolicy(int): ...
|
||||
DisallowUnknownUrlSchemes = ... # type: 'QWebEngineSettings.UnknownUrlSchemePolicy'
|
||||
AllowUnknownUrlSchemesFromUserInteraction = ... # type: 'QWebEngineSettings.UnknownUrlSchemePolicy'
|
||||
AllowAllUnknownUrlSchemes = ... # type: 'QWebEngineSettings.UnknownUrlSchemePolicy'
|
||||
|
||||
class FontSize(int): ...
|
||||
MinimumFontSize = ... # type: 'QWebEngineSettings.FontSize'
|
||||
MinimumLogicalFontSize = ... # type: 'QWebEngineSettings.FontSize'
|
||||
DefaultFontSize = ... # type: 'QWebEngineSettings.FontSize'
|
||||
DefaultFixedFontSize = ... # type: 'QWebEngineSettings.FontSize'
|
||||
|
||||
class WebAttribute(int): ...
|
||||
AutoLoadImages = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
JavascriptEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
JavascriptCanOpenWindows = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
JavascriptCanAccessClipboard = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
LinksIncludedInFocusChain = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
LocalStorageEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
LocalContentCanAccessRemoteUrls = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
XSSAuditingEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
SpatialNavigationEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
LocalContentCanAccessFileUrls = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
HyperlinkAuditingEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
ScrollAnimatorEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
ErrorPageEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
PluginsEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
FullScreenSupportEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
ScreenCaptureEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
WebGLEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
Accelerated2dCanvasEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
AutoLoadIconsForPage = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
TouchIconsEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
FocusOnNavigationEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
PrintElementBackgrounds = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
AllowRunningInsecureContent = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
AllowGeolocationOnInsecureOrigins = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
AllowWindowActivationFromJavaScript = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
ShowScrollBars = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
PlaybackRequiresUserGesture = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
WebRTCPublicInterfacesOnly = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
JavascriptCanPaste = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
DnsPrefetchEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
PdfViewerEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
|
||||
|
||||
class FontFamily(int): ...
|
||||
StandardFont = ... # type: 'QWebEngineSettings.FontFamily'
|
||||
FixedFont = ... # type: 'QWebEngineSettings.FontFamily'
|
||||
SerifFont = ... # type: 'QWebEngineSettings.FontFamily'
|
||||
SansSerifFont = ... # type: 'QWebEngineSettings.FontFamily'
|
||||
CursiveFont = ... # type: 'QWebEngineSettings.FontFamily'
|
||||
FantasyFont = ... # type: 'QWebEngineSettings.FontFamily'
|
||||
PictographFont = ... # type: 'QWebEngineSettings.FontFamily'
|
||||
|
||||
def resetUnknownUrlSchemePolicy(self) -> None: ...
|
||||
def setUnknownUrlSchemePolicy(self, policy: 'QWebEngineSettings.UnknownUrlSchemePolicy') -> None: ...
|
||||
def unknownUrlSchemePolicy(self) -> 'QWebEngineSettings.UnknownUrlSchemePolicy': ...
|
||||
def defaultTextEncoding(self) -> str: ...
|
||||
def setDefaultTextEncoding(self, encoding: str) -> None: ...
|
||||
def resetAttribute(self, attr: 'QWebEngineSettings.WebAttribute') -> None: ...
|
||||
def testAttribute(self, attr: 'QWebEngineSettings.WebAttribute') -> bool: ...
|
||||
def setAttribute(self, attr: 'QWebEngineSettings.WebAttribute', on: bool) -> None: ...
|
||||
def resetFontSize(self, type: 'QWebEngineSettings.FontSize') -> None: ...
|
||||
def fontSize(self, type: 'QWebEngineSettings.FontSize') -> int: ...
|
||||
def setFontSize(self, type: 'QWebEngineSettings.FontSize', size: int) -> None: ...
|
||||
def resetFontFamily(self, which: 'QWebEngineSettings.FontFamily') -> None: ...
|
||||
def fontFamily(self, which: 'QWebEngineSettings.FontFamily') -> str: ...
|
||||
def setFontFamily(self, which: 'QWebEngineSettings.FontFamily', family: str) -> None: ...
|
||||
@staticmethod
|
||||
def globalSettings() -> 'QWebEngineSettings': ...
|
||||
@staticmethod
|
||||
def defaultSettings() -> 'QWebEngineSettings': ...
|
||||
|
||||
|
||||
class QWebEngineView(QtWidgets.QWidget):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
|
||||
|
||||
def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ...
|
||||
def dropEvent(self, e: QtGui.QDropEvent) -> None: ...
|
||||
def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ...
|
||||
def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ...
|
||||
def dragEnterEvent(self, e: QtGui.QDragEnterEvent) -> None: ...
|
||||
def iconChanged(self, a0: QtGui.QIcon) -> None: ...
|
||||
def icon(self) -> QtGui.QIcon: ...
|
||||
def hideEvent(self, a0: QtGui.QHideEvent) -> None: ...
|
||||
def showEvent(self, a0: QtGui.QShowEvent) -> None: ...
|
||||
def event(self, a0: QtCore.QEvent) -> bool: ...
|
||||
def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ...
|
||||
def createWindow(self, type: QWebEnginePage.WebWindowType) -> 'QWebEngineView': ...
|
||||
def renderProcessTerminated(self, terminationStatus: QWebEnginePage.RenderProcessTerminationStatus, exitCode: int) -> None: ...
|
||||
def iconUrlChanged(self, a0: QtCore.QUrl) -> None: ...
|
||||
def urlChanged(self, a0: QtCore.QUrl) -> None: ...
|
||||
def selectionChanged(self) -> None: ...
|
||||
def titleChanged(self, title: str) -> None: ...
|
||||
def loadFinished(self, a0: bool) -> None: ...
|
||||
def loadProgress(self, progress: int) -> None: ...
|
||||
def loadStarted(self) -> None: ...
|
||||
def reload(self) -> None: ...
|
||||
def forward(self) -> None: ...
|
||||
def back(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
def settings(self) -> QWebEngineSettings: ...
|
||||
def sizeHint(self) -> QtCore.QSize: ...
|
||||
def findText(self, subString: str, options: typing.Union[QWebEnginePage.FindFlags, QWebEnginePage.FindFlag] = ..., resultCallback: typing.Optional[typing.Callable[[bool], None]] = ...) -> None: ...
|
||||
def setZoomFactor(self, factor: float) -> None: ...
|
||||
def zoomFactor(self) -> float: ...
|
||||
def triggerPageAction(self, action: QWebEnginePage.WebAction, checked: bool = ...) -> None: ...
|
||||
def pageAction(self, action: QWebEnginePage.WebAction) -> QtWidgets.QAction: ...
|
||||
def selectedText(self) -> str: ...
|
||||
def hasSelection(self) -> bool: ...
|
||||
def iconUrl(self) -> QtCore.QUrl: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def setUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def title(self) -> str: ...
|
||||
def history(self) -> QWebEngineHistory: ...
|
||||
def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, url: QtCore.QUrl) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, request: QtWebEngineCore.QWebEngineHttpRequest) -> None: ...
|
||||
def setPage(self, page: QWebEnginePage) -> None: ...
|
||||
def page(self) -> QWebEnginePage: ...
|
||||
@@ -0,0 +1,427 @@
|
||||
# The PEP 484 type hints stub file for the QtWebKit module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtWebKitWidgets
|
||||
from PyQt5 import QtNetwork
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QWebDatabase(sip.simplewrapper):
|
||||
|
||||
def __init__(self, other: 'QWebDatabase') -> None: ...
|
||||
|
||||
@staticmethod
|
||||
def removeAllDatabases() -> None: ...
|
||||
@staticmethod
|
||||
def removeDatabase(db: 'QWebDatabase') -> None: ...
|
||||
def origin(self) -> 'QWebSecurityOrigin': ...
|
||||
def fileName(self) -> str: ...
|
||||
def size(self) -> int: ...
|
||||
def expectedSize(self) -> int: ...
|
||||
def displayName(self) -> str: ...
|
||||
def name(self) -> str: ...
|
||||
|
||||
|
||||
class QWebElement(sip.simplewrapper):
|
||||
|
||||
class StyleResolveStrategy(int): ...
|
||||
InlineStyle = ... # type: 'QWebElement.StyleResolveStrategy'
|
||||
CascadedStyle = ... # type: 'QWebElement.StyleResolveStrategy'
|
||||
ComputedStyle = ... # type: 'QWebElement.StyleResolveStrategy'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebElement') -> None: ...
|
||||
|
||||
@typing.overload
|
||||
def render(self, painter: QtGui.QPainter) -> None: ...
|
||||
@typing.overload
|
||||
def render(self, painter: QtGui.QPainter, clip: QtCore.QRect) -> None: ...
|
||||
def setStyleProperty(self, name: str, value: str) -> None: ...
|
||||
def styleProperty(self, name: str, strategy: 'QWebElement.StyleResolveStrategy') -> str: ...
|
||||
def evaluateJavaScript(self, scriptSource: str) -> typing.Any: ...
|
||||
def removeAllChildren(self) -> None: ...
|
||||
def removeFromDocument(self) -> None: ...
|
||||
def takeFromDocument(self) -> 'QWebElement': ...
|
||||
def clone(self) -> 'QWebElement': ...
|
||||
@typing.overload
|
||||
def replace(self, markup: str) -> None: ...
|
||||
@typing.overload
|
||||
def replace(self, element: 'QWebElement') -> None: ...
|
||||
@typing.overload
|
||||
def encloseWith(self, markup: str) -> None: ...
|
||||
@typing.overload
|
||||
def encloseWith(self, element: 'QWebElement') -> None: ...
|
||||
@typing.overload
|
||||
def encloseContentsWith(self, element: 'QWebElement') -> None: ...
|
||||
@typing.overload
|
||||
def encloseContentsWith(self, markup: str) -> None: ...
|
||||
@typing.overload
|
||||
def prependOutside(self, markup: str) -> None: ...
|
||||
@typing.overload
|
||||
def prependOutside(self, element: 'QWebElement') -> None: ...
|
||||
@typing.overload
|
||||
def appendOutside(self, markup: str) -> None: ...
|
||||
@typing.overload
|
||||
def appendOutside(self, element: 'QWebElement') -> None: ...
|
||||
@typing.overload
|
||||
def prependInside(self, markup: str) -> None: ...
|
||||
@typing.overload
|
||||
def prependInside(self, element: 'QWebElement') -> None: ...
|
||||
@typing.overload
|
||||
def appendInside(self, markup: str) -> None: ...
|
||||
@typing.overload
|
||||
def appendInside(self, element: 'QWebElement') -> None: ...
|
||||
def webFrame(self) -> QtWebKitWidgets.QWebFrame: ...
|
||||
def document(self) -> 'QWebElement': ...
|
||||
def previousSibling(self) -> 'QWebElement': ...
|
||||
def nextSibling(self) -> 'QWebElement': ...
|
||||
def lastChild(self) -> 'QWebElement': ...
|
||||
def firstChild(self) -> 'QWebElement': ...
|
||||
def parent(self) -> 'QWebElement': ...
|
||||
def namespaceUri(self) -> str: ...
|
||||
def localName(self) -> str: ...
|
||||
def prefix(self) -> str: ...
|
||||
def tagName(self) -> str: ...
|
||||
def geometry(self) -> QtCore.QRect: ...
|
||||
def setFocus(self) -> None: ...
|
||||
def hasFocus(self) -> bool: ...
|
||||
def toggleClass(self, name: str) -> None: ...
|
||||
def removeClass(self, name: str) -> None: ...
|
||||
def addClass(self, name: str) -> None: ...
|
||||
def hasClass(self, name: str) -> bool: ...
|
||||
def classes(self) -> typing.List[str]: ...
|
||||
def attributeNames(self, namespaceUri: str = ...) -> typing.List[str]: ...
|
||||
def hasAttributes(self) -> bool: ...
|
||||
def removeAttributeNS(self, namespaceUri: str, name: str) -> None: ...
|
||||
def removeAttribute(self, name: str) -> None: ...
|
||||
def hasAttributeNS(self, namespaceUri: str, name: str) -> bool: ...
|
||||
def hasAttribute(self, name: str) -> bool: ...
|
||||
def attributeNS(self, namespaceUri: str, name: str, defaultValue: str = ...) -> str: ...
|
||||
def attribute(self, name: str, defaultValue: str = ...) -> str: ...
|
||||
def setAttributeNS(self, namespaceUri: str, name: str, value: str) -> None: ...
|
||||
def setAttribute(self, name: str, value: str) -> None: ...
|
||||
def toInnerXml(self) -> str: ...
|
||||
def setInnerXml(self, markup: str) -> None: ...
|
||||
def toOuterXml(self) -> str: ...
|
||||
def setOuterXml(self, markup: str) -> None: ...
|
||||
def toPlainText(self) -> str: ...
|
||||
def setPlainText(self, text: str) -> None: ...
|
||||
def findFirst(self, selectorQuery: str) -> 'QWebElement': ...
|
||||
def findAll(self, selectorQuery: str) -> 'QWebElementCollection': ...
|
||||
def isNull(self) -> bool: ...
|
||||
|
||||
|
||||
class QWebElementCollection(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, contextElement: QWebElement, query: str) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebElementCollection') -> None: ...
|
||||
|
||||
def toList(self) -> typing.List[QWebElement]: ...
|
||||
def last(self) -> QWebElement: ...
|
||||
def first(self) -> QWebElement: ...
|
||||
def __getitem__(self, i: int) -> QWebElement: ...
|
||||
def at(self, i: int) -> QWebElement: ...
|
||||
def __len__(self) -> int: ...
|
||||
def count(self) -> int: ...
|
||||
def append(self, collection: 'QWebElementCollection') -> None: ...
|
||||
|
||||
|
||||
class QWebHistoryItem(sip.simplewrapper):
|
||||
|
||||
def __init__(self, other: 'QWebHistoryItem') -> None: ...
|
||||
|
||||
def isValid(self) -> bool: ...
|
||||
def setUserData(self, userData: typing.Any) -> None: ...
|
||||
def userData(self) -> typing.Any: ...
|
||||
def icon(self) -> QtGui.QIcon: ...
|
||||
def lastVisited(self) -> QtCore.QDateTime: ...
|
||||
def title(self) -> str: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def originalUrl(self) -> QtCore.QUrl: ...
|
||||
|
||||
|
||||
class QWebHistory(sip.simplewrapper):
|
||||
|
||||
def setMaximumItemCount(self, count: int) -> None: ...
|
||||
def maximumItemCount(self) -> int: ...
|
||||
def currentItemIndex(self) -> int: ...
|
||||
def __len__(self) -> int: ...
|
||||
def count(self) -> int: ...
|
||||
def itemAt(self, i: int) -> QWebHistoryItem: ...
|
||||
def forwardItem(self) -> QWebHistoryItem: ...
|
||||
def currentItem(self) -> QWebHistoryItem: ...
|
||||
def backItem(self) -> QWebHistoryItem: ...
|
||||
def goToItem(self, item: QWebHistoryItem) -> None: ...
|
||||
def forward(self) -> None: ...
|
||||
def back(self) -> None: ...
|
||||
def canGoForward(self) -> bool: ...
|
||||
def canGoBack(self) -> bool: ...
|
||||
def forwardItems(self, maxItems: int) -> typing.List[QWebHistoryItem]: ...
|
||||
def backItems(self, maxItems: int) -> typing.List[QWebHistoryItem]: ...
|
||||
def items(self) -> typing.List[QWebHistoryItem]: ...
|
||||
def clear(self) -> None: ...
|
||||
|
||||
|
||||
class QWebHistoryInterface(QtCore.QObject):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def addHistoryEntry(self, url: str) -> None: ...
|
||||
def historyContains(self, url: str) -> bool: ...
|
||||
@staticmethod
|
||||
def defaultInterface() -> 'QWebHistoryInterface': ...
|
||||
@staticmethod
|
||||
def setDefaultInterface(defaultInterface: 'QWebHistoryInterface') -> None: ...
|
||||
|
||||
|
||||
class QWebPluginFactory(QtCore.QObject):
|
||||
|
||||
class Extension(int): ...
|
||||
|
||||
class MimeType(sip.simplewrapper):
|
||||
|
||||
description = ... # type: str
|
||||
fileExtensions = ... # type: typing.Iterable[str]
|
||||
name = ... # type: str
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPluginFactory.MimeType') -> None: ...
|
||||
|
||||
class Plugin(sip.simplewrapper):
|
||||
|
||||
description = ... # type: str
|
||||
mimeTypes = ... # type: typing.Iterable['QWebPluginFactory.MimeType']
|
||||
name = ... # type: str
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPluginFactory.Plugin') -> None: ...
|
||||
|
||||
class ExtensionOption(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPluginFactory.ExtensionOption') -> None: ...
|
||||
|
||||
class ExtensionReturn(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPluginFactory.ExtensionReturn') -> None: ...
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def supportsExtension(self, extension: 'QWebPluginFactory.Extension') -> bool: ...
|
||||
def extension(self, extension: 'QWebPluginFactory.Extension', option: typing.Optional['QWebPluginFactory.ExtensionOption'] = ..., output: typing.Optional['QWebPluginFactory.ExtensionReturn'] = ...) -> bool: ...
|
||||
def create(self, mimeType: str, url: QtCore.QUrl, argumentNames: typing.Iterable[str], argumentValues: typing.Iterable[str]) -> QtCore.QObject: ...
|
||||
def refreshPlugins(self) -> None: ...
|
||||
def plugins(self) -> typing.List['QWebPluginFactory.Plugin']: ...
|
||||
|
||||
|
||||
class QWebSecurityOrigin(sip.simplewrapper):
|
||||
|
||||
class SubdomainSetting(int): ...
|
||||
AllowSubdomains = ... # type: 'QWebSecurityOrigin.SubdomainSetting'
|
||||
DisallowSubdomains = ... # type: 'QWebSecurityOrigin.SubdomainSetting'
|
||||
|
||||
@typing.overload
|
||||
def __init__(self, url: QtCore.QUrl) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, other: 'QWebSecurityOrigin') -> None: ...
|
||||
|
||||
def removeAccessWhitelistEntry(self, scheme: str, host: str, subdomainSetting: 'QWebSecurityOrigin.SubdomainSetting') -> None: ...
|
||||
def addAccessWhitelistEntry(self, scheme: str, host: str, subdomainSetting: 'QWebSecurityOrigin.SubdomainSetting') -> None: ...
|
||||
def setApplicationCacheQuota(self, quota: int) -> None: ...
|
||||
@staticmethod
|
||||
def localSchemes() -> typing.List[str]: ...
|
||||
@staticmethod
|
||||
def removeLocalScheme(scheme: str) -> None: ...
|
||||
@staticmethod
|
||||
def addLocalScheme(scheme: str) -> None: ...
|
||||
def databases(self) -> typing.List[QWebDatabase]: ...
|
||||
def setDatabaseQuota(self, quota: int) -> None: ...
|
||||
def databaseQuota(self) -> int: ...
|
||||
def databaseUsage(self) -> int: ...
|
||||
def port(self) -> int: ...
|
||||
def host(self) -> str: ...
|
||||
def scheme(self) -> str: ...
|
||||
@staticmethod
|
||||
def allOrigins() -> typing.List['QWebSecurityOrigin']: ...
|
||||
|
||||
|
||||
class QWebSettings(sip.simplewrapper):
|
||||
|
||||
class ThirdPartyCookiePolicy(int): ...
|
||||
AlwaysAllowThirdPartyCookies = ... # type: 'QWebSettings.ThirdPartyCookiePolicy'
|
||||
AlwaysBlockThirdPartyCookies = ... # type: 'QWebSettings.ThirdPartyCookiePolicy'
|
||||
AllowThirdPartyWithExistingCookies = ... # type: 'QWebSettings.ThirdPartyCookiePolicy'
|
||||
|
||||
class FontSize(int): ...
|
||||
MinimumFontSize = ... # type: 'QWebSettings.FontSize'
|
||||
MinimumLogicalFontSize = ... # type: 'QWebSettings.FontSize'
|
||||
DefaultFontSize = ... # type: 'QWebSettings.FontSize'
|
||||
DefaultFixedFontSize = ... # type: 'QWebSettings.FontSize'
|
||||
|
||||
class WebGraphic(int): ...
|
||||
MissingImageGraphic = ... # type: 'QWebSettings.WebGraphic'
|
||||
MissingPluginGraphic = ... # type: 'QWebSettings.WebGraphic'
|
||||
DefaultFrameIconGraphic = ... # type: 'QWebSettings.WebGraphic'
|
||||
TextAreaSizeGripCornerGraphic = ... # type: 'QWebSettings.WebGraphic'
|
||||
InputSpeechButtonGraphic = ... # type: 'QWebSettings.WebGraphic'
|
||||
SearchCancelButtonGraphic = ... # type: 'QWebSettings.WebGraphic'
|
||||
SearchCancelButtonPressedGraphic = ... # type: 'QWebSettings.WebGraphic'
|
||||
|
||||
class WebAttribute(int): ...
|
||||
AutoLoadImages = ... # type: 'QWebSettings.WebAttribute'
|
||||
JavascriptEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
JavaEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
PluginsEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
PrivateBrowsingEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
JavascriptCanOpenWindows = ... # type: 'QWebSettings.WebAttribute'
|
||||
JavascriptCanCloseWindows = ... # type: 'QWebSettings.WebAttribute'
|
||||
JavascriptCanAccessClipboard = ... # type: 'QWebSettings.WebAttribute'
|
||||
DeveloperExtrasEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
LinksIncludedInFocusChain = ... # type: 'QWebSettings.WebAttribute'
|
||||
ZoomTextOnly = ... # type: 'QWebSettings.WebAttribute'
|
||||
PrintElementBackgrounds = ... # type: 'QWebSettings.WebAttribute'
|
||||
OfflineStorageDatabaseEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
OfflineWebApplicationCacheEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
LocalStorageDatabaseEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
LocalStorageEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
LocalContentCanAccessRemoteUrls = ... # type: 'QWebSettings.WebAttribute'
|
||||
DnsPrefetchEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
XSSAuditingEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
AcceleratedCompositingEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
SpatialNavigationEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
LocalContentCanAccessFileUrls = ... # type: 'QWebSettings.WebAttribute'
|
||||
TiledBackingStoreEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
FrameFlatteningEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
SiteSpecificQuirksEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
WebGLEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
HyperlinkAuditingEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
CSSRegionsEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
CSSGridLayoutEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
ScrollAnimatorEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
CaretBrowsingEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
NotificationsEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
WebAudioEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
Accelerated2dCanvasEnabled = ... # type: 'QWebSettings.WebAttribute'
|
||||
|
||||
class FontFamily(int): ...
|
||||
StandardFont = ... # type: 'QWebSettings.FontFamily'
|
||||
FixedFont = ... # type: 'QWebSettings.FontFamily'
|
||||
SerifFont = ... # type: 'QWebSettings.FontFamily'
|
||||
SansSerifFont = ... # type: 'QWebSettings.FontFamily'
|
||||
CursiveFont = ... # type: 'QWebSettings.FontFamily'
|
||||
FantasyFont = ... # type: 'QWebSettings.FontFamily'
|
||||
|
||||
def cssMediaType(self) -> str: ...
|
||||
def setCSSMediaType(self, a0: str) -> None: ...
|
||||
def thirdPartyCookiePolicy(self) -> 'QWebSettings.ThirdPartyCookiePolicy': ...
|
||||
def setThirdPartyCookiePolicy(self, a0: 'QWebSettings.ThirdPartyCookiePolicy') -> None: ...
|
||||
@staticmethod
|
||||
def enablePersistentStorage(path: str = ...) -> None: ...
|
||||
@staticmethod
|
||||
def clearMemoryCaches() -> None: ...
|
||||
def localStoragePath(self) -> str: ...
|
||||
def setLocalStoragePath(self, path: str) -> None: ...
|
||||
@staticmethod
|
||||
def offlineWebApplicationCacheQuota() -> int: ...
|
||||
@staticmethod
|
||||
def setOfflineWebApplicationCacheQuota(maximumSize: int) -> None: ...
|
||||
@staticmethod
|
||||
def offlineWebApplicationCachePath() -> str: ...
|
||||
@staticmethod
|
||||
def setOfflineWebApplicationCachePath(path: str) -> None: ...
|
||||
def defaultTextEncoding(self) -> str: ...
|
||||
def setDefaultTextEncoding(self, encoding: str) -> None: ...
|
||||
@staticmethod
|
||||
def offlineStorageDefaultQuota() -> int: ...
|
||||
@staticmethod
|
||||
def setOfflineStorageDefaultQuota(maximumSize: int) -> None: ...
|
||||
@staticmethod
|
||||
def offlineStoragePath() -> str: ...
|
||||
@staticmethod
|
||||
def setOfflineStoragePath(path: str) -> None: ...
|
||||
@staticmethod
|
||||
def setObjectCacheCapacities(cacheMinDeadCapacity: int, cacheMaxDead: int, totalCapacity: int) -> None: ...
|
||||
@staticmethod
|
||||
def maximumPagesInCache() -> int: ...
|
||||
@staticmethod
|
||||
def setMaximumPagesInCache(pages: int) -> None: ...
|
||||
@staticmethod
|
||||
def webGraphic(type: 'QWebSettings.WebGraphic') -> QtGui.QPixmap: ...
|
||||
@staticmethod
|
||||
def setWebGraphic(type: 'QWebSettings.WebGraphic', graphic: QtGui.QPixmap) -> None: ...
|
||||
@staticmethod
|
||||
def iconForUrl(url: QtCore.QUrl) -> QtGui.QIcon: ...
|
||||
@staticmethod
|
||||
def clearIconDatabase() -> None: ...
|
||||
@staticmethod
|
||||
def iconDatabasePath() -> str: ...
|
||||
@staticmethod
|
||||
def setIconDatabasePath(location: str) -> None: ...
|
||||
def userStyleSheetUrl(self) -> QtCore.QUrl: ...
|
||||
def setUserStyleSheetUrl(self, location: QtCore.QUrl) -> None: ...
|
||||
def resetAttribute(self, attr: 'QWebSettings.WebAttribute') -> None: ...
|
||||
def testAttribute(self, attr: 'QWebSettings.WebAttribute') -> bool: ...
|
||||
def setAttribute(self, attr: 'QWebSettings.WebAttribute', on: bool) -> None: ...
|
||||
def resetFontSize(self, type: 'QWebSettings.FontSize') -> None: ...
|
||||
def fontSize(self, type: 'QWebSettings.FontSize') -> int: ...
|
||||
def setFontSize(self, type: 'QWebSettings.FontSize', size: int) -> None: ...
|
||||
def resetFontFamily(self, which: 'QWebSettings.FontFamily') -> None: ...
|
||||
def fontFamily(self, which: 'QWebSettings.FontFamily') -> str: ...
|
||||
def setFontFamily(self, which: 'QWebSettings.FontFamily', family: str) -> None: ...
|
||||
@staticmethod
|
||||
def globalSettings() -> 'QWebSettings': ...
|
||||
|
||||
|
||||
def qWebKitMinorVersion() -> int: ...
|
||||
def qWebKitMajorVersion() -> int: ...
|
||||
def qWebKitVersion() -> str: ...
|
||||
@@ -0,0 +1,625 @@
|
||||
# The PEP 484 type hints stub file for the QtWebKitWidgets module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5 import QtWebKit
|
||||
from PyQt5 import QtPrintSupport
|
||||
from PyQt5 import QtNetwork as QtNetwork_
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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 QGraphicsWebView(QtWidgets.QGraphicsWidget):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ...
|
||||
|
||||
def setRenderHint(self, hint: QtGui.QPainter.RenderHint, enabled: bool = ...) -> None: ...
|
||||
def setRenderHints(self, hints: QtGui.QPainter.RenderHints) -> None: ...
|
||||
def renderHints(self) -> QtGui.QPainter.RenderHints: ...
|
||||
def setTiledBackingStoreFrozen(self, frozen: bool) -> None: ...
|
||||
def isTiledBackingStoreFrozen(self) -> bool: ...
|
||||
def setResizesToContents(self, enabled: bool) -> None: ...
|
||||
def resizesToContents(self) -> bool: ...
|
||||
def sceneEvent(self, a0: QtCore.QEvent) -> bool: ...
|
||||
def focusNextPrevChild(self, next: bool) -> bool: ...
|
||||
def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ...
|
||||
def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ...
|
||||
def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ...
|
||||
def dropEvent(self, a0: QtWidgets.QGraphicsSceneDragDropEvent) -> None: ...
|
||||
def dragMoveEvent(self, a0: QtWidgets.QGraphicsSceneDragDropEvent) -> None: ...
|
||||
def dragLeaveEvent(self, a0: QtWidgets.QGraphicsSceneDragDropEvent) -> None: ...
|
||||
def dragEnterEvent(self, a0: QtWidgets.QGraphicsSceneDragDropEvent) -> None: ...
|
||||
def contextMenuEvent(self, a0: QtWidgets.QGraphicsSceneContextMenuEvent) -> None: ...
|
||||
def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ...
|
||||
def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ...
|
||||
def wheelEvent(self, a0: QtWidgets.QGraphicsSceneWheelEvent) -> None: ...
|
||||
def hoverLeaveEvent(self, a0: QtWidgets.QGraphicsSceneHoverEvent) -> None: ...
|
||||
def hoverMoveEvent(self, a0: QtWidgets.QGraphicsSceneHoverEvent) -> None: ...
|
||||
def mouseMoveEvent(self, a0: QtWidgets.QGraphicsSceneMouseEvent) -> None: ...
|
||||
def mouseReleaseEvent(self, a0: QtWidgets.QGraphicsSceneMouseEvent) -> None: ...
|
||||
def mouseDoubleClickEvent(self, a0: QtWidgets.QGraphicsSceneMouseEvent) -> None: ...
|
||||
def mousePressEvent(self, a0: QtWidgets.QGraphicsSceneMouseEvent) -> None: ...
|
||||
def linkClicked(self, a0: QtCore.QUrl) -> None: ...
|
||||
def statusBarMessage(self, message: str) -> None: ...
|
||||
def iconChanged(self) -> None: ...
|
||||
def titleChanged(self, a0: str) -> None: ...
|
||||
def urlChanged(self, a0: QtCore.QUrl) -> None: ...
|
||||
def loadProgress(self, progress: int) -> None: ...
|
||||
def loadFinished(self, a0: bool) -> None: ...
|
||||
def loadStarted(self) -> None: ...
|
||||
def reload(self) -> None: ...
|
||||
def forward(self) -> None: ...
|
||||
def back(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ...
|
||||
def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF) -> QtCore.QSizeF: ... # type: ignore[override]
|
||||
def event(self, a0: QtCore.QEvent) -> bool: ...
|
||||
def itemChange(self, change: QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ...
|
||||
def paint(self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
|
||||
def updateGeometry(self) -> None: ...
|
||||
def setGeometry(self, rect: QtCore.QRectF) -> None: ... # type: ignore[override]
|
||||
def findText(self, subString: str, options: 'QWebPage.FindFlags' = ...) -> bool: ...
|
||||
def triggerPageAction(self, action: 'QWebPage.WebAction', checked: bool = ...) -> None: ...
|
||||
def pageAction(self, action: 'QWebPage.WebAction') -> QtWidgets.QAction: ...
|
||||
def settings(self) -> QtWebKit.QWebSettings: ...
|
||||
def history(self) -> QtWebKit.QWebHistory: ...
|
||||
def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, url: QtCore.QUrl) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, request: QtNetwork_.QNetworkRequest, operation: QtNetwork_.QNetworkAccessManager.Operation = ..., body: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ...
|
||||
def isModified(self) -> bool: ...
|
||||
def setZoomFactor(self, a0: float) -> None: ...
|
||||
def zoomFactor(self) -> float: ...
|
||||
def icon(self) -> QtGui.QIcon: ...
|
||||
def title(self) -> str: ...
|
||||
def setUrl(self, a0: QtCore.QUrl) -> None: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def setPage(self, a0: 'QWebPage') -> None: ...
|
||||
def page(self) -> 'QWebPage': ...
|
||||
|
||||
|
||||
class QWebHitTestResult(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, other: 'QWebHitTestResult') -> None: ...
|
||||
|
||||
def linkTitleString(self) -> str: ...
|
||||
def mediaUrl(self) -> QtCore.QUrl: ...
|
||||
def element(self) -> QtWebKit.QWebElement: ...
|
||||
def linkElement(self) -> QtWebKit.QWebElement: ...
|
||||
def enclosingBlockElement(self) -> QtWebKit.QWebElement: ...
|
||||
def boundingRect(self) -> QtCore.QRect: ...
|
||||
def frame(self) -> 'QWebFrame': ...
|
||||
def isContentSelected(self) -> bool: ...
|
||||
def isContentEditable(self) -> bool: ...
|
||||
def pixmap(self) -> QtGui.QPixmap: ...
|
||||
def imageUrl(self) -> QtCore.QUrl: ...
|
||||
def alternateText(self) -> str: ...
|
||||
def linkTargetFrame(self) -> 'QWebFrame': ...
|
||||
def linkTitle(self) -> QtCore.QUrl: ...
|
||||
def linkUrl(self) -> QtCore.QUrl: ...
|
||||
def linkText(self) -> str: ...
|
||||
def title(self) -> str: ...
|
||||
def pos(self) -> QtCore.QPoint: ...
|
||||
def isNull(self) -> bool: ...
|
||||
|
||||
|
||||
class QWebFrame(QtCore.QObject):
|
||||
|
||||
class RenderLayer(int): ...
|
||||
ContentsLayer = ... # type: 'QWebFrame.RenderLayer'
|
||||
ScrollBarLayer = ... # type: 'QWebFrame.RenderLayer'
|
||||
PanIconLayer = ... # type: 'QWebFrame.RenderLayer'
|
||||
AllLayers = ... # type: 'QWebFrame.RenderLayer'
|
||||
|
||||
class ValueOwnership(int): ...
|
||||
QtOwnership = ... # type: 'QWebFrame.ValueOwnership'
|
||||
ScriptOwnership = ... # type: 'QWebFrame.ValueOwnership'
|
||||
AutoOwnership = ... # type: 'QWebFrame.ValueOwnership'
|
||||
|
||||
class RenderLayers(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, f: typing.Union['QWebFrame.RenderLayers', 'QWebFrame.RenderLayer']) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebFrame.RenderLayers') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> int: ...
|
||||
def __invert__(self) -> 'QWebFrame.RenderLayers': ...
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
def scrollToAnchor(self, anchor: str) -> None: ...
|
||||
def pageChanged(self) -> None: ...
|
||||
def loadFinished(self, ok: bool) -> None: ...
|
||||
def loadStarted(self) -> None: ...
|
||||
def contentsSizeChanged(self, size: QtCore.QSize) -> None: ...
|
||||
def findFirstElement(self, selectorQuery: str) -> QtWebKit.QWebElement: ...
|
||||
def findAllElements(self, selectorQuery: str) -> QtWebKit.QWebElementCollection: ...
|
||||
def documentElement(self) -> QtWebKit.QWebElement: ...
|
||||
def setFocus(self) -> None: ...
|
||||
def hasFocus(self) -> bool: ...
|
||||
@typing.overload
|
||||
def render(self, a0: QtGui.QPainter, clip: QtGui.QRegion = ...) -> None: ...
|
||||
@typing.overload
|
||||
def render(self, a0: QtGui.QPainter, layer: 'QWebFrame.RenderLayers', clip: QtGui.QRegion = ...) -> None: ...
|
||||
def scrollBarGeometry(self, orientation: QtCore.Qt.Orientation) -> QtCore.QRect: ...
|
||||
def baseUrl(self) -> QtCore.QUrl: ...
|
||||
def requestedUrl(self) -> QtCore.QUrl: ...
|
||||
def securityOrigin(self) -> QtWebKit.QWebSecurityOrigin: ...
|
||||
def setZoomFactor(self, factor: float) -> None: ...
|
||||
def zoomFactor(self) -> float: ...
|
||||
def setScrollPosition(self, pos: QtCore.QPoint) -> None: ...
|
||||
def scrollPosition(self) -> QtCore.QPoint: ...
|
||||
def scroll(self, a0: int, a1: int) -> None: ...
|
||||
def metaData(self) -> typing.Dict[str, typing.List[str]]: ...
|
||||
def iconChanged(self) -> None: ...
|
||||
def initialLayoutCompleted(self) -> None: ...
|
||||
def urlChanged(self, url: QtCore.QUrl) -> None: ...
|
||||
def titleChanged(self, title: str) -> None: ...
|
||||
def javaScriptWindowObjectCleared(self) -> None: ...
|
||||
def print(self, printer: QtPrintSupport.QPrinter) -> None: ...
|
||||
def print_(self, printer: QtPrintSupport.QPrinter) -> None: ...
|
||||
def evaluateJavaScript(self, scriptSource: str) -> typing.Any: ...
|
||||
def event(self, a0: QtCore.QEvent) -> bool: ...
|
||||
def hitTestContent(self, pos: QtCore.QPoint) -> QWebHitTestResult: ...
|
||||
def contentsSize(self) -> QtCore.QSize: ...
|
||||
def geometry(self) -> QtCore.QRect: ...
|
||||
def pos(self) -> QtCore.QPoint: ...
|
||||
def scrollBarMaximum(self, orientation: QtCore.Qt.Orientation) -> int: ...
|
||||
def scrollBarMinimum(self, orientation: QtCore.Qt.Orientation) -> int: ...
|
||||
def scrollBarValue(self, orientation: QtCore.Qt.Orientation) -> int: ...
|
||||
def setScrollBarValue(self, orientation: QtCore.Qt.Orientation, value: int) -> None: ...
|
||||
def setScrollBarPolicy(self, orientation: QtCore.Qt.Orientation, policy: QtCore.Qt.ScrollBarPolicy) -> None: ...
|
||||
def scrollBarPolicy(self, orientation: QtCore.Qt.Orientation) -> QtCore.Qt.ScrollBarPolicy: ...
|
||||
def childFrames(self) -> typing.List['QWebFrame']: ...
|
||||
def parentFrame(self) -> 'QWebFrame': ...
|
||||
def frameName(self) -> str: ...
|
||||
def icon(self) -> QtGui.QIcon: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def setUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def title(self) -> str: ...
|
||||
def toPlainText(self) -> str: ...
|
||||
def toHtml(self) -> str: ...
|
||||
def addToJavaScriptWindowObject(self, name: str, object: QtCore.QObject, ownership: 'QWebFrame.ValueOwnership' = ...) -> None: ...
|
||||
def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, url: QtCore.QUrl) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, request: QtNetwork_.QNetworkRequest, operation: QtNetwork_.QNetworkAccessManager.Operation = ..., body: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ...
|
||||
def page(self) -> 'QWebPage': ...
|
||||
|
||||
|
||||
class QWebInspector(QtWidgets.QWidget):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
|
||||
|
||||
def closeEvent(self, event: QtGui.QCloseEvent) -> None: ...
|
||||
def hideEvent(self, event: QtGui.QHideEvent) -> None: ...
|
||||
def showEvent(self, event: QtGui.QShowEvent) -> None: ...
|
||||
def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ...
|
||||
def event(self, a0: QtCore.QEvent) -> bool: ...
|
||||
def sizeHint(self) -> QtCore.QSize: ...
|
||||
def page(self) -> 'QWebPage': ...
|
||||
def setPage(self, page: 'QWebPage') -> None: ...
|
||||
|
||||
|
||||
class QWebPage(QtCore.QObject):
|
||||
|
||||
class VisibilityState(int): ...
|
||||
VisibilityStateVisible = ... # type: 'QWebPage.VisibilityState'
|
||||
VisibilityStateHidden = ... # type: 'QWebPage.VisibilityState'
|
||||
VisibilityStatePrerender = ... # type: 'QWebPage.VisibilityState'
|
||||
VisibilityStateUnloaded = ... # type: 'QWebPage.VisibilityState'
|
||||
|
||||
class Feature(int): ...
|
||||
Notifications = ... # type: 'QWebPage.Feature'
|
||||
Geolocation = ... # type: 'QWebPage.Feature'
|
||||
|
||||
class PermissionPolicy(int): ...
|
||||
PermissionUnknown = ... # type: 'QWebPage.PermissionPolicy'
|
||||
PermissionGrantedByUser = ... # type: 'QWebPage.PermissionPolicy'
|
||||
PermissionDeniedByUser = ... # type: 'QWebPage.PermissionPolicy'
|
||||
|
||||
class ErrorDomain(int): ...
|
||||
QtNetwork = ... # type: 'QWebPage.ErrorDomain'
|
||||
Http = ... # type: 'QWebPage.ErrorDomain'
|
||||
WebKit = ... # type: 'QWebPage.ErrorDomain'
|
||||
|
||||
class Extension(int): ...
|
||||
ChooseMultipleFilesExtension = ... # type: 'QWebPage.Extension'
|
||||
ErrorPageExtension = ... # type: 'QWebPage.Extension'
|
||||
|
||||
class WebWindowType(int): ...
|
||||
WebBrowserWindow = ... # type: 'QWebPage.WebWindowType'
|
||||
WebModalDialog = ... # type: 'QWebPage.WebWindowType'
|
||||
|
||||
class LinkDelegationPolicy(int): ...
|
||||
DontDelegateLinks = ... # type: 'QWebPage.LinkDelegationPolicy'
|
||||
DelegateExternalLinks = ... # type: 'QWebPage.LinkDelegationPolicy'
|
||||
DelegateAllLinks = ... # type: 'QWebPage.LinkDelegationPolicy'
|
||||
|
||||
class FindFlag(int): ...
|
||||
FindBackward = ... # type: 'QWebPage.FindFlag'
|
||||
FindCaseSensitively = ... # type: 'QWebPage.FindFlag'
|
||||
FindWrapsAroundDocument = ... # type: 'QWebPage.FindFlag'
|
||||
HighlightAllOccurrences = ... # type: 'QWebPage.FindFlag'
|
||||
FindAtWordBeginningsOnly = ... # type: 'QWebPage.FindFlag'
|
||||
TreatMedialCapitalAsWordBeginning = ... # type: 'QWebPage.FindFlag'
|
||||
FindBeginsInSelection = ... # type: 'QWebPage.FindFlag'
|
||||
|
||||
class WebAction(int): ...
|
||||
NoWebAction = ... # type: 'QWebPage.WebAction'
|
||||
OpenLink = ... # type: 'QWebPage.WebAction'
|
||||
OpenLinkInNewWindow = ... # type: 'QWebPage.WebAction'
|
||||
OpenFrameInNewWindow = ... # type: 'QWebPage.WebAction'
|
||||
DownloadLinkToDisk = ... # type: 'QWebPage.WebAction'
|
||||
CopyLinkToClipboard = ... # type: 'QWebPage.WebAction'
|
||||
OpenImageInNewWindow = ... # type: 'QWebPage.WebAction'
|
||||
DownloadImageToDisk = ... # type: 'QWebPage.WebAction'
|
||||
CopyImageToClipboard = ... # type: 'QWebPage.WebAction'
|
||||
Back = ... # type: 'QWebPage.WebAction'
|
||||
Forward = ... # type: 'QWebPage.WebAction'
|
||||
Stop = ... # type: 'QWebPage.WebAction'
|
||||
Reload = ... # type: 'QWebPage.WebAction'
|
||||
Cut = ... # type: 'QWebPage.WebAction'
|
||||
Copy = ... # type: 'QWebPage.WebAction'
|
||||
Paste = ... # type: 'QWebPage.WebAction'
|
||||
Undo = ... # type: 'QWebPage.WebAction'
|
||||
Redo = ... # type: 'QWebPage.WebAction'
|
||||
MoveToNextChar = ... # type: 'QWebPage.WebAction'
|
||||
MoveToPreviousChar = ... # type: 'QWebPage.WebAction'
|
||||
MoveToNextWord = ... # type: 'QWebPage.WebAction'
|
||||
MoveToPreviousWord = ... # type: 'QWebPage.WebAction'
|
||||
MoveToNextLine = ... # type: 'QWebPage.WebAction'
|
||||
MoveToPreviousLine = ... # type: 'QWebPage.WebAction'
|
||||
MoveToStartOfLine = ... # type: 'QWebPage.WebAction'
|
||||
MoveToEndOfLine = ... # type: 'QWebPage.WebAction'
|
||||
MoveToStartOfBlock = ... # type: 'QWebPage.WebAction'
|
||||
MoveToEndOfBlock = ... # type: 'QWebPage.WebAction'
|
||||
MoveToStartOfDocument = ... # type: 'QWebPage.WebAction'
|
||||
MoveToEndOfDocument = ... # type: 'QWebPage.WebAction'
|
||||
SelectNextChar = ... # type: 'QWebPage.WebAction'
|
||||
SelectPreviousChar = ... # type: 'QWebPage.WebAction'
|
||||
SelectNextWord = ... # type: 'QWebPage.WebAction'
|
||||
SelectPreviousWord = ... # type: 'QWebPage.WebAction'
|
||||
SelectNextLine = ... # type: 'QWebPage.WebAction'
|
||||
SelectPreviousLine = ... # type: 'QWebPage.WebAction'
|
||||
SelectStartOfLine = ... # type: 'QWebPage.WebAction'
|
||||
SelectEndOfLine = ... # type: 'QWebPage.WebAction'
|
||||
SelectStartOfBlock = ... # type: 'QWebPage.WebAction'
|
||||
SelectEndOfBlock = ... # type: 'QWebPage.WebAction'
|
||||
SelectStartOfDocument = ... # type: 'QWebPage.WebAction'
|
||||
SelectEndOfDocument = ... # type: 'QWebPage.WebAction'
|
||||
DeleteStartOfWord = ... # type: 'QWebPage.WebAction'
|
||||
DeleteEndOfWord = ... # type: 'QWebPage.WebAction'
|
||||
SetTextDirectionDefault = ... # type: 'QWebPage.WebAction'
|
||||
SetTextDirectionLeftToRight = ... # type: 'QWebPage.WebAction'
|
||||
SetTextDirectionRightToLeft = ... # type: 'QWebPage.WebAction'
|
||||
ToggleBold = ... # type: 'QWebPage.WebAction'
|
||||
ToggleItalic = ... # type: 'QWebPage.WebAction'
|
||||
ToggleUnderline = ... # type: 'QWebPage.WebAction'
|
||||
InspectElement = ... # type: 'QWebPage.WebAction'
|
||||
InsertParagraphSeparator = ... # type: 'QWebPage.WebAction'
|
||||
InsertLineSeparator = ... # type: 'QWebPage.WebAction'
|
||||
SelectAll = ... # type: 'QWebPage.WebAction'
|
||||
ReloadAndBypassCache = ... # type: 'QWebPage.WebAction'
|
||||
PasteAndMatchStyle = ... # type: 'QWebPage.WebAction'
|
||||
RemoveFormat = ... # type: 'QWebPage.WebAction'
|
||||
ToggleStrikethrough = ... # type: 'QWebPage.WebAction'
|
||||
ToggleSubscript = ... # type: 'QWebPage.WebAction'
|
||||
ToggleSuperscript = ... # type: 'QWebPage.WebAction'
|
||||
InsertUnorderedList = ... # type: 'QWebPage.WebAction'
|
||||
InsertOrderedList = ... # type: 'QWebPage.WebAction'
|
||||
Indent = ... # type: 'QWebPage.WebAction'
|
||||
Outdent = ... # type: 'QWebPage.WebAction'
|
||||
AlignCenter = ... # type: 'QWebPage.WebAction'
|
||||
AlignJustified = ... # type: 'QWebPage.WebAction'
|
||||
AlignLeft = ... # type: 'QWebPage.WebAction'
|
||||
AlignRight = ... # type: 'QWebPage.WebAction'
|
||||
StopScheduledPageRefresh = ... # type: 'QWebPage.WebAction'
|
||||
CopyImageUrlToClipboard = ... # type: 'QWebPage.WebAction'
|
||||
OpenLinkInThisWindow = ... # type: 'QWebPage.WebAction'
|
||||
DownloadMediaToDisk = ... # type: 'QWebPage.WebAction'
|
||||
CopyMediaUrlToClipboard = ... # type: 'QWebPage.WebAction'
|
||||
ToggleMediaControls = ... # type: 'QWebPage.WebAction'
|
||||
ToggleMediaLoop = ... # type: 'QWebPage.WebAction'
|
||||
ToggleMediaPlayPause = ... # type: 'QWebPage.WebAction'
|
||||
ToggleMediaMute = ... # type: 'QWebPage.WebAction'
|
||||
ToggleVideoFullscreen = ... # type: 'QWebPage.WebAction'
|
||||
|
||||
class NavigationType(int): ...
|
||||
NavigationTypeLinkClicked = ... # type: 'QWebPage.NavigationType'
|
||||
NavigationTypeFormSubmitted = ... # type: 'QWebPage.NavigationType'
|
||||
NavigationTypeBackOrForward = ... # type: 'QWebPage.NavigationType'
|
||||
NavigationTypeReload = ... # type: 'QWebPage.NavigationType'
|
||||
NavigationTypeFormResubmitted = ... # type: 'QWebPage.NavigationType'
|
||||
NavigationTypeOther = ... # type: 'QWebPage.NavigationType'
|
||||
|
||||
class FindFlags(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, f: typing.Union['QWebPage.FindFlags', 'QWebPage.FindFlag']) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPage.FindFlags') -> None: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> int: ...
|
||||
def __invert__(self) -> 'QWebPage.FindFlags': ...
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
class ExtensionOption(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPage.ExtensionOption') -> None: ...
|
||||
|
||||
class ExtensionReturn(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPage.ExtensionReturn') -> None: ...
|
||||
|
||||
class ChooseMultipleFilesExtensionOption('QWebPage.ExtensionOption'):
|
||||
|
||||
parentFrame = ... # type: QWebFrame
|
||||
suggestedFileNames = ... # type: typing.Iterable[str]
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPage.ChooseMultipleFilesExtensionOption') -> None: ...
|
||||
|
||||
class ChooseMultipleFilesExtensionReturn('QWebPage.ExtensionReturn'):
|
||||
|
||||
fileNames = ... # type: typing.Iterable[str]
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPage.ChooseMultipleFilesExtensionReturn') -> None: ...
|
||||
|
||||
class ErrorPageExtensionOption('QWebPage.ExtensionOption'):
|
||||
|
||||
domain = ... # type: 'QWebPage.ErrorDomain'
|
||||
error = ... # type: int
|
||||
errorString = ... # type: str
|
||||
frame = ... # type: QWebFrame
|
||||
url = ... # type: QtCore.QUrl
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPage.ErrorPageExtensionOption') -> None: ...
|
||||
|
||||
class ErrorPageExtensionReturn('QWebPage.ExtensionReturn'):
|
||||
|
||||
baseUrl = ... # type: QtCore.QUrl
|
||||
content = ... # type: typing.Union[QtCore.QByteArray, bytes, bytearray]
|
||||
contentType = ... # type: str
|
||||
encoding = ... # type: str
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, a0: 'QWebPage.ErrorPageExtensionReturn') -> None: ...
|
||||
|
||||
class ViewportAttributes(sip.simplewrapper):
|
||||
|
||||
@typing.overload
|
||||
def __init__(self) -> None: ...
|
||||
@typing.overload
|
||||
def __init__(self, other: 'QWebPage.ViewportAttributes') -> None: ...
|
||||
|
||||
def size(self) -> QtCore.QSizeF: ...
|
||||
def isValid(self) -> bool: ...
|
||||
def isUserScalable(self) -> bool: ...
|
||||
def devicePixelRatio(self) -> float: ...
|
||||
def maximumScaleFactor(self) -> float: ...
|
||||
def minimumScaleFactor(self) -> float: ...
|
||||
def initialScaleFactor(self) -> float: ...
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
||||
|
||||
def setVisibilityState(self, a0: 'QWebPage.VisibilityState') -> None: ...
|
||||
def visibilityState(self) -> 'QWebPage.VisibilityState': ...
|
||||
def featurePermissionRequestCanceled(self, frame: QWebFrame, feature: 'QWebPage.Feature') -> None: ...
|
||||
def featurePermissionRequested(self, frame: QWebFrame, feature: 'QWebPage.Feature') -> None: ...
|
||||
def viewportChangeRequested(self) -> None: ...
|
||||
def applicationCacheQuotaExceeded(self, origin: QtWebKit.QWebSecurityOrigin, defaultOriginQuota: int, totalSpaceNeeded: int) -> None: ...
|
||||
def supportsContentType(self, mimeType: str) -> bool: ...
|
||||
def supportedContentTypes(self) -> typing.List[str]: ...
|
||||
def setFeaturePermission(self, frame: QWebFrame, feature: 'QWebPage.Feature', policy: 'QWebPage.PermissionPolicy') -> None: ...
|
||||
def setActualVisibleContentRect(self, rect: QtCore.QRect) -> None: ...
|
||||
def viewportAttributesForSize(self, availableSize: QtCore.QSize) -> 'QWebPage.ViewportAttributes': ...
|
||||
def selectedHtml(self) -> str: ...
|
||||
def hasSelection(self) -> bool: ...
|
||||
def shouldInterruptJavaScript(self) -> bool: ...
|
||||
def setPreferredContentsSize(self, size: QtCore.QSize) -> None: ...
|
||||
def preferredContentsSize(self) -> QtCore.QSize: ...
|
||||
def frameAt(self, pos: QtCore.QPoint) -> QWebFrame: ...
|
||||
def restoreFrameStateRequested(self, frame: QWebFrame) -> None: ...
|
||||
def saveFrameStateRequested(self, frame: QWebFrame, item: QtWebKit.QWebHistoryItem) -> None: ...
|
||||
def databaseQuotaExceeded(self, frame: QWebFrame, databaseName: str) -> None: ...
|
||||
def contentsChanged(self) -> None: ...
|
||||
def createStandardContextMenu(self) -> QtWidgets.QMenu: ...
|
||||
def isContentEditable(self) -> bool: ...
|
||||
def setContentEditable(self, editable: bool) -> None: ...
|
||||
def userAgentForUrl(self, url: QtCore.QUrl) -> str: ...
|
||||
def javaScriptConsoleMessage(self, message: str, lineNumber: int, sourceID: str) -> None: ...
|
||||
def javaScriptPrompt(self, originatingFrame: QWebFrame, msg: str, defaultValue: str) -> typing.Tuple[bool, str]: ...
|
||||
def javaScriptConfirm(self, originatingFrame: QWebFrame, msg: str) -> bool: ...
|
||||
def javaScriptAlert(self, originatingFrame: QWebFrame, msg: str) -> None: ...
|
||||
def chooseFile(self, originatingFrame: QWebFrame, oldFile: str) -> str: ...
|
||||
def acceptNavigationRequest(self, frame: QWebFrame, request: QtNetwork_.QNetworkRequest, type: 'QWebPage.NavigationType') -> bool: ...
|
||||
def createPlugin(self, classid: str, url: QtCore.QUrl, paramNames: typing.Iterable[str], paramValues: typing.Iterable[str]) -> QtCore.QObject: ...
|
||||
def createWindow(self, type: 'QWebPage.WebWindowType') -> 'QWebPage': ...
|
||||
def microFocusChanged(self) -> None: ...
|
||||
def downloadRequested(self, request: QtNetwork_.QNetworkRequest) -> None: ...
|
||||
def unsupportedContent(self, reply: QtNetwork_.QNetworkReply) -> None: ...
|
||||
def menuBarVisibilityChangeRequested(self, visible: bool) -> None: ...
|
||||
def statusBarVisibilityChangeRequested(self, visible: bool) -> None: ...
|
||||
def toolBarVisibilityChangeRequested(self, visible: bool) -> None: ...
|
||||
def linkClicked(self, url: QtCore.QUrl) -> None: ...
|
||||
def printRequested(self, frame: QWebFrame) -> None: ...
|
||||
def windowCloseRequested(self) -> None: ...
|
||||
def scrollRequested(self, dx: int, dy: int, scrollViewRect: QtCore.QRect) -> None: ...
|
||||
def repaintRequested(self, dirtyRect: QtCore.QRect) -> None: ...
|
||||
def geometryChangeRequested(self, geom: QtCore.QRect) -> None: ...
|
||||
def frameCreated(self, frame: QWebFrame) -> None: ...
|
||||
def selectionChanged(self) -> None: ...
|
||||
def statusBarMessage(self, text: str) -> None: ...
|
||||
def linkHovered(self, link: str, title: str, textContent: str) -> None: ...
|
||||
def loadStarted(self) -> None: ...
|
||||
def loadProgress(self, progress: int) -> None: ...
|
||||
def loadFinished(self, ok: bool) -> None: ...
|
||||
def supportsExtension(self, extension: 'QWebPage.Extension') -> bool: ...
|
||||
def extension(self, extension: 'QWebPage.Extension', option: typing.Optional['QWebPage.ExtensionOption'] = ..., output: typing.Optional['QWebPage.ExtensionReturn'] = ...) -> bool: ...
|
||||
def updatePositionDependentActions(self, pos: QtCore.QPoint) -> None: ...
|
||||
def swallowContextMenuEvent(self, event: QtGui.QContextMenuEvent) -> bool: ...
|
||||
def palette(self) -> QtGui.QPalette: ...
|
||||
def setPalette(self, palette: QtGui.QPalette) -> None: ...
|
||||
def linkDelegationPolicy(self) -> 'QWebPage.LinkDelegationPolicy': ...
|
||||
def setLinkDelegationPolicy(self, policy: 'QWebPage.LinkDelegationPolicy') -> None: ...
|
||||
def forwardUnsupportedContent(self) -> bool: ...
|
||||
def setForwardUnsupportedContent(self, forward: bool) -> None: ...
|
||||
def findText(self, subString: str, options: 'QWebPage.FindFlags' = ...) -> bool: ...
|
||||
def inputMethodQuery(self, property: QtCore.Qt.InputMethodQuery) -> typing.Any: ...
|
||||
def focusNextPrevChild(self, next: bool) -> bool: ...
|
||||
def event(self, a0: QtCore.QEvent) -> bool: ...
|
||||
def setViewportSize(self, size: QtCore.QSize) -> None: ...
|
||||
def viewportSize(self) -> QtCore.QSize: ...
|
||||
def triggerAction(self, action: 'QWebPage.WebAction', checked: bool = ...) -> None: ...
|
||||
def action(self, action: 'QWebPage.WebAction') -> QtWidgets.QAction: ...
|
||||
def selectedText(self) -> str: ...
|
||||
def bytesReceived(self) -> int: ...
|
||||
def totalBytes(self) -> int: ...
|
||||
def pluginFactory(self) -> QtWebKit.QWebPluginFactory: ...
|
||||
def setPluginFactory(self, factory: QtWebKit.QWebPluginFactory) -> None: ...
|
||||
def networkAccessManager(self) -> QtNetwork_.QNetworkAccessManager: ...
|
||||
def setNetworkAccessManager(self, manager: QtNetwork_.QNetworkAccessManager) -> None: ...
|
||||
def undoStack(self) -> QtWidgets.QUndoStack: ...
|
||||
def isModified(self) -> bool: ...
|
||||
def view(self) -> QtWidgets.QWidget: ...
|
||||
def setView(self, view: QtWidgets.QWidget) -> None: ...
|
||||
def settings(self) -> QtWebKit.QWebSettings: ...
|
||||
def history(self) -> QtWebKit.QWebHistory: ...
|
||||
def currentFrame(self) -> QWebFrame: ...
|
||||
def mainFrame(self) -> QWebFrame: ...
|
||||
|
||||
|
||||
class QWebView(QtWidgets.QWidget):
|
||||
|
||||
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
|
||||
|
||||
def selectedHtml(self) -> str: ...
|
||||
def hasSelection(self) -> bool: ...
|
||||
def setRenderHint(self, hint: QtGui.QPainter.RenderHint, enabled: bool = ...) -> None: ...
|
||||
def setRenderHints(self, hints: QtGui.QPainter.RenderHints) -> None: ...
|
||||
def renderHints(self) -> QtGui.QPainter.RenderHints: ...
|
||||
def setZoomFactor(self, factor: float) -> None: ...
|
||||
def zoomFactor(self) -> float: ...
|
||||
def focusNextPrevChild(self, next: bool) -> bool: ...
|
||||
def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ...
|
||||
def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ...
|
||||
def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ...
|
||||
def dropEvent(self, a0: QtGui.QDropEvent) -> None: ...
|
||||
def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ...
|
||||
def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ...
|
||||
def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ...
|
||||
def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ...
|
||||
def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ...
|
||||
def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ...
|
||||
def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ...
|
||||
def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ...
|
||||
def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ...
|
||||
def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ...
|
||||
def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ...
|
||||
def changeEvent(self, a0: QtCore.QEvent) -> None: ...
|
||||
def paintEvent(self, ev: QtGui.QPaintEvent) -> None: ...
|
||||
def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ...
|
||||
def createWindow(self, type: QWebPage.WebWindowType) -> 'QWebView': ...
|
||||
def urlChanged(self, url: QtCore.QUrl) -> None: ...
|
||||
def iconChanged(self) -> None: ...
|
||||
def selectionChanged(self) -> None: ...
|
||||
def linkClicked(self, url: QtCore.QUrl) -> None: ...
|
||||
def statusBarMessage(self, text: str) -> None: ...
|
||||
def titleChanged(self, title: str) -> None: ...
|
||||
def loadFinished(self, a0: bool) -> None: ...
|
||||
def loadProgress(self, progress: int) -> None: ...
|
||||
def loadStarted(self) -> None: ...
|
||||
def print(self, printer: QtPrintSupport.QPrinter) -> None: ...
|
||||
def print_(self, printer: QtPrintSupport.QPrinter) -> None: ...
|
||||
def reload(self) -> None: ...
|
||||
def forward(self) -> None: ...
|
||||
def back(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
def event(self, a0: QtCore.QEvent) -> bool: ...
|
||||
def findText(self, subString: str, options: QWebPage.FindFlags = ...) -> bool: ...
|
||||
def sizeHint(self) -> QtCore.QSize: ...
|
||||
def inputMethodQuery(self, property: QtCore.Qt.InputMethodQuery) -> typing.Any: ...
|
||||
def isModified(self) -> bool: ...
|
||||
def triggerPageAction(self, action: QWebPage.WebAction, checked: bool = ...) -> None: ...
|
||||
def pageAction(self, action: QWebPage.WebAction) -> QtWidgets.QAction: ...
|
||||
def selectedText(self) -> str: ...
|
||||
def icon(self) -> QtGui.QIcon: ...
|
||||
def url(self) -> QtCore.QUrl: ...
|
||||
def setUrl(self, url: QtCore.QUrl) -> None: ...
|
||||
def title(self) -> str: ...
|
||||
def settings(self) -> QtWebKit.QWebSettings: ...
|
||||
def history(self) -> QtWebKit.QWebHistory: ...
|
||||
def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, url: QtCore.QUrl) -> None: ...
|
||||
@typing.overload
|
||||
def load(self, request: QtNetwork_.QNetworkRequest, operation: QtNetwork_.QNetworkAccessManager.Operation = ..., body: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ...
|
||||
def setPage(self, page: QWebPage) -> None: ...
|
||||
def page(self) -> QWebPage: ...
|
||||
@@ -0,0 +1,207 @@
|
||||
# The PEP 484 type hints stub file for the QtWebSockets module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtNetwork
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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: ...
|
||||
|
||||
@staticmethod
|
||||
def maxOutgoingFrameSize() -> int: ...
|
||||
def outgoingFrameSize(self) -> int: ...
|
||||
def setOutgoingFrameSize(self, outgoingFrameSize: int) -> None: ...
|
||||
@staticmethod
|
||||
def maxIncomingFrameSize() -> int: ...
|
||||
@staticmethod
|
||||
def maxIncomingMessageSize() -> int: ...
|
||||
def maxAllowedIncomingMessageSize(self) -> int: ...
|
||||
def setMaxAllowedIncomingMessageSize(self, maxAllowedIncomingMessageSize: int) -> None: ...
|
||||
def maxAllowedIncomingFrameSize(self) -> int: ...
|
||||
def setMaxAllowedIncomingFrameSize(self, maxAllowedIncomingFrameSize: int) -> 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 handshakeTimeoutMS(self) -> int: ...
|
||||
def setHandshakeTimeout(self, msec: int) -> 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
@@ -0,0 +1,72 @@
|
||||
# The PEP 484 type hints stub file for the QtX11Extras module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
|
||||
|
||||
|
||||
class Display(sip.simplewrapper): ...
|
||||
|
||||
|
||||
class xcb_connection_t(sip.simplewrapper): ...
|
||||
|
||||
|
||||
class QX11Info(sip.simplewrapper):
|
||||
|
||||
def __init__(self, a0: 'QX11Info') -> None: ...
|
||||
|
||||
@staticmethod
|
||||
def connection() -> xcb_connection_t: ...
|
||||
@staticmethod
|
||||
def display() -> Display: ...
|
||||
@staticmethod
|
||||
def setNextStartupId(id: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
|
||||
@staticmethod
|
||||
def nextStartupId() -> QtCore.QByteArray: ...
|
||||
@staticmethod
|
||||
def getTimestamp() -> int: ...
|
||||
@staticmethod
|
||||
def setAppUserTime(time: int) -> None: ...
|
||||
@staticmethod
|
||||
def setAppTime(time: int) -> None: ...
|
||||
@staticmethod
|
||||
def appUserTime() -> int: ...
|
||||
@staticmethod
|
||||
def appTime() -> int: ...
|
||||
@staticmethod
|
||||
def appScreen() -> int: ...
|
||||
@staticmethod
|
||||
def appRootWindow(screen: int = ...) -> int: ...
|
||||
@staticmethod
|
||||
def appDpiY(screen: int = ...) -> int: ...
|
||||
@staticmethod
|
||||
def appDpiX(screen: int = ...) -> int: ...
|
||||
@staticmethod
|
||||
def isPlatformX11() -> bool: ...
|
||||
@@ -0,0 +1,700 @@
|
||||
# The PEP 484 type hints stub file for the QtXml module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
from PyQt5 import sip
|
||||
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
|
||||
|
||||
|
||||
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]: ...
|
||||
@typing.overload
|
||||
def setContent(self, reader: QtCore.QXmlStreamReader, namespaceProcessing: bool) -> 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: ...
|
||||
|
||||
|
||||
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: ...
|
||||
@@ -0,0 +1,367 @@
|
||||
# The PEP 484 type hints stub file for the QtXmlPatterns module.
|
||||
#
|
||||
# Generated by SIP 5.4.0
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
from PyQt5 import sip
|
||||
from PyQt5 import QtNetwork
|
||||
from PyQt5 import QtCore
|
||||
|
||||
# Support for QDate, QDateTime and QTime.
|
||||
import datetime
|
||||
|
||||
# Convenient type aliases.
|
||||
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: ...
|
||||
@@ -0,0 +1,5 @@
|
||||
__version__ = "5.15.2.0"
|
||||
|
||||
|
||||
class QMainWindow:
|
||||
pass
|
||||
@@ -0,0 +1,113 @@
|
||||
# Copyright (c) 2019, Riverbank Computing Limited
|
||||
# All rights reserved.
|
||||
#
|
||||
# This copy of SIP is licensed for use under the terms of the SIP License
|
||||
# Agreement. See the file LICENSE for more details.
|
||||
#
|
||||
# This copy of SIP may also used under the terms of the GNU General Public
|
||||
# License v2 or v3 as published by the Free Software Foundation which can be
|
||||
# found in the files LICENSE-GPL2 and LICENSE-GPL3 included in this package.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
from typing import overload, Any, Generic, Iterable, Sequence, TypeVar, Union
|
||||
|
||||
|
||||
# Constants.
|
||||
SIP_VERSION = ... # type: int
|
||||
SIP_VERSION_STR = ... # type: str
|
||||
|
||||
|
||||
# The bases for SIP generated types.
|
||||
class wrappertype: ...
|
||||
class simplewrapper: ...
|
||||
class wrapper(simplewrapper): ...
|
||||
|
||||
|
||||
# PEP 484 has no explicit support for the buffer protocol so we just name types
|
||||
# we know that implement it.
|
||||
Buffer = Union['array', 'voidptr', str, bytes, bytearray]
|
||||
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
# The array type.
|
||||
class array(Sequence[_T], Generic[_T]):
|
||||
@overload
|
||||
def __delitem__(self, key: int) -> None: ...
|
||||
@overload
|
||||
def __delitem__(self, key: slice) -> None: ...
|
||||
@overload
|
||||
def __getitem__(self, key: int) -> _T: ...
|
||||
@overload
|
||||
def __getitem__(self, key: slice) -> "array[_T]": ...
|
||||
def __len__(self) -> int: ...
|
||||
@overload
|
||||
def __setitem__(self, key: int, value: _T) -> None: ...
|
||||
@overload
|
||||
def __setitem__(self, key: slice, value: Iterable[_T]) -> None: ...
|
||||
|
||||
|
||||
# The voidptr type.
|
||||
class voidptr:
|
||||
|
||||
def __init__(self, addr: Union[int, None, bytes, bytearray, 'voidptr'], size: int = -1, writeable: bool = True) -> None: ...
|
||||
|
||||
def __int__(self) -> int: ...
|
||||
|
||||
@overload
|
||||
def __getitem__(self, i: int) -> bytes: ...
|
||||
|
||||
@overload
|
||||
def __getitem__(self, s: slice) -> 'voidptr': ...
|
||||
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
def __setitem__(self, i: Union[int, slice], v: Buffer) -> None: ...
|
||||
|
||||
def asarray(self, size: int = -1) -> array[int]: ...
|
||||
|
||||
def ascapsule(self) -> Any: ...
|
||||
|
||||
def asstring(self, size: int = -1) -> bytes: ...
|
||||
|
||||
def getsize(self) -> int: ...
|
||||
|
||||
def getwriteable(self) -> bool: ...
|
||||
|
||||
def setsize(self, size: int) -> None: ...
|
||||
|
||||
def setwriteable(self, bool: bool) -> None: ...
|
||||
|
||||
|
||||
# Remaining functions.
|
||||
def assign(obj: simplewrapper, other: simplewrapper) -> None: ...
|
||||
def cast(obj: simplewrapper, type: wrappertype) -> simplewrapper: ...
|
||||
def delete(obj: simplewrapper) -> None: ...
|
||||
def dump(obj: simplewrapper) -> None: ...
|
||||
def enableautoconversion(type: wrappertype, enable: bool) -> bool: ...
|
||||
def enableoverflowchecking(enable: bool) -> bool: ...
|
||||
def getapi(name: str) -> int: ...
|
||||
def isdeleted(obj: simplewrapper) -> bool: ...
|
||||
def ispycreated(obj: simplewrapper) -> bool: ...
|
||||
def ispyowned(obj: simplewrapper) -> bool: ...
|
||||
def setapi(name: str, version: int) -> None: ...
|
||||
def setdeleted(obj: simplewrapper) -> None: ...
|
||||
def setdestroyonexit(destroy: bool) -> None: ...
|
||||
def settracemask(mask: int) -> None: ...
|
||||
def transferback(obj: wrapper) -> None: ...
|
||||
def transferto(obj: wrapper, owner: wrapper) -> None: ...
|
||||
def unwrapinstance(obj: simplewrapper) -> None: ...
|
||||
def wrapinstance(addr: int, type: wrappertype) -> simplewrapper: ...
|
||||
Reference in New Issue
Block a user