mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:03:36 +02:00
...
This commit is contained in:
parent
bf59c9c4da
commit
2d6d6a1fe4
1 changed files with 4 additions and 0 deletions
|
|
@ -448,8 +448,12 @@ def _nuke_word(self, dic, word, locale):
|
|||
self.word_ignored.emit(word, locale)
|
||||
|
||||
def launch_editor(path_to_edit, path_is_raw=False, syntax='html'):
|
||||
from calibre.gui2.tweak_book import dictionaries
|
||||
from calibre.gui2.tweak_book.main import option_parser
|
||||
from calibre.gui2.tweak_book.ui import Main
|
||||
from calibre.gui2.tweak_book.editor.syntax.html import refresh_spell_check_status
|
||||
dictionaries.initialize()
|
||||
refresh_spell_check_status()
|
||||
opts = option_parser().parse_args([])
|
||||
app = QApplication([])
|
||||
# Create the actions that are placed into the editors toolbars
|
||||
|
|
|
|||
Loading…
Reference in a new issue