QAxContainer.pyi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # The PEP 484 type hints stub file for the QAxContainer 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. from PyQt6 import QtGui
  29. from PyQt6 import QtWidgets
  30. # Support for QDate, QDateTime and QTime.
  31. import datetime
  32. # Convenient type aliases.
  33. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  34. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  35. class QAxBase(PyQt6.sip.simplewrapper):
  36. @typing.overload
  37. def __init__(self) -> None: ...
  38. @typing.overload
  39. def __init__(self, a0: 'QAxBase') -> None: ...
  40. def setClassContext(self, classContext: int) -> None: ...
  41. def classContext(self) -> int: ...
  42. def disableEventSink(self) -> None: ...
  43. def disableClassInfo(self) -> None: ...
  44. def disableMetaObject(self) -> None: ...
  45. def setControl(self, a0: str|None) -> bool: ...
  46. def clear(self) -> None: ...
  47. def asVariant(self) -> typing.Any: ...
  48. def verbs(self) -> list[str]: ...
  49. def isNull(self) -> bool: ...
  50. def setPropertyWritable(self, a0: str, a1: bool) -> None: ...
  51. def propertyWritable(self, a0: str) -> bool: ...
  52. def generateDocumentation(self) -> str: ...
  53. def setPropertyBag(self, a0: dict[str|None, typing.Any]) -> None: ...
  54. def propertyBag(self) -> dict[str, typing.Any]: ...
  55. @typing.overload
  56. def querySubObject(self, a0: str, a1: collections.abc.Iterable[typing.Any]) -> 'QAxObject|None': ...
  57. @typing.overload
  58. def querySubObject(self, a0: str, value1: typing.Any = ..., value2: typing.Any = ..., value3: typing.Any = ..., value4: typing.Any = ..., value5: typing.Any = ..., value6: typing.Any = ..., value7: typing.Any = ..., value8: typing.Any = ...) -> 'QAxObject|None': ...
  59. @typing.overload
  60. def dynamicCall(self, a0: str, a1: collections.abc.Iterable[typing.Any]) -> typing.Any: ...
  61. @typing.overload
  62. def dynamicCall(self, a0: str, value1: typing.Any = ..., value2: typing.Any = ..., value3: typing.Any = ..., value4: typing.Any = ..., value5: typing.Any = ..., value6: typing.Any = ..., value7: typing.Any = ..., value8: typing.Any = ...) -> typing.Any: ...
  63. def control(self) -> str: ...
  64. class QAxObjectInterface(PyQt6.sip.simplewrapper):
  65. @typing.overload
  66. def __init__(self) -> None: ...
  67. @typing.overload
  68. def __init__(self, a0: 'QAxObjectInterface') -> None: ...
  69. def resetControl(self) -> None: ...
  70. def setControl(self, c: str|None) -> bool: ...
  71. def control(self) -> str: ...
  72. def setClassContext(self, classContext: int) -> None: ...
  73. def classContext(self) -> int: ...
  74. class QAxBaseObject(QtCore.QObject, QAxObjectInterface):
  75. def __init__(self) -> None: ...
  76. signal: typing.ClassVar[QtCore.pyqtSignal]
  77. propertyChanged: typing.ClassVar[QtCore.pyqtSignal]
  78. exception: typing.ClassVar[QtCore.pyqtSignal]
  79. class QAxObject(QAxBaseObject, QAxBase):
  80. @typing.overload
  81. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  82. @typing.overload
  83. def __init__(self, a0: str|None, parent: QtCore.QObject|None = ...) -> None: ...
  84. def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
  85. def doVerb(self, a0: str|None) -> bool: ...
  86. def clear(self) -> None: ...
  87. def resetControl(self) -> None: ...
  88. def setControl(self, c: str|None) -> bool: ...
  89. def control(self) -> str: ...
  90. def setClassContext(self, classContext: int) -> None: ...
  91. def classContext(self) -> int: ...
  92. class QAxBaseWidget(QtWidgets.QWidget, QAxObjectInterface):
  93. def __init__(self) -> None: ...
  94. signal: typing.ClassVar[QtCore.pyqtSignal]
  95. propertyChanged: typing.ClassVar[QtCore.pyqtSignal]
  96. exception: typing.ClassVar[QtCore.pyqtSignal]
  97. class QAxWidget(QAxBaseWidget, QAxBase):
  98. @typing.overload
  99. def __init__(self, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...
  100. @typing.overload
  101. def __init__(self, a0: str|None, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...
  102. def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
  103. def translateKeyEvent(self, a0: int, a1: int) -> bool: ...
  104. def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ...
  105. def changeEvent(self, a0: QtCore.QEvent|None) -> None: ...
  106. @typing.overload
  107. def createHostWindow(self, a0: bool) -> bool: ...
  108. @typing.overload
  109. def createHostWindow(self, a0: bool, a1: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ...
  110. def minimumSizeHint(self) -> QtCore.QSize: ...
  111. def sizeHint(self) -> QtCore.QSize: ...
  112. def doVerb(self, a0: str|None) -> bool: ...
  113. def clear(self) -> None: ...
  114. def resetControl(self) -> None: ...
  115. def setControl(self, c: str|None) -> bool: ...
  116. def control(self) -> str: ...
  117. def setClassContext(self, classContext: int) -> None: ...
  118. def classContext(self) -> int: ...