Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
<!DOCTYPE html> <html><head> <title>eric7.VirtualEnv.VirtualenvAddEditDialog</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.VirtualEnv.VirtualenvAddEditDialog</h1> <p> Module implementing a dialog to enter the data of a virtual environment. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#VirtualenvAddEditDialog">VirtualenvAddEditDialog</a></td> <td>Class implementing a dialog to enter the data of a virtual environment.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="VirtualenvAddEditDialog" ID="VirtualenvAddEditDialog"></a> <h2>VirtualenvAddEditDialog</h2> <p> Class implementing a dialog to enter the data of a virtual environment. </p> <h3>Derived from</h3> QDialog, Ui_VirtualenvAddEditDialog <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="#VirtualenvAddEditDialog.__init__">VirtualenvAddEditDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.__detectPythonInterpreter">__detectPythonInterpreter</a></td> <td>Private method to search for a suitable Python interpreter inside an environment.</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.__updateOk">__updateOk</a></td> <td>Private slot to update the state of the OK button.</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.getMetaData">getMetaData</a></td> <td>Public method to retrieve the entered metadata.</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.on_environmentTypeComboBox_currentIndexChanged">on_environmentTypeComboBox_currentIndexChanged</a></td> <td>Private slot handling the selection of a virtual environment type.</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.on_globalCheckBox_toggled">on_globalCheckBox_toggled</a></td> <td>Private slot handling a change of the global check box state.</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> <td>Private slot to handle changes of the logical name.</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.on_pythonExecPicker_textChanged">on_pythonExecPicker_textChanged</a></td> <td>Private slot to handle changes of the virtual environment interpreter.</td> </tr> <tr> <td><a href="#VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged">on_targetDirectoryPicker_textChanged</a></td> <td>Private slot to handle changes of the virtual environment directory.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="VirtualenvAddEditDialog.__init__" ID="VirtualenvAddEditDialog.__init__"></a> <h4>VirtualenvAddEditDialog (Constructor)</h4> <b>VirtualenvAddEditDialog</b>(<i>manager, metadata=None, baseDir="", parent=None, </i>) <p> Constructor </p> <dl> <dt><i>manager</i> (VirtualenvManager)</dt> <dd> reference to the virtual environment manager </dd> <dt><i>metadata</i> (VirtualenvMetaData (optional))</dt> <dd> object containing the metadata of the virtual environment (defaults to None) </dd> <dt><i>baseDir</i> (str (optional))</dt> <dd> base directory for the virtual environments (defaults to "") </dd> <dt><i>parent</i> (QWidget (optional))</dt> <dd> reference to the parent widget (defaults to None) </dd> </dl> <a NAME="VirtualenvAddEditDialog.__detectPythonInterpreter" ID="VirtualenvAddEditDialog.__detectPythonInterpreter"></a> <h4>VirtualenvAddEditDialog.__detectPythonInterpreter</h4> <b>__detectPythonInterpreter</b>(<i>venvDirectory</i>) <p> Private method to search for a suitable Python interpreter inside an environment. </p> <dl> <dt><i>venvDirectory</i> (str)</dt> <dd> directory for the virtual environment </dd> </dl> <dl> <dt>Return:</dt> <dd> detected Python interpreter or empty string </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="VirtualenvAddEditDialog.__updateOk" ID="VirtualenvAddEditDialog.__updateOk"></a> <h4>VirtualenvAddEditDialog.__updateOk</h4> <b>__updateOk</b>(<i></i>) <p> Private slot to update the state of the OK button. </p> <a NAME="VirtualenvAddEditDialog.getMetaData" ID="VirtualenvAddEditDialog.getMetaData"></a> <h4>VirtualenvAddEditDialog.getMetaData</h4> <b>getMetaData</b>(<i></i>) <p> Public method to retrieve the entered metadata. </p> <dl> <dt>Return:</dt> <dd> metadata for the virtual environment </dd> </dl> <dl> <dt>Return Type:</dt> <dd> VirtualenvMetaData </dd> </dl> <a NAME="VirtualenvAddEditDialog.on_environmentTypeComboBox_currentIndexChanged" ID="VirtualenvAddEditDialog.on_environmentTypeComboBox_currentIndexChanged"></a> <h4>VirtualenvAddEditDialog.on_environmentTypeComboBox_currentIndexChanged</h4> <b>on_environmentTypeComboBox_currentIndexChanged</b>(<i>index</i>) <p> Private slot handling the selection of a virtual environment type. </p> <dl> <dt><i>index</i> (int)</dt> <dd> index of the selected virtual environment type </dd> </dl> <a NAME="VirtualenvAddEditDialog.on_globalCheckBox_toggled" ID="VirtualenvAddEditDialog.on_globalCheckBox_toggled"></a> <h4>VirtualenvAddEditDialog.on_globalCheckBox_toggled</h4> <b>on_globalCheckBox_toggled</b>(<i>checked</i>) <p> Private slot handling a change of the global check box state. </p> <dl> <dt><i>checked</i> (bool)</dt> <dd> state of the check box </dd> </dl> <a NAME="VirtualenvAddEditDialog.on_nameEdit_textChanged" ID="VirtualenvAddEditDialog.on_nameEdit_textChanged"></a> <h4>VirtualenvAddEditDialog.on_nameEdit_textChanged</h4> <b>on_nameEdit_textChanged</b>(<i>txt</i>) <p> Private slot to handle changes of the logical name. </p> <dl> <dt><i>txt</i> (str)</dt> <dd> current logical name </dd> </dl> <a NAME="VirtualenvAddEditDialog.on_pythonExecPicker_textChanged" ID="VirtualenvAddEditDialog.on_pythonExecPicker_textChanged"></a> <h4>VirtualenvAddEditDialog.on_pythonExecPicker_textChanged</h4> <b>on_pythonExecPicker_textChanged</b>(<i>txt</i>) <p> Private slot to handle changes of the virtual environment interpreter. </p> <dl> <dt><i>txt</i> (str)</dt> <dd> virtual environment interpreter </dd> </dl> <a NAME="VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged" ID="VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged"></a> <h4>VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged</h4> <b>on_targetDirectoryPicker_textChanged</b>(<i>txt</i>) <p> Private slot to handle changes of the virtual environment directory. </p> <dl> <dt><i>txt</i> (str)</dt> <dd> virtual environment directory </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>