QtWebChannel.pyi 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # The PEP 484 type hints stub file for the QtWebChannel module.
  2. #
  3. # Generated by SIP 6.15.3
  4. #
  5. # Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. #
  7. # This file is part of PyQt6.
  8. #
  9. # This file may be used under the terms of the GNU General Public License
  10. # version 3.0 as published by the Free Software Foundation and appearing in
  11. # the file LICENSE included in the packaging of this file. Please review the
  12. # following information to ensure the GNU General Public License version 3.0
  13. # requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. #
  15. # If you do not wish to use this file under the terms of the GPL version 3.0
  16. # then you may purchase a commercial license. For more information contact
  17. # info@riverbankcomputing.com.
  18. #
  19. # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. import collections, re, typing
  22. try:
  23. from warnings import deprecated
  24. except ImportError:
  25. pass
  26. import PyQt6.sip
  27. from PyQt6 import QtCore
  28. # Support for QDate, QDateTime and QTime.
  29. import datetime
  30. # Convenient type aliases.
  31. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  32. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  33. class QWebChannel(QtCore.QObject):
  34. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  35. blockUpdatesChanged: typing.ClassVar[QtCore.pyqtSignal]
  36. def disconnectFrom(self, transport: 'QWebChannelAbstractTransport|None') -> None: ...
  37. def connectTo(self, transport: 'QWebChannelAbstractTransport|None') -> None: ...
  38. def setPropertyUpdateInterval(self, ms: int) -> None: ...
  39. def propertyUpdateInterval(self) -> int: ...
  40. def setBlockUpdates(self, block: bool) -> None: ...
  41. def blockUpdates(self) -> bool: ...
  42. def deregisterObject(self, object: QtCore.QObject|None) -> None: ...
  43. def registerObject(self, id: str|None, object: QtCore.QObject|None) -> None: ...
  44. def registeredObjects(self) -> dict[str, QtCore.QObject]: ...
  45. def registerObjects(self, objects: dict[str|None, QtCore.QObject]) -> None: ...
  46. class QWebChannelAbstractTransport(QtCore.QObject):
  47. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  48. messageReceived: typing.ClassVar[QtCore.pyqtSignal]
  49. def sendMessage(self, message: dict[str|None, QtCore.QJsonValue|QtCore.QJsonValue.Type|collections.abc.Iterable[QtCore.QJsonValue]|dict[str|None, QtCore.QJsonValue]|bool|int|float|None|str|None]) -> None: ...