57 self.noGlobalsCheckBox.setChecked( |
57 self.noGlobalsCheckBox.setChecked( |
58 Preferences.getPip("ExcludeGlobalEnvironments") |
58 Preferences.getPip("ExcludeGlobalEnvironments") |
59 ) |
59 ) |
60 self.noCondaCheckBox.setChecked(Preferences.getPip("ExcludeCondaEnvironments")) |
60 self.noCondaCheckBox.setChecked(Preferences.getPip("ExcludeCondaEnvironments")) |
61 |
61 |
|
62 self.initColour( |
|
63 "DependencyHighlightColor", |
|
64 self.searchMarkerColourButton, |
|
65 Preferences.getPip, |
|
66 ) |
|
67 |
62 def save(self): |
68 def save(self): |
63 """ |
69 """ |
64 Public slot to save the pip configuration. |
70 Public slot to save the pip configuration. |
65 """ |
71 """ |
66 safetyDbUrl = self.safetyDbMirrorEdit.text().strip() |
72 safetyDbUrl = self.safetyDbMirrorEdit.text().strip() |
84 Preferences.setPip( |
90 Preferences.setPip( |
85 "ExcludeGlobalEnvironments", self.noGlobalsCheckBox.isChecked() |
91 "ExcludeGlobalEnvironments", self.noGlobalsCheckBox.isChecked() |
86 ) |
92 ) |
87 Preferences.setPip("ExcludeCondaEnvironments", self.noCondaCheckBox.isChecked()) |
93 Preferences.setPip("ExcludeCondaEnvironments", self.noCondaCheckBox.isChecked()) |
88 |
94 |
|
95 self.saveColours(Preferences.setPip) |
|
96 |
89 |
97 |
90 def create(_dlg): |
98 def create(_dlg): |
91 """ |
99 """ |
92 Module function to create the configuration page. |
100 Module function to create the configuration page. |
93 |
101 |