src/eric7/Preferences/ConfigurationPages/PipPage.py

branch
eric7
changeset 10742
7aa41173b44b
parent 10683
779cda568acb
child 10804
8fe0a5226fd5
equal deleted inserted replaced
10741:3a471962bb10 10742:7aa41173b44b
52 self.validitySpinBox.setValue( 52 self.validitySpinBox.setValue(
53 Preferences.getPip("VulnerabilityDbCacheValidity") // 3600 53 Preferences.getPip("VulnerabilityDbCacheValidity") // 3600
54 ) 54 )
55 # seconds converted to hours 55 # seconds converted to hours
56 56
57 self.noGlobalsCheckBox.setChecked(
58 Preferences.getPip("ExcludeGlobalEnvironments")
59 )
57 self.noCondaCheckBox.setChecked(Preferences.getPip("ExcludeCondaEnvironments")) 60 self.noCondaCheckBox.setChecked(Preferences.getPip("ExcludeCondaEnvironments"))
58 61
59 def save(self): 62 def save(self):
60 """ 63 """
61 Public slot to save the pip configuration. 64 Public slot to save the pip configuration.
76 Preferences.setPip( 79 Preferences.setPip(
77 "VulnerabilityDbCacheValidity", self.validitySpinBox.value() * 3600 80 "VulnerabilityDbCacheValidity", self.validitySpinBox.value() * 3600
78 ) 81 )
79 # hours converted to seconds 82 # hours converted to seconds
80 83
84 Preferences.setPip(
85 "ExcludeGlobalEnvironments", self.noGlobalsCheckBox.isChecked()
86 )
81 Preferences.setPip("ExcludeCondaEnvironments", self.noCondaCheckBox.isChecked()) 87 Preferences.setPip("ExcludeCondaEnvironments", self.noCondaCheckBox.isChecked())
82 88
83 89
84 def create(_dlg): 90 def create(_dlg):
85 """ 91 """

eric ide

mercurial