177 self.tr("Tabs after Spaces"), |
179 self.tr("Tabs after Spaces"), |
178 self.tr("Spaces"), |
180 self.tr("Spaces"), |
179 self.tr("Tabs"), |
181 self.tr("Tabs"), |
180 ]) |
182 ]) |
181 self.pythonBadIndentationComboBox.setCurrentIndex( |
183 self.pythonBadIndentationComboBox.setCurrentIndex( |
182 Preferences.getEditor("PythonBadIndentation")) |
184 Preferences.getEditor("PythonBadIndentation").value) |
183 self.foldPythonCommentCheckBox.setChecked( |
185 self.foldPythonCommentCheckBox.setChecked( |
184 Preferences.getEditor("PythonFoldComment")) |
186 Preferences.getEditor("PythonFoldComment")) |
185 self.foldPythonStringCheckBox.setChecked( |
187 self.foldPythonStringCheckBox.setChecked( |
186 Preferences.getEditor("PythonFoldString")) |
188 Preferences.getEditor("PythonFoldString")) |
187 self.pythonAutoindentCheckBox.setChecked( |
189 self.pythonAutoindentCheckBox.setChecked( |
446 Preferences.setEditor( |
448 Preferences.setEditor( |
447 "PythonFoldString", |
449 "PythonFoldString", |
448 self.foldPythonStringCheckBox.isChecked()) |
450 self.foldPythonStringCheckBox.isChecked()) |
449 Preferences.setEditor( |
451 Preferences.setEditor( |
450 "PythonBadIndentation", |
452 "PythonBadIndentation", |
451 self.pythonBadIndentationComboBox.currentIndex()) |
453 QsciLexerPython.IndentationWarning( |
|
454 self.pythonBadIndentationComboBox.currentIndex())) |
452 Preferences.setEditor( |
455 Preferences.setEditor( |
453 "PythonAutoIndent", |
456 "PythonAutoIndent", |
454 self.pythonAutoindentCheckBox.isChecked()) |
457 self.pythonAutoindentCheckBox.isChecked()) |
455 Preferences.setEditor( |
458 Preferences.setEditor( |
456 "PythonAllowV2Unicode", |
459 "PythonAllowV2Unicode", |