# eric6.VirtualEnv.VirtualenvInterpreterSelectionDialog

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

### Global Attributes

None

### Classes

VirtualenvInterpreterSelectionDialog | Class implementing a dialog to enter the interpreter for a virtual environment.

### Functions

None

## VirtualenvInterpreterSelectionDialog

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

### Derived from

QDialog, Ui_VirtualenvInterpreterSelectionDialog

### Class Attributes

None

### Class Methods

None

### Methods

VirtualenvInterpreterSelectionDialog | Constructor
__updateOK | Private method to update the enabled status of the OK button.
getData | Public method to get the entered data.
on_pythonExecPicker_textChanged | Private slot to handle changes of the entered Python interpreter path.

### Static Methods

None

#### VirtualenvInterpreterSelectionDialog (Constructor)

VirtualenvInterpreterSelectionDialog(venvName, venvDirectory, parent=None)

Constructor

venvName (str)
  name for the virtual environment
venvDirectory (str)
  directory of the virtual environment
parent (QWidget)
  reference to the parent widget

#### VirtualenvInterpreterSelectionDialog.__updateOK

__updateOK()

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

#### VirtualenvInterpreterSelectionDialog.getData

getData()

Public method to get the entered data.

Returns:
  tuple containing the path of the selected Python interpreter and the Python variant

Return Type:
  tuple of (str, int)

#### VirtualenvInterpreterSelectionDialog.on_pythonExecPicker_textChanged

on_pythonExecPicker_textChanged(txt)

Private slot to handle changes of the entered Python interpreter path.

txt (str)
  entered Python interpreter path

Up