Another PyQt enum waste of time

This commit is contained in:
Kovid Goyal 2021-11-19 19:58:51 +05:30
parent 9b09daa91b
commit 2ba2439e6f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -248,7 +248,7 @@ def u(x):
return x + 'Underline'
underline_styles = {x:getattr(QTextCharFormat, u(x)) for x in underline_styles}
underline_styles = {x:getattr(QTextCharFormat.UnderlineStyle, u(x)) for x in underline_styles}
def to_highlight(data):
@ -694,7 +694,8 @@ class ThemeEditor(Dialog):
if __name__ == '__main__':
app = QApplication([])
from calibre.gui2 import Application
app = Application([])
d = ThemeEditor()
d.exec_()
del app