Plugins/UiExtensionPlugins/PipInterface/PipPackagesInputDialog.py

changeset 6619
1d34365c082c
parent 6342
c79ecba9cde7
child 6624
9718755def80
equal deleted inserted replaced
6618:abcf40ec75af 6619:1d34365c082c
38 self.setWindowTitle(title) 38 self.setWindowTitle(title)
39 39
40 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 40 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
41 41
42 self.venvComboBox.addItem(pip.getDefaultEnvironmentString()) 42 self.venvComboBox.addItem(pip.getDefaultEnvironmentString())
43 projectVenv = self.__pip.getProjectEnvironmentString()
44 if projectVenv:
45 self.venvComboBox.addItem(projectVenv)
43 self.venvComboBox.addItems(pip.getVirtualenvNames()) 46 self.venvComboBox.addItems(pip.getVirtualenvNames())
44 47
45 self.userCheckBox.setVisible(install) 48 self.userCheckBox.setVisible(install)
46 49
47 msh = self.minimumSizeHint() 50 msh = self.minimumSizeHint()

eric ide

mercurial