9 |
9 |
10 from PyQt4.Qsci import QsciScintilla |
10 from PyQt4.Qsci import QsciScintilla |
11 |
11 |
12 from QScintilla.QsciScintillaCompat import QSCINTILLA_VERSION |
12 from QScintilla.QsciScintillaCompat import QSCINTILLA_VERSION |
13 |
13 |
14 from ConfigurationPageBase import ConfigurationPageBase |
14 from .ConfigurationPageBase import ConfigurationPageBase |
15 from Ui_EditorPropertiesPage import Ui_EditorPropertiesPage |
15 from .Ui_EditorPropertiesPage import Ui_EditorPropertiesPage |
16 |
16 |
17 import Preferences |
17 import Preferences |
18 |
18 |
19 class EditorPropertiesPage(ConfigurationPageBase, Ui_EditorPropertiesPage): |
19 class EditorPropertiesPage(ConfigurationPageBase, Ui_EditorPropertiesPage): |
20 """ |
20 """ |
28 """ |
28 """ |
29 ConfigurationPageBase.__init__(self) |
29 ConfigurationPageBase.__init__(self) |
30 self.setupUi(self) |
30 self.setupUi(self) |
31 self.setObjectName("EditorPropertiesPage") |
31 self.setObjectName("EditorPropertiesPage") |
32 |
32 |
33 self.languages = sorted(lexers.keys()[:]) |
33 self.languages = sorted(list(lexers.keys())[:]) |
34 |
34 |
35 # set initial values |
35 # set initial values |
36 # All |
36 # All |
37 self.allFoldCompactCheckBox.setChecked(\ |
37 self.allFoldCompactCheckBox.setChecked(\ |
38 Preferences.getEditor("AllFoldCompact")) |
38 Preferences.getEditor("AllFoldCompact")) |