9 |
9 |
10 from PyQt6.QtCore import pyqtSlot |
10 from PyQt6.QtCore import pyqtSlot |
11 |
11 |
12 from eric7 import Preferences |
12 from eric7 import Preferences |
13 from eric7.EricWidgets import EricMessageBox |
13 from eric7.EricWidgets import EricMessageBox |
|
14 from eric7.QScintilla import Lexers |
|
15 from eric7.QScintilla.Lexers.LexerContainer import LexerContainer |
14 |
16 |
15 from .ConfigurationPageBase import ConfigurationPageBase |
17 from .ConfigurationPageBase import ConfigurationPageBase |
16 from .Ui_EditorKeywordsPage import Ui_EditorKeywordsPage |
18 from .Ui_EditorKeywordsPage import Ui_EditorKeywordsPage |
17 |
19 |
18 |
20 |
30 super().__init__() |
32 super().__init__() |
31 self.setupUi(self) |
33 self.setupUi(self) |
32 self.setObjectName("EditorKeywordsPage") |
34 self.setObjectName("EditorKeywordsPage") |
33 |
35 |
34 # set initial values |
36 # set initial values |
35 from eric7.QScintilla import Lexers |
|
36 from eric7.QScintilla.Lexers.LexerContainer import LexerContainer |
|
37 |
|
38 self.__keywords = { |
37 self.__keywords = { |
39 "": { |
38 "": { |
40 "Sets": [""] * (self.MaxKeywordSets + 1), |
39 "Sets": [""] * (self.MaxKeywordSets + 1), |
41 "Descriptions": [""] * (self.MaxKeywordSets + 1), |
40 "Descriptions": [""] * (self.MaxKeywordSets + 1), |
42 "MaxSets": 0, |
41 "MaxSets": 0, |