--- a/ProjectPyramid/CreateParametersDialog.py Sat May 29 15:05:16 2021 +0200 +++ b/ProjectPyramid/CreateParametersDialog.py Tue Jun 01 19:37:46 2021 +0200 @@ -7,10 +7,10 @@ Module implementing a dialog for entering the create parameters. """ -from PyQt5.QtCore import pyqtSlot, QProcess -from PyQt5.QtWidgets import QDialog, QDialogButtonBox +from PyQt6.QtCore import pyqtSlot, QProcess +from PyQt6.QtWidgets import QDialog, QDialogButtonBox -from E5Gui import E5MessageBox +from EricWidgets import EricMessageBox from .Ui_CreateParametersDialog import Ui_CreateParametersDialog @@ -25,13 +25,16 @@ """ Constructor - @param project reference to the project object (Project) - @param parent reference to the parent widget (QWidget) + @param project reference to the project object + @type Project + @param parent reference to the parent widget + @type QWidget """ super().__init__(parent) self.setupUi(self) - self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) + self.__okButton = self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok) self.__okButton.setEnabled(False) errMsg = "" @@ -61,7 +64,7 @@ self.__prepareScaffoldString(line)) self.scaffoldCombo.setCurrentIndex(0) else: - E5MessageBox.critical( + EricMessageBox.critical( None, self.tr('Process Generation Error'), errMsg) @@ -74,16 +77,18 @@ """ Private slot to handle changes of the site name. - @param text text of the site entry (string) + @param text text of the site entry + @type str """ self.__updateUi() @pyqtSlot(str) - def on_scaffoldCombo_currentIndexChanged(self, text): + def on_scaffoldCombo_currentTextChanged(self, text): """ Private slot to handle changes of the selected scaffold. - @param text text of the combo box (string) + @param text text of the combo box + @type str """ self.__updateUi() @@ -114,9 +119,10 @@ """ Public method to get the data. - @return tuple giving the scaffold (string), the project name (string), - a flag indicating to overwrite existing files (boolean) and a flag - indicating to simulate the creation (boolean) + @return tuple giving the scaffold, the project name, a flag indicating + to overwrite existing files and a flag indicating to simulate the + creation + @rtype tuple of (str, str, bool, bool) """ return ( self.scaffoldCombo.currentText().split(":")[0],