Documentation/Source/eric6.VirtualEnv.VirtualenvInterpreterSelectionDialog.html

Sat, 16 Jun 2018 13:34:22 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 16 Jun 2018 13:34:22 +0200
changeset 6349
17b3c75913de
parent 6339
d765c3204c71
permissions
-rw-r--r--

VirtualEnv: improved the virtual env handling.

<!DOCTYPE html>
<html><head>
<title>eric6.VirtualEnv.VirtualenvInterpreterSelectionDialog</title>
<meta charset="UTF-8">
<style>
body {
    background: #EDECE6;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: white; background: #9D936E; }
h4 { color: white; background: #9D936E; }
    
a { color: #BA6D36; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric6.VirtualEnv.VirtualenvInterpreterSelectionDialog</h1>
<p>
Module implementing a dialog to enter the interpreter for a virtual
environment.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#VirtualenvInterpreterSelectionDialog">VirtualenvInterpreterSelectionDialog</a></td>
<td>Class implementing a dialog to enter the interpreter for a virtual environment.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="VirtualenvInterpreterSelectionDialog" ID="VirtualenvInterpreterSelectionDialog"></a>
<h2>VirtualenvInterpreterSelectionDialog</h2>
<p>
    Class implementing a dialog to enter the interpreter for a virtual
    environment.
</p>
<h3>Derived from</h3>
QDialog, Ui_VirtualenvInterpreterSelectionDialog
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#VirtualenvInterpreterSelectionDialog.__init__">VirtualenvInterpreterSelectionDialog</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#VirtualenvInterpreterSelectionDialog.__updateOK">__updateOK</a></td>
<td>Private method to update the enabled status of the OK button.</td>
</tr><tr>
<td><a href="#VirtualenvInterpreterSelectionDialog.getData">getData</a></td>
<td>Public method to get the entered data.</td>
</tr><tr>
<td><a href="#VirtualenvInterpreterSelectionDialog.on_pythonExecPicker_textChanged">on_pythonExecPicker_textChanged</a></td>
<td>Private slot to handle changes of the entered Python interpreter path.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="VirtualenvInterpreterSelectionDialog.__init__" ID="VirtualenvInterpreterSelectionDialog.__init__"></a>
<h4>VirtualenvInterpreterSelectionDialog (Constructor)</h4>
<b>VirtualenvInterpreterSelectionDialog</b>(<i>venvName, venvDirectory, parent=None</i>)
<p>
        Constructor
</p><dl>
<dt><i>venvName</i> (str)</dt>
<dd>
name for the virtual environment
</dd><dt><i>venvDirectory</i> (str)</dt>
<dd>
directory of the virtual environment
</dd><dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl><a NAME="VirtualenvInterpreterSelectionDialog.__updateOK" ID="VirtualenvInterpreterSelectionDialog.__updateOK"></a>
<h4>VirtualenvInterpreterSelectionDialog.__updateOK</h4>
<b>__updateOK</b>(<i></i>)
<p>
        Private method to update the enabled status of the OK button.
</p><a NAME="VirtualenvInterpreterSelectionDialog.getData" ID="VirtualenvInterpreterSelectionDialog.getData"></a>
<h4>VirtualenvInterpreterSelectionDialog.getData</h4>
<b>getData</b>(<i></i>)
<p>
        Public method to get the entered data.
</p><dl>
<dt>Returns:</dt>
<dd>
tuple containing the path of the selected Python interpreter
            and the Python variant
</dd>
</dl><dl>
<dt>Return Type:</dt>
<dd>
tuple of (str, int)
</dd>
</dl><a NAME="VirtualenvInterpreterSelectionDialog.on_pythonExecPicker_textChanged" ID="VirtualenvInterpreterSelectionDialog.on_pythonExecPicker_textChanged"></a>
<h4>VirtualenvInterpreterSelectionDialog.on_pythonExecPicker_textChanged</h4>
<b>on_pythonExecPicker_textChanged</b>(<i>txt</i>)
<p>
        Private slot to handle changes of the entered Python interpreter path.
</p><dl>
<dt><i>txt</i> (str)</dt>
<dd>
entered Python interpreter path
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial