Skip to content

Commit 641e224

Browse files
authored
Merge branch 'master' into add-more-tests
2 parents 1fab6f7 + 35a6af9 commit 641e224

15 files changed

+1000
-187
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1515
* check signal connect() call returns a QMetaObject.Connection
1616
* check argument for disconnect() is optional
1717
* check QCoreApplication.instance() may return None
18+
* [#192](https://github.com/python-qt-tools/PyQt5-stubs/pull/192) Add missing platform specific stubs:
19+
* Windows specific: QAxContainer.pyi QtWinExtras.pyi QtCore.QWinEventNotifier
20+
* MacOs X specific: QtMacExtras.pyi QtWidgets.QMacCocoaViewContainer
1821

1922

2023
### Added

PyQt5-stubs/QAxContainer.pyi

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# The PEP 484 type hints stub file for the QAxContainer module.
2+
#
3+
# Generated by SIP 6.4.0
4+
#
5+
# Copyright (c) 2021 Riverbank Computing Limited <[email protected]>
6+
#
7+
# This file is part of PyQt5.
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+
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+
22+
23+
import typing
24+
25+
from PyQt5 import QtWidgets, QtCore, sip, QtGui
26+
27+
# Support for QDate, QDateTime and QTime.
28+
import datetime
29+
30+
# Convenient type aliases.
31+
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
32+
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
33+
34+
# Convenient aliases for complicated OpenGL types.
35+
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
36+
sip.Buffer, None]
37+
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
38+
typing.Sequence[float], sip.Buffer, int, None]
39+
40+
41+
class QAxBase(sip.simplewrapper):
42+
43+
@typing.overload
44+
def __init__(self) -> None: ...
45+
@typing.overload
46+
def __init__(self, a0: 'QAxBase') -> None: ...
47+
48+
def setClassContext(self, classContext: int) -> None: ...
49+
def classContext(self) -> int: ...
50+
def disableEventSink(self) -> None: ...
51+
def disableClassInfo(self) -> None: ...
52+
def disableMetaObject(self) -> None: ...
53+
def setControl(self, a0: str) -> bool: ...
54+
def clear(self) -> None: ...
55+
exception: typing.ClassVar[QtCore.pyqtSignal]
56+
propertyChanged: typing.ClassVar[QtCore.pyqtSignal]
57+
signal: typing.ClassVar[QtCore.pyqtSignal]
58+
def asVariant(self) -> typing.Any: ...
59+
def verbs(self) -> typing.List[str]: ...
60+
def isNull(self) -> bool: ...
61+
def setPropertyWritable(self, a0: str, a1: bool) -> None: ...
62+
def propertyWritable(self, a0: str) -> bool: ...
63+
def generateDocumentation(self) -> str: ...
64+
def setPropertyBag(self, a0: typing.Dict[str, typing.Any]) -> None: ...
65+
def propertyBag(self) -> typing.Dict[str, typing.Any]: ...
66+
@typing.overload
67+
def querySubObject(self, a0: str, a1: typing.Iterable[typing.Any]) -> 'QAxObject': ...
68+
@typing.overload
69+
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': ...
70+
@typing.overload
71+
def dynamicCall(self, a0: str, a1: typing.Iterable[typing.Any]) -> typing.Any: ...
72+
@typing.overload
73+
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: ...
74+
def control(self) -> str: ...
75+
76+
77+
class QAxObject(QtCore.QObject, QAxBase):
78+
79+
@typing.overload
80+
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
81+
@typing.overload
82+
def __init__(self, a0: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
83+
84+
def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
85+
def doVerb(self, a0: str) -> bool: ...
86+
87+
88+
class QAxWidget(QtWidgets.QWidget, QAxBase):
89+
90+
@typing.overload
91+
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
92+
@typing.overload
93+
def __init__(self, a0: str, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
94+
95+
def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
96+
def translateKeyEvent(self, a0: int, a1: int) -> bool: ...
97+
def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ...
98+
def changeEvent(self, a0: QtCore.QEvent) -> None: ...
99+
def createHostWindow(self, a0: bool) -> bool: ...
100+
def minimumSizeHint(self) -> QtCore.QSize: ...
101+
def sizeHint(self) -> QtCore.QSize: ...
102+
def doVerb(self, a0: str) -> bool: ...
103+
def clear(self) -> None: ...

0 commit comments

Comments
 (0)