This commit is contained in:
Kovid Goyal 2014-06-24 12:15:02 +05:30
parent bf59c9c4da
commit 2d6d6a1fe4

View File

@ -448,8 +448,12 @@ class Editor(QMainWindow):
self.word_ignored.emit(word, locale) self.word_ignored.emit(word, locale)
def launch_editor(path_to_edit, path_is_raw=False, syntax='html'): 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.main import option_parser
from calibre.gui2.tweak_book.ui import Main 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([]) opts = option_parser().parse_args([])
app = QApplication([]) app = QApplication([])
# Create the actions that are placed into the editors toolbars # Create the actions that are placed into the editors toolbars