301 splash.showMessage(self.tr("Generating Main User Interface...")) |
301 splash.showMessage(self.tr("Generating Main User Interface...")) |
302 |
302 |
303 self.__webBrowserProcess = None |
303 self.__webBrowserProcess = None |
304 self.__webBrowserClient = None |
304 self.__webBrowserClient = None |
305 self.__webBrowserSAName = QUuid.createUuid().toString()[1:-1] |
305 self.__webBrowserSAName = QUuid.createUuid().toString()[1:-1] |
|
306 |
|
307 # set spellchecker defaults |
|
308 from QScintilla.SpellChecker import SpellChecker |
|
309 SpellChecker.setDefaultLanguage( |
|
310 Preferences.getEditor("SpellCheckingDefaultLanguage")) |
|
311 |
|
312 with contextlib.suppress(ImportError, AttributeError): |
|
313 from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin |
|
314 pwl = SpellChecker.getUserDictionaryPath(isException=False) |
|
315 pel = SpellChecker.getUserDictionaryPath(isException=True) |
|
316 SpellCheckMixin.setDefaultLanguage( |
|
317 Preferences.getEditor("SpellCheckingDefaultLanguage"), |
|
318 pwl, pel) |
306 |
319 |
307 logging.debug("Creating Application Objects...") |
320 logging.debug("Creating Application Objects...") |
308 self.__createObjects() |
321 self.__createObjects() |
309 |
322 |
310 # Create the main window now so that we can connect QActions to it. |
323 # Create the main window now so that we can connect QActions to it. |
738 proxyAuthenticationRequired) |
751 proxyAuthenticationRequired) |
739 if SSL_AVAILABLE: |
752 if SSL_AVAILABLE: |
740 self.__sslErrorHandler = EricSslErrorHandler(self) |
753 self.__sslErrorHandler = EricSslErrorHandler(self) |
741 self.__networkManager.sslErrors.connect(self.__sslErrors) |
754 self.__networkManager.sslErrors.connect(self.__sslErrors) |
742 self.__replies = [] |
755 self.__replies = [] |
743 |
|
744 # set spellchecker defaults |
|
745 from QScintilla.SpellChecker import SpellChecker |
|
746 SpellChecker.setDefaultLanguage( |
|
747 Preferences.getEditor("SpellCheckingDefaultLanguage")) |
|
748 |
|
749 with contextlib.suppress(ImportError, AttributeError): |
|
750 from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin |
|
751 pwl = SpellChecker.getUserDictionaryPath(isException=False) |
|
752 pel = SpellChecker.getUserDictionaryPath(isException=True) |
|
753 SpellCheckMixin.setDefaultLanguage( |
|
754 Preferences.getEditor("SpellCheckingDefaultLanguage"), |
|
755 pwl, pel) |
|
756 |
756 |
757 # attributes for the last shown configuration page and the |
757 # attributes for the last shown configuration page and the |
758 # extended configuration entries |
758 # extended configuration entries |
759 self.__lastConfigurationPageName = "" |
759 self.__lastConfigurationPageName = "" |
760 self.__expandedConfigurationEntries = [] |
760 self.__expandedConfigurationEntries = [] |