PipInterface/PipFreezeDialog.py

branch
pypi
changeset 6798
3985c1a67fa2
parent 6782
390a45748883
child 6826
c6dda2cbe081
--- a/PipInterface/PipFreezeDialog.py	Thu Feb 21 19:55:35 2019 +0100
+++ b/PipInterface/PipFreezeDialog.py	Fri Feb 22 19:34:44 2019 +0100
@@ -54,12 +54,6 @@
         
         self.__pip = pip
         
-        self.venvComboBox.addItem(pip.getDefaultEnvironmentString())
-        projectVenv = self.__pip.getProjectEnvironmentString()
-        if projectVenv:
-            self.venvComboBox.addItem(projectVenv)
-        self.venvComboBox.addItems(pip.getVirtualenvNames())
-        
         self.__requirementsEdited = False
         self.__requirementsAvailable = False
         
@@ -75,16 +69,6 @@
         QApplication.restoreOverrideCursor()
         e.accept()
     
-    @pyqtSlot(str)
-    def on_venvComboBox_activated(self, txt):
-        """
-        Private slot handling the selection of a virtual environment.
-        
-        @param txt virtual environment
-        @type str
-        """
-        self.__refresh()
-    
     @pyqtSlot(bool)
     def on_localCheckBox_clicked(self, checked):
         """
@@ -140,14 +124,16 @@
         if ok:
             self.start()
     
-    def start(self):
+    def start(self, venvName):
         """
         Public method to start the command.
+        
+        @param venvName name of the environment to act upon
+        @type str
         """
         self.requirementsEdit.clear()
         self.__requirementsAvailable = False
         
-        venvName = self.venvComboBox.currentText()
         interpreter = self.__pip.getVirtualenvInterpreter(venvName)
         if not interpreter:
             return

eric ide

mercurial