Skip to content

Commit 8aba8c6

Browse files
authored
QtWidgets.QMessageBox enumerations are available in two places...
1 parent e9a2f2d commit 8aba8c6

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

PyQt5-stubs/QtWidgets.pyi

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6478,6 +6478,34 @@ class QMenuBar(QWidget):
64786478
class QMessageBox(QDialog):
64796479

64806480
class StandardButton(int): ...
6481+
NoButton = ... # type: 'QMessageBox.StandardButton'
6482+
Ok = ... # type: 'QMessageBox.StandardButton'
6483+
Save = ... # type: 'QMessageBox.StandardButton'
6484+
SaveAll = ... # type: 'QMessageBox.StandardButton'
6485+
Open = ... # type: 'QMessageBox.StandardButton'
6486+
Yes = ... # type: 'QMessageBox.StandardButton'
6487+
YesToAll = ... # type: 'QMessageBox.StandardButton'
6488+
No = ... # type: 'QMessageBox.StandardButton'
6489+
NoToAll = ... # type: 'QMessageBox.StandardButton'
6490+
Abort = ... # type: 'QMessageBox.StandardButton'
6491+
Retry = ... # type: 'QMessageBox.StandardButton'
6492+
Ignore = ... # type: 'QMessageBox.StandardButton'
6493+
Close = ... # type: 'QMessageBox.StandardButton'
6494+
Cancel = ... # type: 'QMessageBox.StandardButton'
6495+
Discard = ... # type: 'QMessageBox.StandardButton'
6496+
Help = ... # type: 'QMessageBox.StandardButton'
6497+
Apply = ... # type: 'QMessageBox.StandardButton'
6498+
Reset = ... # type: 'QMessageBox.StandardButton'
6499+
RestoreDefaults = ... # type: 'QMessageBox.StandardButton'
6500+
FirstButton = ... # type: 'QMessageBox.StandardButton'
6501+
LastButton = ... # type: 'QMessageBox.StandardButton'
6502+
YesAll = ... # type: 'QMessageBox.StandardButton'
6503+
NoAll = ... # type: 'QMessageBox.StandardButton'
6504+
Default = ... # type: 'QMessageBox.StandardButton'
6505+
Escape = ... # type: 'QMessageBox.StandardButton'
6506+
FlagMask = ... # type: 'QMessageBox.StandardButton'
6507+
ButtonMask = ... # type: 'QMessageBox.StandardButton'
6508+
64816509
NoButton = ... # type: 'QMessageBox.StandardButton'
64826510
Ok = ... # type: 'QMessageBox.StandardButton'
64836511
Save = ... # type: 'QMessageBox.StandardButton'
@@ -6507,13 +6535,30 @@ class QMessageBox(QDialog):
65076535
ButtonMask = ... # type: 'QMessageBox.StandardButton'
65086536

65096537
class Icon(int): ...
6538+
NoIcon = ... # type: 'QMessageBox.Icon'
6539+
Information = ... # type: 'QMessageBox.Icon'
6540+
Warning = ... # type: 'QMessageBox.Icon'
6541+
Critical = ... # type: 'QMessageBox.Icon'
6542+
Question = ... # type: 'QMessageBox.Icon'
6543+
65106544
NoIcon = ... # type: 'QMessageBox.Icon'
65116545
Information = ... # type: 'QMessageBox.Icon'
65126546
Warning = ... # type: 'QMessageBox.Icon'
65136547
Critical = ... # type: 'QMessageBox.Icon'
65146548
Question = ... # type: 'QMessageBox.Icon'
65156549

65166550
class ButtonRole(int): ...
6551+
InvalidRole = ... # type: 'QMessageBox.ButtonRole'
6552+
AcceptRole = ... # type: 'QMessageBox.ButtonRole'
6553+
RejectRole = ... # type: 'QMessageBox.ButtonRole'
6554+
DestructiveRole = ... # type: 'QMessageBox.ButtonRole'
6555+
ActionRole = ... # type: 'QMessageBox.ButtonRole'
6556+
HelpRole = ... # type: 'QMessageBox.ButtonRole'
6557+
YesRole = ... # type: 'QMessageBox.ButtonRole'
6558+
NoRole = ... # type: 'QMessageBox.ButtonRole'
6559+
ResetRole = ... # type: 'QMessageBox.ButtonRole'
6560+
ApplyRole = ... # type: 'QMessageBox.ButtonRole'
6561+
65176562
InvalidRole = ... # type: 'QMessageBox.ButtonRole'
65186563
AcceptRole = ... # type: 'QMessageBox.ButtonRole'
65196564
RejectRole = ... # type: 'QMessageBox.ButtonRole'

0 commit comments

Comments
 (0)