eric6.VirtualEnv.VirtualenvConfigurationDialog

Module implementing a dialog to enter the parameters for the virtual environment.

Global Attributes

None

Classes

VirtualenvConfigurationDialog Class implementing a dialog to enter the parameters for the virtual environment.

Functions

None


VirtualenvConfigurationDialog

Class implementing a dialog to enter the parameters for the virtual environment.

Derived from

QDialog, Ui_VirtualenvConfigurationDialog

Class Attributes

None

Class Methods

None

Methods

VirtualenvConfigurationDialog Constructor
__generateArguments Private method to generate the process arguments.
__generateTargetDir Private method to generate a valid target directory path.
__setPyvenvVersion Private method to determine the pyvenv version and set the respective label.
__setVirtualenvVersion Private method to determine the virtualenv version and set the respective label.
__updateOK Private method to update the enabled status of the OK button.
__updateUi Private method to update the UI depending on the selected virtual environment creator (virtualenv or pyvenv).
getData Public method to retrieve the dialog data.
on_pythonExecPicker_textChanged Private slot to react to a change of the Python executable.
on_pyvenvButton_toggled Private slot to react to the selection of 'pyvenv'.
on_targetDirectoryPicker_textChanged Private slot handling a change of the target directory.
on_virtualenvButton_toggled Private slot to react to the selection of 'virtualenv'.

Static Methods

None

VirtualenvConfigurationDialog (Constructor)

VirtualenvConfigurationDialog(parent=None)

Constructor

parent (QWidget)
reference to the parent widget

VirtualenvConfigurationDialog.__generateArguments

__generateArguments()

Private method to generate the process arguments.

Returns:
process arguments
Return Type:
list of str

VirtualenvConfigurationDialog.__generateTargetDir

__generateTargetDir()

Private method to generate a valid target directory path.

Returns:
target directory path
Return Type:
str

VirtualenvConfigurationDialog.__setPyvenvVersion

__setPyvenvVersion()

Private method to determine the pyvenv version and set the respective label.

VirtualenvConfigurationDialog.__setVirtualenvVersion

__setVirtualenvVersion()

Private method to determine the virtualenv version and set the respective label.

VirtualenvConfigurationDialog.__updateOK

__updateOK()

Private method to update the enabled status of the OK button.

VirtualenvConfigurationDialog.__updateUi

__updateUi()

Private method to update the UI depending on the selected virtual environment creator (virtualenv or pyvenv).

VirtualenvConfigurationDialog.getData

getData()

Public method to retrieve the dialog data.

Returns:
tuple containing a flag indicating the pyvenv selection, the process arguments, a name for the virtual environment, a flag indicating to open the target directory after creation, a flag indicating to write a log file, a flag indicating to write a script, the name of the target directory and the name of the Python interpreter to use
Return Type:
tuple of (bool, list of str, str, bool, bool, bool, str, str)

VirtualenvConfigurationDialog.on_pythonExecPicker_textChanged

on_pythonExecPicker_textChanged(txt)

Private slot to react to a change of the Python executable.

txt (str)
contents of the picker's line edit

VirtualenvConfigurationDialog.on_pyvenvButton_toggled

on_pyvenvButton_toggled(checked)

Private slot to react to the selection of 'pyvenv'.

checked (bool)
state of the checkbox

VirtualenvConfigurationDialog.on_targetDirectoryPicker_textChanged

on_targetDirectoryPicker_textChanged(txt)

Private slot handling a change of the target directory.

txt (str)
target directory

VirtualenvConfigurationDialog.on_virtualenvButton_toggled

on_virtualenvButton_toggled(checked)

Private slot to react to the selection of 'virtualenv'.

checked (bool)
state of the checkbox
Up