--- a/src/eric7/VirtualEnv/VirtualenvAddEditDialog.py Wed Oct 26 11:50:03 2022 +0200 +++ b/src/eric7/VirtualEnv/VirtualenvAddEditDialog.py Wed Oct 26 17:28:33 2022 +0200 @@ -34,6 +34,7 @@ isConda=False, isRemote=False, execPath="", + description="", baseDir="", parent=None, ): @@ -57,6 +58,8 @@ @param execPath search path string to be prepended to the PATH environment variable @type str + @param description descriptive text for the environment + @type str @param baseDir base directory for the virtual environments @type str @param parent reference to the parent widget @@ -110,6 +113,7 @@ self.anacondaCheckBox.setChecked(isConda) self.remoteCheckBox.setChecked(isRemote) self.execPathEdit.setText(execPath) + self.descriptionEdit.setPlainText(description) self.__updateOk() @@ -266,12 +270,12 @@ """ Public method to retrieve the entered data. - @return tuple containing the logical name, the directory, the - interpreter of the virtual environment, a flag indicating a - global environment, a flag indicating an Anaconda environment, - a flag indicating a remotely accessed environment and a string - to be prepended to the PATH environment variable - @rtype tuple of (str, str, str, bool, bool, bool, str) + @return tuple containing the logical name, the directory, the interpreter of the + virtual environment, a flag indicating a global environment, a flag + indicating an Anaconda environment, a flag indicating a remotely accessed + environment, a string to be prepended to the PATH environment variable and + a descriptive text + @rtype tuple of (str, str, str, bool, bool, bool, str, str) """ nativePaths = not self.remoteCheckBox.isChecked() return ( @@ -282,4 +286,5 @@ self.anacondaCheckBox.isChecked(), self.remoteCheckBox.isChecked(), self.execPathEdit.text(), + self.descriptionEdit.toPlainText(), )