eric6.Plugins.UiExtensionPlugins.VirtualenvInterface.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_extraSearchPathButton_clicked Private slot to select the extra search path via a directory selection dialog.
on_pythonExecButton_clicked Private slot to select a Python interpreter via a file selection dialog.
on_pythonExecEdit_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_targetDirectoryButton_clicked Private slot to select the target directory via a directory selection dialog.
on_targetDirectoryEdit_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
reference to the parent widget (QWidget)

VirtualenvConfigurationDialog.__generateArguments

__generateArguments()

Private method to generate the process arguments.

Returns:
process arguments (list of string)

VirtualenvConfigurationDialog.__generateTargetDir

__generateTargetDir()

Private method to generate a valid target directory path.

Returns:
target directory path (string)

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 (boolean), the process arguments (list of string), a flag indicating to open the target directory after creation (boolean), a flag indicating to write a log file (boolean), a flag indicating to write a script (boolean), the name of the target directory (string) and the name of the python interpreter to use (string)

VirtualenvConfigurationDialog.on_extraSearchPathButton_clicked

on_extraSearchPathButton_clicked()

Private slot to select the extra search path via a directory selection dialog.

VirtualenvConfigurationDialog.on_pythonExecButton_clicked

on_pythonExecButton_clicked()

Private slot to select a Python interpreter via a file selection dialog.

VirtualenvConfigurationDialog.on_pythonExecEdit_textChanged

on_pythonExecEdit_textChanged(txt)

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

txt
contents of the line edit (string)

VirtualenvConfigurationDialog.on_pyvenvButton_toggled

on_pyvenvButton_toggled(checked)

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

checked
state of the checkbox (boolean)

VirtualenvConfigurationDialog.on_targetDirectoryButton_clicked

on_targetDirectoryButton_clicked()

Private slot to select the target directory via a directory selection dialog.

VirtualenvConfigurationDialog.on_targetDirectoryEdit_textChanged

on_targetDirectoryEdit_textChanged(txt)

Private slot handling a change of the target directory.

txt
target directory (string)

VirtualenvConfigurationDialog.on_virtualenvButton_toggled

on_virtualenvButton_toggled(checked)

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

checked
state of the checkbox (boolean)
Up