mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Also enumify QMessgaeBox
This commit is contained in:
parent
dd7c9a71b5
commit
f2c058fea3
@ -60,7 +60,7 @@ QFontMetrics.width = lambda self, text: self.horizontalAdvance(text)
|
|||||||
# Restore enum values to various classes
|
# Restore enum values to various classes
|
||||||
for cls in (
|
for cls in (
|
||||||
Qt, QDialog, QToolButton, QAbstractItemView, QDialogButtonBox, QFrame, QComboBox,
|
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()):
|
for var in tuple(vars(cls).values()):
|
||||||
m = getattr(var, '__members__', {})
|
m = getattr(var, '__members__', {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user