Skip to content

Commit 70dd77b

Browse files
committed
Fix for QInputDialog.getText() and other get static functions
1 parent 1bb47b0 commit 70dd77b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
================
55
* `QModelIndex.constInternalPointer()` should be `Any`
66
* `QDBusConnection.internalPointer()` and `QDBusConnection.constInternalPointer()` should be `Any`
7+
* `QInputDialog.getText()`, `getInt()`, `getFloat()`, `getMultiLineText()`, `getItem()` accept `None`as parent argument
78

89

910
Version 6.7.3.0

PySide6-stubs/QtWidgets.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4069,15 +4069,15 @@ class QInputDialog(PySide6.QtWidgets.QDialog):
40694069
def doubleStep(self) -> float: ...
40704070
def doubleValue(self) -> float: ...
40714071
@staticmethod
4072-
def getDouble(parent: PySide6.QtWidgets.QWidget, title: str, label: str, value: float = ..., minValue: float = ..., maxValue: float = ..., decimals: int = ..., flags: PySide6.QtCore.Qt.WindowType = ..., step: float = ...) -> Tuple[float, bool]: ...
4072+
def getDouble(parent: PySide6.QtWidgets.QWidget | None, title: str, label: str, value: float = ..., minValue: float = ..., maxValue: float = ..., decimals: int = ..., flags: PySide6.QtCore.Qt.WindowType = ..., step: float = ...) -> Tuple[float, bool]: ...
40734073
@staticmethod
4074-
def getInt(parent: PySide6.QtWidgets.QWidget, title: str, label: str, value: int = ..., minValue: int = ..., maxValue: int = ..., step: int = ..., flags: PySide6.QtCore.Qt.WindowType = ...) -> Tuple[int, bool]: ...
4074+
def getInt(parent: PySide6.QtWidgets.QWidget | None, title: str, label: str, value: int = ..., minValue: int = ..., maxValue: int = ..., step: int = ..., flags: PySide6.QtCore.Qt.WindowType = ...) -> Tuple[int, bool]: ...
40754075
@staticmethod
4076-
def getItem(parent: PySide6.QtWidgets.QWidget, title: str, label: str, items: Sequence[str], current: int = ..., editable: bool = ..., flags: PySide6.QtCore.Qt.WindowType = ..., inputMethodHints: PySide6.QtCore.Qt.InputMethodHint = ...) -> Tuple[str, bool]: ...
4076+
def getItem(parent: PySide6.QtWidgets.QWidget | None, title: str, label: str, items: Sequence[str], current: int = ..., editable: bool = ..., flags: PySide6.QtCore.Qt.WindowType = ..., inputMethodHints: PySide6.QtCore.Qt.InputMethodHint = ...) -> Tuple[str, bool]: ...
40774077
@staticmethod
4078-
def getMultiLineText(parent: PySide6.QtWidgets.QWidget, title: str, label: str, text: str = ..., flags: PySide6.QtCore.Qt.WindowType = ..., inputMethodHints: PySide6.QtCore.Qt.InputMethodHint = ...) -> Tuple[str, bool]: ...
4078+
def getMultiLineText(parent: PySide6.QtWidgets.QWidget | None, title: str, label: str, text: str = ..., flags: PySide6.QtCore.Qt.WindowType = ..., inputMethodHints: PySide6.QtCore.Qt.InputMethodHint = ...) -> Tuple[str, bool]: ...
40794079
@staticmethod
4080-
def getText(parent: PySide6.QtWidgets.QWidget, title: str, label: str, echo: PySide6.QtWidgets.QLineEdit.EchoMode = ..., text: str = ..., flags: PySide6.QtCore.Qt.WindowType = ..., inputMethodHints: PySide6.QtCore.Qt.InputMethodHint = ...) -> Tuple[str, bool]: ...
4080+
def getText(parent: PySide6.QtWidgets.QWidget | None, title: str, label: str, echo: PySide6.QtWidgets.QLineEdit.EchoMode = ..., text: str = ..., flags: PySide6.QtCore.Qt.WindowType = ..., inputMethodHints: PySide6.QtCore.Qt.InputMethodHint = ...) -> Tuple[str, bool]: ...
40814081
def inputMode(self) -> PySide6.QtWidgets.QInputDialog.InputMode: ...
40824082
def intMaximum(self) -> int: ...
40834083
def intMinimum(self) -> int: ...

0 commit comments

Comments
 (0)