mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00

Earlier today I pushed a change that split this code up into multiple repos, but that has proved to complicate things too much. So we're back to a single repo, except the individual submodules are better separated than they were before. The README files need updating again; I will push them out soon. Aside from splitting out the different modules, the sound code has moved from from anki to aqt.
56 lines
2.4 KiB
Python
56 lines
2.4 KiB
Python
# The PEP 484 type hints stub file for the QtWebChannel module.
|
|
#
|
|
# Generated by SIP 5.0.0
|
|
#
|
|
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
|
|
#
|
|
# This file is part of PyQt5.
|
|
#
|
|
# This file may be used under the terms of the GNU General Public License
|
|
# version 3.0 as published by the Free Software Foundation and appearing in
|
|
# the file LICENSE included in the packaging of this file. Please review the
|
|
# following information to ensure the GNU General Public License version 3.0
|
|
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
|
#
|
|
# If you do not wish to use this file under the terms of the GPL version 3.0
|
|
# then you may purchase a commercial license. For more information contact
|
|
# info@riverbankcomputing.com.
|
|
#
|
|
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
import typing
|
|
import sip
|
|
|
|
from PyQt5 import QtCore
|
|
|
|
# Support for QDate, QDateTime and QTime.
|
|
import datetime
|
|
|
|
# Convenient type aliases.
|
|
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
|
|
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
|
|
|
|
|
|
class QWebChannel(QtCore.QObject):
|
|
|
|
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
|
|
|
def disconnectFrom(self, transport: 'QWebChannelAbstractTransport') -> None: ...
|
|
def connectTo(self, transport: 'QWebChannelAbstractTransport') -> None: ...
|
|
def blockUpdatesChanged(self, block: bool) -> None: ...
|
|
def setBlockUpdates(self, block: bool) -> None: ...
|
|
def blockUpdates(self) -> bool: ...
|
|
def deregisterObject(self, object: QtCore.QObject) -> None: ...
|
|
def registerObject(self, id: str, object: QtCore.QObject) -> None: ...
|
|
def registeredObjects(self) -> typing.Dict[str, QtCore.QObject]: ...
|
|
def registerObjects(self, objects: typing.Dict[str, QtCore.QObject]) -> None: ...
|
|
|
|
|
|
class QWebChannelAbstractTransport(QtCore.QObject):
|
|
|
|
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
|
|
|
|
def messageReceived(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, str]], transport: 'QWebChannelAbstractTransport') -> None: ...
|
|
def sendMessage(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, str]]) -> None: ...
|