190 Preferences.getEditor("PropertiesInitialSpaces")) |
190 Preferences.getEditor("PropertiesInitialSpaces")) |
191 else: |
191 else: |
192 self.propertiesInitialSpacesCheckBox.setEnabled(False) |
192 self.propertiesInitialSpacesCheckBox.setEnabled(False) |
193 |
193 |
194 # Python |
194 # Python |
|
195 self.pythonBadIndentationComboBox.addItems([ |
|
196 self.tr("No Warning"), |
|
197 self.tr("Inconsistent"), |
|
198 self.tr("Tabs after Spaces"), |
|
199 self.tr("Spaces"), |
|
200 self.tr("Tabs"), |
|
201 ]) |
|
202 self.pythonBadIndentationComboBox.setCurrentIndex( |
|
203 Preferences.getEditor("PythonBadIndentation")) |
195 self.foldPythonCommentCheckBox.setChecked( |
204 self.foldPythonCommentCheckBox.setChecked( |
196 Preferences.getEditor("PythonFoldComment")) |
205 Preferences.getEditor("PythonFoldComment")) |
197 self.foldPythonStringCheckBox.setChecked( |
206 self.foldPythonStringCheckBox.setChecked( |
198 Preferences.getEditor("PythonFoldString")) |
207 Preferences.getEditor("PythonFoldString")) |
199 self.pythonBadIndentationCheckBox.setChecked( |
|
200 Preferences.getEditor("PythonBadIndentation")) |
|
201 self.pythonAutoindentCheckBox.setChecked( |
208 self.pythonAutoindentCheckBox.setChecked( |
202 Preferences.getEditor("PythonAutoIndent")) |
209 Preferences.getEditor("PythonAutoIndent")) |
203 self.pythonV2UnicodeAllowedCheckBox.setChecked( |
210 self.pythonV2UnicodeAllowedCheckBox.setChecked( |
204 Preferences.getEditor("PythonAllowV2Unicode")) |
211 Preferences.getEditor("PythonAllowV2Unicode")) |
205 self.pythonV3BinaryAllowedCheckBox.setChecked( |
212 self.pythonV3BinaryAllowedCheckBox.setChecked( |
479 Preferences.setEditor( |
486 Preferences.setEditor( |
480 "PythonFoldString", |
487 "PythonFoldString", |
481 self.foldPythonStringCheckBox.isChecked()) |
488 self.foldPythonStringCheckBox.isChecked()) |
482 Preferences.setEditor( |
489 Preferences.setEditor( |
483 "PythonBadIndentation", |
490 "PythonBadIndentation", |
484 self.pythonBadIndentationCheckBox.isChecked()) |
491 self.pythonBadIndentationComboBox.currentIndex()) |
485 Preferences.setEditor( |
492 Preferences.setEditor( |
486 "PythonAutoIndent", |
493 "PythonAutoIndent", |
487 self.pythonAutoindentCheckBox.isChecked()) |
494 self.pythonAutoindentCheckBox.isChecked()) |
488 Preferences.setEditor( |
495 Preferences.setEditor( |
489 "PythonAllowV2Unicode", |
496 "PythonAllowV2Unicode", |