mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:24:49 +02:00
Another PyQt enum waste of time
This commit is contained in:
parent
9b09daa91b
commit
2ba2439e6f
1 changed files with 3 additions and 2 deletions
|
|
@ -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 @@ def sizeHint(self):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = QApplication([])
|
||||
from calibre.gui2 import Application
|
||||
app = Application([])
|
||||
d = ThemeEditor()
|
||||
d.exec_()
|
||||
del app
|
||||
|
|
|
|||
Loading…
Reference in a new issue