mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Another PyQt enum waste of time
This commit is contained in:
parent
9b09daa91b
commit
2ba2439e6f
@ -248,7 +248,7 @@ def u(x):
|
|||||||
return x + 'Underline'
|
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):
|
def to_highlight(data):
|
||||||
@ -694,7 +694,8 @@ class ThemeEditor(Dialog):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = QApplication([])
|
from calibre.gui2 import Application
|
||||||
|
app = Application([])
|
||||||
d = ThemeEditor()
|
d = ThemeEditor()
|
||||||
d.exec_()
|
d.exec_()
|
||||||
del app
|
del app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user