Tabula Rasa

main
Ben Niemann 1 year ago
parent 4e2426d88e
commit 0ce8b75e20

10
.gitignore vendored

@ -1,13 +1,5 @@
__pycache__/
/build
/3rdparty/*/build
/vmtests
/ENV
*.pyc
*~
.nobackup
/.venv
/website/_build/
/website/_serve/
/.waf*
/.lock-waf*
/venv/

@ -1,3 +0,0 @@
-/build
-/venv
-/vmtests

@ -1,2 +0,0 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

File diff suppressed because it is too large Load Diff

@ -1,511 +0,0 @@
# The PEP 484 type hints stub file for the QtDBus module.
#
# Generated by SIP 4.19.8
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QDBusAbstractAdaptor(QtCore.QObject):
def __init__(self, parent: QtCore.QObject) -> None: ...
def autoRelaySignals(self) -> bool: ...
def setAutoRelaySignals(self, enable: bool) -> None: ...
class QDBusAbstractInterface(QtCore.QObject):
def __init__(self, service: str, path: str, interface: str, connection: 'QDBusConnection', parent: QtCore.QObject) -> None: ...
def disconnectNotify(self, signal: QtCore.QMetaMethod) -> None: ...
def connectNotify(self, signal: QtCore.QMetaMethod) -> None: ...
def asyncCallWithArgumentList(self, method: str, args: typing.Iterable[typing.Any]) -> 'QDBusPendingCall': ...
def asyncCall(self, method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusPendingCall': ...
@typing.overload
def callWithCallback(self, method: str, args: typing.Iterable[typing.Any], returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT) -> bool: ...
@typing.overload
def callWithCallback(self, method: str, args: typing.Iterable[typing.Any], slot: PYQT_SLOT) -> bool: ...
def callWithArgumentList(self, mode: 'QDBus.CallMode', method: str, args: typing.Iterable[typing.Any]) -> 'QDBusMessage': ...
@typing.overload
def call(self, method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusMessage': ...
@typing.overload
def call(self, mode: 'QDBus.CallMode', method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusMessage': ...
def timeout(self) -> int: ...
def setTimeout(self, timeout: int) -> None: ...
def lastError(self) -> 'QDBusError': ...
def interface(self) -> str: ...
def path(self) -> str: ...
def service(self) -> str: ...
def connection(self) -> 'QDBusConnection': ...
def isValid(self) -> bool: ...
class QDBusArgument(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusArgument') -> None: ...
@typing.overload
def __init__(self, arg: typing.Any, id: int = ...) -> None: ...
def swap(self, other: 'QDBusArgument') -> None: ...
def endMapEntry(self) -> None: ...
def beginMapEntry(self) -> None: ...
def endMap(self) -> None: ...
def beginMap(self, kid: int, vid: int) -> None: ...
def endArray(self) -> None: ...
def beginArray(self, id: int) -> None: ...
def endStructure(self) -> None: ...
def beginStructure(self) -> None: ...
def add(self, arg: typing.Any, id: int = ...) -> None: ...
class QDBus(sip.simplewrapper):
class CallMode(int): ...
NoBlock = ... # type: 'QDBus.CallMode'
Block = ... # type: 'QDBus.CallMode'
BlockWithGui = ... # type: 'QDBus.CallMode'
AutoDetect = ... # type: 'QDBus.CallMode'
class QDBusConnection(sip.simplewrapper):
class ConnectionCapability(int): ...
UnixFileDescriptorPassing = ... # type: 'QDBusConnection.ConnectionCapability'
class UnregisterMode(int): ...
UnregisterNode = ... # type: 'QDBusConnection.UnregisterMode'
UnregisterTree = ... # type: 'QDBusConnection.UnregisterMode'
class RegisterOption(int): ...
ExportAdaptors = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableContents = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableContents = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportAllProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportAllInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportAllContents = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSignal = ... # type: 'QDBusConnection.RegisterOption'
ExportChildObjects = ... # type: 'QDBusConnection.RegisterOption'
class BusType(int): ...
SessionBus = ... # type: 'QDBusConnection.BusType'
SystemBus = ... # type: 'QDBusConnection.BusType'
ActivationBus = ... # type: 'QDBusConnection.BusType'
class RegisterOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusConnection.RegisterOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusConnection.RegisterOptions': ...
def __int__(self) -> int: ...
class ConnectionCapabilities(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusConnection.ConnectionCapabilities', 'QDBusConnection.ConnectionCapability']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusConnection.ConnectionCapabilities') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusConnection.ConnectionCapabilities': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self, name: str) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusConnection') -> None: ...
def swap(self, other: 'QDBusConnection') -> None: ...
@staticmethod
def sender() -> 'QDBusConnection': ...
@staticmethod
def systemBus() -> 'QDBusConnection': ...
@staticmethod
def sessionBus() -> 'QDBusConnection': ...
@staticmethod
def localMachineId() -> QtCore.QByteArray: ...
@staticmethod
def disconnectFromPeer(name: str) -> None: ...
@staticmethod
def disconnectFromBus(name: str) -> None: ...
@staticmethod
def connectToPeer(address: str, name: str) -> 'QDBusConnection': ...
@typing.overload
@staticmethod
def connectToBus(type: 'QDBusConnection.BusType', name: str) -> 'QDBusConnection': ...
@typing.overload
@staticmethod
def connectToBus(address: str, name: str) -> 'QDBusConnection': ...
def interface(self) -> 'QDBusConnectionInterface': ...
def unregisterService(self, serviceName: str) -> bool: ...
def registerService(self, serviceName: str) -> bool: ...
def objectRegisteredAt(self, path: str) -> QtCore.QObject: ...
def unregisterObject(self, path: str, mode: 'QDBusConnection.UnregisterMode' = ...) -> None: ...
@typing.overload
def registerObject(self, path: str, object: QtCore.QObject, options: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption'] = ...) -> bool: ...
@typing.overload
def registerObject(self, path: str, interface: str, object: QtCore.QObject, options: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption'] = ...) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, argumentMatch: typing.Iterable[str], signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, argumentMatch: typing.Iterable[str], signature: str, slot: PYQT_SLOT) -> bool: ...
def asyncCall(self, message: 'QDBusMessage', timeout: int = ...) -> 'QDBusPendingCall': ...
def call(self, message: 'QDBusMessage', mode: QDBus.CallMode = ..., timeout: int = ...) -> 'QDBusMessage': ...
def callWithCallback(self, message: 'QDBusMessage', returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT, timeout: int = ...) -> bool: ...
def send(self, message: 'QDBusMessage') -> bool: ...
def connectionCapabilities(self) -> 'QDBusConnection.ConnectionCapabilities': ...
def name(self) -> str: ...
def lastError(self) -> 'QDBusError': ...
def baseService(self) -> str: ...
def isConnected(self) -> bool: ...
class QDBusConnectionInterface(QDBusAbstractInterface):
class RegisterServiceReply(int): ...
ServiceNotRegistered = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
ServiceRegistered = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
ServiceQueued = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
class ServiceReplacementOptions(int): ...
DontAllowReplacement = ... # type: 'QDBusConnectionInterface.ServiceReplacementOptions'
AllowReplacement = ... # type: 'QDBusConnectionInterface.ServiceReplacementOptions'
class ServiceQueueOptions(int): ...
DontQueueService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
QueueService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
ReplaceExistingService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
def disconnectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
def callWithCallbackFailed(self, error: 'QDBusError', call: 'QDBusMessage') -> None: ...
def 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) -> typing.Any: ...
def isServiceRegistered(self, serviceName: str) -> 'QDBusReply': ...
def registeredServiceNames(self) -> typing.Any: ...
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: ...
@staticmethod
def createTargetedSignal(service: str, path: str, interface: str, name: str) -> 'QDBusMessage': ...
def swap(self, other: 'QDBusMessage') -> None: ...
def arguments(self) -> typing.List[typing.Any]: ...
def setArguments(self, arguments: typing.Iterable[typing.Any]) -> None: ...
def autoStartService(self) -> bool: ...
def setAutoStartService(self, enable: bool) -> None: ...
def isDelayedReply(self) -> bool: ...
def setDelayedReply(self, enable: bool) -> None: ...
def isReplyRequired(self) -> bool: ...
def signature(self) -> str: ...
def type(self) -> 'QDBusMessage.MessageType': ...
def errorMessage(self) -> str: ...
def errorName(self) -> str: ...
def member(self) -> str: ...
def interface(self) -> str: ...
def path(self) -> str: ...
def service(self) -> str: ...
@typing.overload
def createErrorReply(self, name: str, msg: str) -> 'QDBusMessage': ...
@typing.overload
def createErrorReply(self, error: QDBusError) -> 'QDBusMessage': ...
@typing.overload
def createErrorReply(self, type: QDBusError.ErrorType, msg: str) -> 'QDBusMessage': ...
@typing.overload
def createReply(self, arguments: typing.Iterable[typing.Any] = ...) -> 'QDBusMessage': ...
@typing.overload
def createReply(self, argument: typing.Any) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(name: str, msg: str) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(error: QDBusError) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(type: QDBusError.ErrorType, msg: str) -> 'QDBusMessage': ...
@staticmethod
def createMethodCall(service: str, path: str, interface: str, method: str) -> 'QDBusMessage': ...
@staticmethod
def createSignal(path: str, interface: str, name: str) -> 'QDBusMessage': ...
class QDBusPendingCall(sip.simplewrapper):
def __init__(self, other: 'QDBusPendingCall') -> None: ...
def swap(self, other: 'QDBusPendingCall') -> None: ...
@staticmethod
def fromCompletedCall(message: QDBusMessage) -> 'QDBusPendingCall': ...
@staticmethod
def fromError(error: QDBusError) -> 'QDBusPendingCall': ...
class QDBusPendingCallWatcher(QtCore.QObject, QDBusPendingCall):
def __init__(self, call: QDBusPendingCall, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def finished(self, watcher: typing.Optional['QDBusPendingCallWatcher'] = ...) -> None: ...
def waitForFinished(self) -> None: ...
def isFinished(self) -> bool: ...
class QDBusServiceWatcher(QtCore.QObject):
class WatchModeFlag(int): ...
WatchForRegistration = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
WatchForUnregistration = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
WatchForOwnerChange = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
class WatchMode(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusServiceWatcher.WatchMode') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusServiceWatcher.WatchMode': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, service: str, connection: QDBusConnection, watchMode: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag'] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def serviceOwnerChanged(self, service: str, oldOwner: str, newOwner: str) -> None: ...
def serviceUnregistered(self, service: str) -> None: ...
def serviceRegistered(self, service: str) -> None: ...
def setConnection(self, connection: QDBusConnection) -> None: ...
def connection(self) -> QDBusConnection: ...
def setWatchMode(self, mode: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ...
def watchMode(self) -> 'QDBusServiceWatcher.WatchMode': ...
def removeWatchedService(self, service: str) -> bool: ...
def addWatchedService(self, newService: str) -> None: ...
def setWatchedServices(self, services: typing.Iterable[str]) -> None: ...
def watchedServices(self) -> typing.List[str]: ...
class QDBusUnixFileDescriptor(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, fileDescriptor: int) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusUnixFileDescriptor') -> None: ...
def swap(self, other: 'QDBusUnixFileDescriptor') -> None: ...
@staticmethod
def isSupported() -> bool: ...
def setFileDescriptor(self, fileDescriptor: int) -> None: ...
def fileDescriptor(self) -> int: ...
def isValid(self) -> bool: ...
class 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: ...
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: ...

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,330 +0,0 @@
# The PEP 484 type hints stub file for the QtOpenGL module.
#
# Generated by SIP 4.19.8
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QGL(sip.simplewrapper):
class FormatOption(int): ...
DoubleBuffer = ... # type: 'QGL.FormatOption'
DepthBuffer = ... # type: 'QGL.FormatOption'
Rgba = ... # type: 'QGL.FormatOption'
AlphaChannel = ... # type: 'QGL.FormatOption'
AccumBuffer = ... # type: 'QGL.FormatOption'
StencilBuffer = ... # type: 'QGL.FormatOption'
StereoBuffers = ... # type: 'QGL.FormatOption'
DirectRendering = ... # type: 'QGL.FormatOption'
HasOverlay = ... # type: 'QGL.FormatOption'
SampleBuffers = ... # type: 'QGL.FormatOption'
SingleBuffer = ... # type: 'QGL.FormatOption'
NoDepthBuffer = ... # type: 'QGL.FormatOption'
ColorIndex = ... # type: 'QGL.FormatOption'
NoAlphaChannel = ... # type: 'QGL.FormatOption'
NoAccumBuffer = ... # type: 'QGL.FormatOption'
NoStencilBuffer = ... # type: 'QGL.FormatOption'
NoStereoBuffers = ... # type: 'QGL.FormatOption'
IndirectRendering = ... # type: 'QGL.FormatOption'
NoOverlay = ... # type: 'QGL.FormatOption'
NoSampleBuffers = ... # type: 'QGL.FormatOption'
DeprecatedFunctions = ... # type: 'QGL.FormatOption'
NoDeprecatedFunctions = ... # type: 'QGL.FormatOption'
class FormatOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGL.FormatOptions', 'QGL.FormatOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGL.FormatOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGL.FormatOptions': ...
def __int__(self) -> int: ...
class QGLFormat(sip.simplewrapper):
class OpenGLContextProfile(int): ...
NoProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
CoreProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
CompatibilityProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
class OpenGLVersionFlag(int): ...
OpenGL_Version_None = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_4 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_5 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_2_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_2_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Common_Version_1_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_CommonLite_Version_1_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Common_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_CommonLite_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Version_2_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
class OpenGLVersionFlags(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGLFormat.OpenGLVersionFlags', 'QGLFormat.OpenGLVersionFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGLFormat.OpenGLVersionFlags') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGLFormat.OpenGLVersionFlags': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, options: typing.Union[QGL.FormatOptions, QGL.FormatOption], plane: int = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QGLFormat') -> None: ...
def profile(self) -> 'QGLFormat.OpenGLContextProfile': ...
def setProfile(self, profile: 'QGLFormat.OpenGLContextProfile') -> None: ...
def minorVersion(self) -> int: ...
def majorVersion(self) -> int: ...
def setVersion(self, major: int, minor: int) -> None: ...
@staticmethod
def openGLVersionFlags() -> 'QGLFormat.OpenGLVersionFlags': ...
def swapInterval(self) -> int: ...
def setSwapInterval(self, interval: int) -> None: ...
def blueBufferSize(self) -> int: ...
def setBlueBufferSize(self, size: int) -> None: ...
def greenBufferSize(self) -> int: ...
def setGreenBufferSize(self, size: int) -> None: ...
def redBufferSize(self) -> int: ...
def setRedBufferSize(self, size: int) -> None: ...
def sampleBuffers(self) -> bool: ...
def hasOverlay(self) -> bool: ...
def directRendering(self) -> bool: ...
def stereo(self) -> bool: ...
def stencil(self) -> bool: ...
def accum(self) -> bool: ...
def alpha(self) -> bool: ...
def rgba(self) -> bool: ...
def depth(self) -> bool: ...
def doubleBuffer(self) -> bool: ...
@staticmethod
def hasOpenGLOverlays() -> bool: ...
@staticmethod
def hasOpenGL() -> bool: ...
@staticmethod
def setDefaultOverlayFormat(f: 'QGLFormat') -> None: ...
@staticmethod
def defaultOverlayFormat() -> 'QGLFormat': ...
@staticmethod
def setDefaultFormat(f: 'QGLFormat') -> None: ...
@staticmethod
def defaultFormat() -> 'QGLFormat': ...
def testOption(self, opt: typing.Union[QGL.FormatOptions, QGL.FormatOption]) -> bool: ...
def setOption(self, opt: typing.Union[QGL.FormatOptions, QGL.FormatOption]) -> None: ...
def setPlane(self, plane: int) -> None: ...
def plane(self) -> int: ...
def setOverlay(self, enable: bool) -> None: ...
def setDirectRendering(self, enable: bool) -> None: ...
def setStereo(self, enable: bool) -> None: ...
def setStencil(self, enable: bool) -> None: ...
def setAccum(self, enable: bool) -> None: ...
def setAlpha(self, enable: bool) -> None: ...
def setRgba(self, enable: bool) -> None: ...
def setDepth(self, enable: bool) -> None: ...
def setDoubleBuffer(self, enable: bool) -> None: ...
def samples(self) -> int: ...
def setSamples(self, numSamples: int) -> None: ...
def setSampleBuffers(self, enable: bool) -> None: ...
def stencilBufferSize(self) -> int: ...
def setStencilBufferSize(self, size: int) -> None: ...
def alphaBufferSize(self) -> int: ...
def setAlphaBufferSize(self, size: int) -> None: ...
def accumBufferSize(self) -> int: ...
def setAccumBufferSize(self, size: int) -> None: ...
def depthBufferSize(self) -> int: ...
def setDepthBufferSize(self, size: int) -> None: ...
class QGLContext(sip.wrapper):
class BindOption(int): ...
NoBindOption = ... # type: 'QGLContext.BindOption'
InvertedYBindOption = ... # type: 'QGLContext.BindOption'
MipmapBindOption = ... # type: 'QGLContext.BindOption'
PremultipliedAlphaBindOption = ... # type: 'QGLContext.BindOption'
LinearFilteringBindOption = ... # type: 'QGLContext.BindOption'
DefaultBindOption = ... # type: 'QGLContext.BindOption'
class BindOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGLContext.BindOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGLContext.BindOptions': ...
def __int__(self) -> int: ...
def __init__(self, format: QGLFormat) -> None: ...
def moveToThread(self, thread: QtCore.QThread) -> None: ...
@staticmethod
def areSharing(context1: 'QGLContext', context2: 'QGLContext') -> bool: ...
def setInitialized(self, on: bool) -> None: ...
def initialized(self) -> bool: ...
def setWindowCreated(self, on: bool) -> None: ...
def windowCreated(self) -> bool: ...
def deviceIsPixmap(self) -> bool: ...
def chooseContext(self, shareContext: typing.Optional['QGLContext'] = ...) -> bool: ...
@staticmethod
def currentContext() -> 'QGLContext': ...
def overlayTransparentColor(self) -> QtGui.QColor: ...
def device(self) -> QtGui.QPaintDevice: ...
def getProcAddress(self, proc: str) -> sip.voidptr: ...
@staticmethod
def textureCacheLimit() -> int: ...
@staticmethod
def setTextureCacheLimit(size: int) -> None: ...
def deleteTexture(self, tx_id: int) -> None: ...
@typing.overload
def drawTexture(self, target: QtCore.QRectF, textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def drawTexture(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, fileName: str) -> int: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int, format: int, options: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int, format: int, options: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> int: ...
def swapBuffers(self) -> None: ...
def doneCurrent(self) -> None: ...
def makeCurrent(self) -> None: ...
def setFormat(self, format: QGLFormat) -> None: ...
def requestedFormat(self) -> QGLFormat: ...
def format(self) -> QGLFormat: ...
def reset(self) -> None: ...
def isSharing(self) -> bool: ...
def isValid(self) -> bool: ...
def create(self, shareContext: typing.Optional['QGLContext'] = ...) -> bool: ...
class QGLWidget(QtWidgets.QWidget):
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
@typing.overload
def __init__(self, context: QGLContext, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
@typing.overload
def __init__(self, format: QGLFormat, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def glDraw(self) -> None: ...
def glInit(self) -> None: ...
def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ...
def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ...
def autoBufferSwap(self) -> bool: ...
def setAutoBufferSwap(self, on: bool) -> None: ...
def paintOverlayGL(self) -> None: ...
def resizeOverlayGL(self, w: int, h: int) -> None: ...
def initializeOverlayGL(self) -> None: ...
def paintGL(self) -> None: ...
def resizeGL(self, w: int, h: int) -> None: ...
def initializeGL(self) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
def updateOverlayGL(self) -> None: ...
def updateGL(self) -> None: ...
def deleteTexture(self, tx_id: int) -> None: ...
@typing.overload
def drawTexture(self, target: QtCore.QRectF, textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def drawTexture(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, fileName: str) -> int: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int, format: int, options: typing.Union[QGLContext.BindOptions, QGLContext.BindOption]) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int, format: int, options: typing.Union[QGLContext.BindOptions, QGLContext.BindOption]) -> int: ...
def paintEngine(self) -> QtGui.QPaintEngine: ...
@typing.overload
def renderText(self, x: int, y: int, str: str, font: QtGui.QFont = ...) -> None: ...
@typing.overload
def renderText(self, x: float, y: float, z: float, str: str, font: QtGui.QFont = ...) -> None: ...
@staticmethod
def convertToGLFormat(img: QtGui.QImage) -> QtGui.QImage: ...
def overlayContext(self) -> QGLContext: ...
def makeOverlayCurrent(self) -> None: ...
def grabFrameBuffer(self, withAlpha: bool = ...) -> QtGui.QImage: ...
def renderPixmap(self, width: int = ..., height: int = ..., useContext: bool = ...) -> QtGui.QPixmap: ...
def setContext(self, context: QGLContext, shareContext: typing.Optional[QGLContext] = ..., deleteOldContext: bool = ...) -> None: ...
def context(self) -> QGLContext: ...
def format(self) -> QGLFormat: ...
def swapBuffers(self) -> None: ...
def doubleBuffer(self) -> bool: ...
def doneCurrent(self) -> None: ...
def makeCurrent(self) -> None: ...
def isSharing(self) -> bool: ...
def isValid(self) -> bool: ...
def qglClearColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
def qglColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...

@ -1,433 +0,0 @@
# The PEP 484 type hints stub file for the QtPrintSupport module.
#
# Generated by SIP 4.19.8
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QAbstractPrintDialog(QtWidgets.QDialog):
class PrintDialogOption(int): ...
None_ = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintToFile = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintSelection = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintPageRange = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintCollateCopies = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintShowPageSize = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintCurrentPage = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
class PrintRange(int): ...
AllPages = ... # type: 'QAbstractPrintDialog.PrintRange'
Selection = ... # type: 'QAbstractPrintDialog.PrintRange'
PageRange = ... # type: 'QAbstractPrintDialog.PrintRange'
CurrentPage = ... # type: 'QAbstractPrintDialog.PrintRange'
class PrintDialogOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QAbstractPrintDialog.PrintDialogOptions', 'QAbstractPrintDialog.PrintDialogOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QAbstractPrintDialog.PrintDialogOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QAbstractPrintDialog.PrintDialogOptions': ...
def __int__(self) -> int: ...
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def enabledOptions(self) -> 'QAbstractPrintDialog.PrintDialogOptions': ...
def setEnabledOptions(self, options: typing.Union['QAbstractPrintDialog.PrintDialogOptions', 'QAbstractPrintDialog.PrintDialogOption']) -> None: ...
def setOptionTabs(self, tabs: typing.Iterable[QtWidgets.QWidget]) -> None: ...
def printer(self) -> 'QPrinter': ...
def toPage(self) -> int: ...
def fromPage(self) -> int: ...
def setFromTo(self, fromPage: int, toPage: int) -> None: ...
def maxPage(self) -> int: ...
def minPage(self) -> int: ...
def setMinMax(self, min: int, max: int) -> None: ...
def printRange(self) -> 'QAbstractPrintDialog.PrintRange': ...
def setPrintRange(self, range: 'QAbstractPrintDialog.PrintRange') -> None: ...
def exec(self) -> int: ...
def exec_(self) -> int: ...
class QPageSetupDialog(QtWidgets.QDialog):
@typing.overload
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def printer(self) -> 'QPrinter': ...
def done(self, result: int) -> None: ...
@typing.overload
def open(self) -> None: ...
@typing.overload
def open(self, slot: PYQT_SLOT) -> None: ...
def exec(self) -> int: ...
def exec_(self) -> int: ...
def setVisible(self, visible: bool) -> None: ...
class QPrintDialog(QAbstractPrintDialog):
@typing.overload
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def accepted(self) -> None: ...
@typing.overload
def accepted(self, printer: 'QPrinter') -> None: ...
@typing.overload
def open(self) -> None: ...
@typing.overload
def open(self, slot: PYQT_SLOT) -> None: ...
def setVisible(self, visible: bool) -> None: ...
def options(self) -> QAbstractPrintDialog.PrintDialogOptions: ...
def setOptions(self, options: typing.Union[QAbstractPrintDialog.PrintDialogOptions, QAbstractPrintDialog.PrintDialogOption]) -> None: ...
def testOption(self, option: QAbstractPrintDialog.PrintDialogOption) -> bool: ...
def setOption(self, option: QAbstractPrintDialog.PrintDialogOption, on: bool = ...) -> None: ...
def done(self, result: int) -> None: ...
def 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 paperName(self) -> str: ...
def setPaperName(self, paperName: str) -> None: ...
def setEngines(self, printEngine: QPrintEngine, paintEngine: QtGui.QPaintEngine) -> None: ...
def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ...
def getPageMargins(self, unit: 'QPrinter.Unit') -> typing.Tuple[float, float, float, float]: ...
def setPageMargins(self, left: float, top: float, right: float, bottom: float, unit: 'QPrinter.Unit') -> None: ...
def setMargins(self, m: QtGui.QPagedPaintDevice.Margins) -> None: ...
def printRange(self) -> 'QPrinter.PrintRange': ...
def setPrintRange(self, range: 'QPrinter.PrintRange') -> None: ...
def toPage(self) -> int: ...
def fromPage(self) -> int: ...
def setFromTo(self, fromPage: int, toPage: int) -> None: ...
def printEngine(self) -> QPrintEngine: ...
def paintEngine(self) -> QtGui.QPaintEngine: ...
def printerState(self) -> 'QPrinter.PrinterState': ...
def abort(self) -> bool: ...
def newPage(self) -> bool: ...
def setPrinterSelectionOption(self, a0: str) -> None: ...
def printerSelectionOption(self) -> str: ...
@typing.overload
def pageRect(self) -> QtCore.QRect: ...
@typing.overload
def pageRect(self, a0: 'QPrinter.Unit') -> QtCore.QRectF: ...
@typing.overload
def paperRect(self) -> QtCore.QRect: ...
@typing.overload
def paperRect(self, a0: 'QPrinter.Unit') -> QtCore.QRectF: ...
def doubleSidedPrinting(self) -> bool: ...
def setDoubleSidedPrinting(self, enable: bool) -> None: ...
def fontEmbeddingEnabled(self) -> bool: ...
def setFontEmbeddingEnabled(self, enable: bool) -> None: ...
def supportedResolutions(self) -> typing.List[int]: ...
def duplex(self) -> 'QPrinter.DuplexMode': ...
def setDuplex(self, duplex: 'QPrinter.DuplexMode') -> None: ...
def paperSource(self) -> 'QPrinter.PaperSource': ...
def setPaperSource(self, a0: 'QPrinter.PaperSource') -> None: ...
def supportsMultipleCopies(self) -> bool: ...
def copyCount(self) -> int: ...
def setCopyCount(self, a0: int) -> None: ...
def fullPage(self) -> bool: ...
def setFullPage(self, a0: bool) -> None: ...
def collateCopies(self) -> bool: ...
def setCollateCopies(self, collate: bool) -> None: ...
def colorMode(self) -> 'QPrinter.ColorMode': ...
def setColorMode(self, a0: 'QPrinter.ColorMode') -> None: ...
def resolution(self) -> int: ...
def setResolution(self, a0: int) -> None: ...
def pageOrder(self) -> 'QPrinter.PageOrder': ...
def setPageOrder(self, a0: 'QPrinter.PageOrder') -> None: ...
@typing.overload
def paperSize(self) -> QtGui.QPagedPaintDevice.PageSize: ...
@typing.overload
def paperSize(self, unit: 'QPrinter.Unit') -> QtCore.QSizeF: ...
@typing.overload
def setPaperSize(self, a0: QtGui.QPagedPaintDevice.PageSize) -> None: ...
@typing.overload
def setPaperSize(self, paperSize: QtCore.QSizeF, unit: 'QPrinter.Unit') -> None: ...
def setPageSizeMM(self, size: QtCore.QSizeF) -> None: ...
def orientation(self) -> 'QPrinter.Orientation': ...
def setOrientation(self, a0: 'QPrinter.Orientation') -> None: ...
def creator(self) -> str: ...
def setCreator(self, a0: str) -> None: ...
def docName(self) -> str: ...
def setDocName(self, a0: str) -> None: ...
def printProgram(self) -> str: ...
def setPrintProgram(self, a0: str) -> None: ...
def outputFileName(self) -> str: ...
def setOutputFileName(self, a0: str) -> None: ...
def isValid(self) -> bool: ...
def printerName(self) -> str: ...
def setPrinterName(self, a0: str) -> None: ...
def outputFormat(self) -> 'QPrinter.OutputFormat': ...
def setOutputFormat(self, format: 'QPrinter.OutputFormat') -> None: ...
class QPrinterInfo(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, src: 'QPrinterInfo') -> None: ...
@typing.overload
def __init__(self, printer: QPrinter) -> None: ...
def 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.Any: ...
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.Any: ...
def supportedSizesWithNames(self) -> typing.Any: ...
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