61 "lines_after_imports": self.linesAfterImportsSpinBox, |
61 "lines_after_imports": self.linesAfterImportsSpinBox, |
62 "lines_between_sections": self.linesBetweenSectionsSpinBox, |
62 "lines_between_sections": self.linesBetweenSectionsSpinBox, |
63 "lines_between_types": self.linesBetweenTypesSpinBox, |
63 "lines_between_types": self.linesBetweenTypesSpinBox, |
64 "include_trailing_comma": self.trailingCommaCheckBox, |
64 "include_trailing_comma": self.trailingCommaCheckBox, |
65 "use_parentheses": self.parenthesesCheckBox, |
65 "use_parentheses": self.parenthesesCheckBox, |
|
66 "combine_as_imports": self.combineAsCheckBox, |
66 "sections": self.sectionsEdit, |
67 "sections": self.sectionsEdit, |
67 "extend_skip_glob": self.excludeEdit, |
68 "extend_skip_glob": self.excludeEdit, |
68 "case_sensitive": self.sortCaseSensitiveCheckBox, |
69 "case_sensitive": self.sortCaseSensitiveCheckBox, |
|
70 "force_sort_within_sections": self.sortIgnoreStyleCheckBox, |
|
71 "from_first": self.sortFromFirstCheckBox, |
69 } |
72 } |
70 |
73 |
71 self.__project = ( |
74 self.__project = ( |
72 ericApp().getObject("Project") if (withProject or onlyProject) else None |
75 ericApp().getObject("Project") if (withProject or onlyProject) else None |
73 ) |
76 ) |
223 else getattr(self.__defaultConfig, parameter) |
226 else getattr(self.__defaultConfig, parameter) |
224 ) |
227 ) |
225 for parameter in ( |
228 for parameter in ( |
226 "include_trailing_comma", |
229 "include_trailing_comma", |
227 "use_parentheses", |
230 "use_parentheses", |
|
231 "combine_as_imports", |
228 "case_sensitive", |
232 "case_sensitive", |
|
233 "force_sort_within_sections", |
|
234 "from_first", |
229 ): |
235 ): |
230 # set check box values |
236 # set check box values |
231 self.__parameterWidgetMapping[parameter].setChecked( |
237 self.__parameterWidgetMapping[parameter].setChecked( |
232 confDict[parameter] |
238 confDict[parameter] |
233 if parameter in confDict |
239 if parameter in confDict |
378 configDict[parameter] = self.__parameterWidgetMapping[parameter].value() |
384 configDict[parameter] = self.__parameterWidgetMapping[parameter].value() |
379 |
385 |
380 for parameter in ( |
386 for parameter in ( |
381 "include_trailing_comma", |
387 "include_trailing_comma", |
382 "use_parentheses", |
388 "use_parentheses", |
|
389 "combine_as_imports", |
383 "case_sensitive", |
390 "case_sensitive", |
|
391 "force_sort_within_sections", |
|
392 "from_first", |
384 ): |
393 ): |
385 if self.__parameterWidgetMapping[ |
394 if self.__parameterWidgetMapping[ |
386 parameter |
395 parameter |
387 ].isEnabled() and self.__parameterWidgetMapping[ |
396 ].isEnabled() and self.__parameterWidgetMapping[ |
388 parameter |
397 parameter |