740 |
740 |
741 # set spellchecker defaults |
741 # set spellchecker defaults |
742 from QScintilla.SpellChecker import SpellChecker |
742 from QScintilla.SpellChecker import SpellChecker |
743 SpellChecker.setDefaultLanguage( |
743 SpellChecker.setDefaultLanguage( |
744 Preferences.getEditor("SpellCheckingDefaultLanguage")) |
744 Preferences.getEditor("SpellCheckingDefaultLanguage")) |
|
745 |
|
746 with contextlib.suppress(ImportError, AttributeError): |
|
747 from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin |
|
748 SpellCheckMixin.setDefaultLanguage( |
|
749 Preferences.getEditor("SpellCheckingDefaultLanguage")) |
745 |
750 |
746 # attributes for the last shown configuration page and the |
751 # attributes for the last shown configuration page and the |
747 # extended configuration entries |
752 # extended configuration entries |
748 self.__lastConfigurationPageName = "" |
753 self.__lastConfigurationPageName = "" |
749 self.__expandedConfigurationEntries = [] |
754 self.__expandedConfigurationEntries = [] |
6200 |
6205 |
6201 from QScintilla.SpellChecker import SpellChecker |
6206 from QScintilla.SpellChecker import SpellChecker |
6202 SpellChecker.setDefaultLanguage( |
6207 SpellChecker.setDefaultLanguage( |
6203 Preferences.getEditor("SpellCheckingDefaultLanguage")) |
6208 Preferences.getEditor("SpellCheckingDefaultLanguage")) |
6204 |
6209 |
|
6210 with contextlib.suppress(ImportError, AttributeError): |
|
6211 from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin |
|
6212 SpellCheckMixin.setDefaultLanguage( |
|
6213 Preferences.getEditor("SpellCheckingDefaultLanguage")) |
|
6214 |
6205 if self.__layoutType == "Sidebars": |
6215 if self.__layoutType == "Sidebars": |
6206 delay = Preferences.getUI("SidebarDelay") |
6216 delay = Preferences.getUI("SidebarDelay") |
6207 self.leftSidebar.setDelay(delay) |
6217 self.leftSidebar.setDelay(delay) |
6208 self.bottomSidebar.setDelay(delay) |
6218 self.bottomSidebar.setDelay(delay) |
6209 self.rightSidebar.setDelay(delay) |
6219 self.rightSidebar.setDelay(delay) |