src/eric7/PipInterface/PipPackagesWidget.py

branch
eric7-maintenance
changeset 11248
1a9dbea918e4
parent 11155
e1843b6efa73
parent 11230
8a15b05eeee3
equal deleted inserted replaced
11198:9a1cb597911f 11248:1a9dbea918e4
194 projectVenv = self.__pip.getProjectEnvironmentString() 194 projectVenv = self.__pip.getProjectEnvironmentString()
195 if projectVenv: 195 if projectVenv:
196 self.environmentsComboBox.addItem(projectVenv) 196 self.environmentsComboBox.addItem(projectVenv)
197 self.environmentsComboBox.addItems( 197 self.environmentsComboBox.addItems(
198 self.__pip.getVirtualenvNames( 198 self.__pip.getVirtualenvNames(
199 noRemote=True,
200 noConda=Preferences.getPip("ExcludeCondaEnvironments"),
201 noGlobals=Preferences.getPip("ExcludeGlobalEnvironments"), 199 noGlobals=Preferences.getPip("ExcludeGlobalEnvironments"),
202 noServer=True, 200 filterList=("+standard",),
203 ) 201 )
204 ) 202 )
205 203
206 def __isPipAvailable(self): 204 def __isPipAvailable(self):
207 """ 205 """
404 402
405 @param name name of the selected Python environment 403 @param name name of the selected Python environment
406 @type str 404 @type str
407 """ 405 """
408 if name != self.__selectedEnvironment: 406 if name != self.__selectedEnvironment:
407 self.packageSearchEdit.clear()
408
409 if name: 409 if name:
410 self.environmentPathLabel.setPath( 410 self.environmentPathLabel.setPath(
411 self.__pip.getVirtualenvInterpreter(name) 411 self.__pip.getVirtualenvInterpreter(name)
412 ) 412 )
413 if self.viewToggleButton.isChecked():
414 self.__refreshDependencyTree()
415 else:
416 self.__refreshPackagesList()
413 else: 417 else:
414 self.environmentPathLabel.setPath("") 418 self.environmentPathLabel.setPath("")
415 if self.__packageDetailsDialog is not None: 419 if self.__packageDetailsDialog is not None:
416 self.__packageDetailsDialog.close() 420 self.__packageDetailsDialog.close()
417 421 self.packagesList.clear()
418 self.packageSearchEdit.clear() 422 self.dependenciesList.clear()
419 423
420 if self.viewToggleButton.isChecked():
421 self.__refreshDependencyTree()
422 else:
423 self.__refreshPackagesList()
424 self.__selectedEnvironment = name 424 self.__selectedEnvironment = name
425
426 self.__updateActionButtons() 425 self.__updateActionButtons()
427 426
428 @pyqtSlot() 427 @pyqtSlot()
429 def on_localCheckBox_clicked(self): 428 def on_localCheckBox_clicked(self):
430 """ 429 """

eric ide

mercurial