Also enumify QMessgaeBox

This commit is contained in:
Kovid Goyal 2022-01-01 16:23:48 +05:30
parent dd7c9a71b5
commit f2c058fea3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -60,7 +60,7 @@ QFontMetrics.width = lambda self, text: self.horizontalAdvance(text)
# Restore enum values to various classes
for cls in (
Qt, QDialog, QToolButton, QAbstractItemView, QDialogButtonBox, QFrame, QComboBox,
QLineEdit, QAction, QImage, QIODevice, QPalette, QFormLayout, QEvent
QLineEdit, QAction, QImage, QIODevice, QPalette, QFormLayout, QEvent, QMessageBox
):
for var in tuple(vars(cls).values()):
m = getattr(var, '__members__', {})