mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5563970967
commit
201649a982
@ -210,6 +210,7 @@ class Editor(QMainWindow):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def launch_editor(path_to_edit, path_is_raw=False, syntax='html'):
|
def launch_editor(path_to_edit, path_is_raw=False, syntax='html'):
|
||||||
|
app = QApplication([])
|
||||||
if path_is_raw:
|
if path_is_raw:
|
||||||
raw = path_to_edit
|
raw = path_to_edit
|
||||||
else:
|
else:
|
||||||
@ -220,7 +221,6 @@ def launch_editor(path_to_edit, path_is_raw=False, syntax='html'):
|
|||||||
syntax = 'html'
|
syntax = 'html'
|
||||||
elif ext in ('css',):
|
elif ext in ('css',):
|
||||||
syntax = 'css'
|
syntax = 'css'
|
||||||
app = QApplication([])
|
|
||||||
t = Editor(syntax)
|
t = Editor(syntax)
|
||||||
t.data = raw
|
t.data = raw
|
||||||
t.show()
|
t.show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user