eric7/UI/UserInterface.py

branch
eric7
changeset 8431
bed315a45088
parent 8430
14c69f0ccca5
child 8441
371cbc55badd
equal deleted inserted replaced
8430:14c69f0ccca5 8431:bed315a45088
743 SpellChecker.setDefaultLanguage( 743 SpellChecker.setDefaultLanguage(
744 Preferences.getEditor("SpellCheckingDefaultLanguage")) 744 Preferences.getEditor("SpellCheckingDefaultLanguage"))
745 745
746 with contextlib.suppress(ImportError, AttributeError): 746 with contextlib.suppress(ImportError, AttributeError):
747 from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin 747 from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin
748 pwl = SpellChecker.getUserDictionaryPath(isException=False)
749 pel = SpellChecker.getUserDictionaryPath(isException=True)
748 SpellCheckMixin.setDefaultLanguage( 750 SpellCheckMixin.setDefaultLanguage(
749 Preferences.getEditor("SpellCheckingDefaultLanguage")) 751 Preferences.getEditor("SpellCheckingDefaultLanguage"),
752 pwl, pel)
750 753
751 # attributes for the last shown configuration page and the 754 # attributes for the last shown configuration page and the
752 # extended configuration entries 755 # extended configuration entries
753 self.__lastConfigurationPageName = "" 756 self.__lastConfigurationPageName = ""
754 self.__expandedConfigurationEntries = [] 757 self.__expandedConfigurationEntries = []
6206 SpellChecker.setDefaultLanguage( 6209 SpellChecker.setDefaultLanguage(
6207 Preferences.getEditor("SpellCheckingDefaultLanguage")) 6210 Preferences.getEditor("SpellCheckingDefaultLanguage"))
6208 6211
6209 with contextlib.suppress(ImportError, AttributeError): 6212 with contextlib.suppress(ImportError, AttributeError):
6210 from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin 6213 from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin
6214 pwl = SpellChecker.getUserDictionaryPath(isException=False)
6215 pel = SpellChecker.getUserDictionaryPath(isException=True)
6211 SpellCheckMixin.setDefaultLanguage( 6216 SpellCheckMixin.setDefaultLanguage(
6212 Preferences.getEditor("SpellCheckingDefaultLanguage")) 6217 Preferences.getEditor("SpellCheckingDefaultLanguage"),
6218 pwl, pel)
6213 6219
6214 if self.__layoutType == "Sidebars": 6220 if self.__layoutType == "Sidebars":
6215 delay = Preferences.getUI("SidebarDelay") 6221 delay = Preferences.getUI("SidebarDelay")
6216 self.leftSidebar.setDelay(delay) 6222 self.leftSidebar.setDelay(delay)
6217 self.bottomSidebar.setDelay(delay) 6223 self.bottomSidebar.setDelay(delay)

eric ide

mercurial