--- a/src/eric7/MicroPython/MipPackageDialog.py Sat Apr 15 11:12:30 2023 +0200 +++ b/src/eric7/MicroPython/MipPackageDialog.py Sat Apr 15 18:22:09 2023 +0200 @@ -11,6 +11,7 @@ from PyQt6.QtWidgets import QDialog, QDialogButtonBox from semver import VersionInfo +from .MipLocalInstaller import MicroPythonPackageIndex from .Ui_MipPackageDialog import Ui_MipPackageDialog @@ -29,6 +30,13 @@ super().__init__(parent) self.setupUi(self) + self.indexEdit.setToolTip( + self.tr( + "Enter the URL of the package index. Leave empty to use the default" + " index ({0})." + ).format(MicroPythonPackageIndex) + ) + self.packageEdit.textChanged.connect(self.__updateOk) self.versionEdit.textChanged.connect(self.__updateOk) @@ -53,12 +61,15 @@ """ Public method to get the entered package installation data. - @return tuple containing the package name, package version and a flag, - indicating to install the package as '.mpy ' files - @rtype tuple of (str, str, bool) + @return tuple containing the package name, package version, a flag indicating + to install the package as '.mpy ' file, the target directory on the device + and the package index to get the package from + @rtype tuple of (str, str, bool, str, str) """ return ( self.packageEdit.text(), self.versionEdit.text(), self.mpyCheckBox.isChecked(), + self.targetEdit.text(), + self.indexEdit.text(), )