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() |