eric6.VirtualEnv.VirtualenvAddEditDialog
Module implementing a dialog to enter the data of a virtual environment.
Global Attributes
Classes
Functions
VirtualenvAddEditDialog
Class implementing a dialog to enter the data of a virtual environment.
Derived from
QDialog, Ui_VirtualenvAddEditDialog
Class Attributes
Class Methods
Methods
Static Methods
VirtualenvAddEditDialog (Constructor)
VirtualenvAddEditDialog(manager, venvName="", venvDirectory="", venvInterpreter="", venvVariant=3, isGlobal=False, isConda=False, execPath="", parent=None)
Constructor
- manager (VirtualenvManager)
-
reference to the virtual environment manager
- venvName (str)
-
logical name of a virtual environment for editing
- venvDirectory (str)
-
directory of the virtual environment
- venvInterpreter (str)
-
Python interpreter of the virtual environment
- venvVariant (int)
-
Python variant of the virtual environment
- isGlobal (bool)
-
flag indicating a global environment
- isConda (bool)
-
flag indicating an Anaconda virtual environment
- execPath (str)
-
search path string to be prepended to the PATH
environment variable
- parent (QWidget)
-
reference to the parent widget
VirtualenvAddEditDialog.__updateOk
__updateOk()
Private slot to update the state of the OK button.
VirtualenvAddEditDialog.getData
getData()
Public method to retrieve the entered data.
- Returns:
-
tuple containing the logical name, the directory, the
interpreter of the virtual environment, the Python variant,
a flag indicating a global environment, a flag indicating an
Anaconda environment and a string to be prepended to the PATH
environment variable
- Return Type:
-
tuple of (str, str, str, int, bool,bool, str)
VirtualenvAddEditDialog.on_anacondaCheckBox_clicked
on_anacondaCheckBox_clicked(checked)
Private slot handling a user click on this check box.
- checked (bool)
-
state of the check box
VirtualenvAddEditDialog.on_globalCheckBox_toggled
on_globalCheckBox_toggled(checked)
Private slot handling a change of the global check box state.
- checked (bool)
-
state of the check box
VirtualenvAddEditDialog.on_nameEdit_textChanged
on_nameEdit_textChanged(txt)
Private slot to handle changes of the logical name.
- txt (str)
-
current logical name
VirtualenvAddEditDialog.on_pythonExecPicker_textChanged
on_pythonExecPicker_textChanged(txt)
Private slot to handle changes of the virtual environment interpreter.
- txt (str)
-
virtual environment interpreter
VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged
on_targetDirectoryPicker_textChanged(txt)
Private slot to handle changes of the virtual environment directory.
- txt (str)
-
virtual environment directory