diff -r 7d955b1995d5 -r eb28b4b6f7f5 ProjectPyramid/FormSelectionDialog.py --- a/ProjectPyramid/FormSelectionDialog.py Sat May 29 15:05:16 2021 +0200 +++ b/ProjectPyramid/FormSelectionDialog.py Tue Jun 01 19:37:46 2021 +0200 @@ -7,8 +7,8 @@ Module implementing a dialog to select the template type. """ -from PyQt5.QtCore import pyqtSlot -from PyQt5.QtWidgets import QDialog, QDialogButtonBox +from PyQt6.QtCore import pyqtSlot +from PyQt6.QtWidgets import QDialog, QDialogButtonBox from .Ui_FormSelectionDialog import Ui_FormSelectionDialog @@ -21,7 +21,8 @@ """ Constructor - @param parent reference to the parent widget (QWidget) + @param parent reference to the parent widget + @type QWidget """ super().__init__(parent) self.setupUi(self) @@ -144,7 +145,8 @@ ], } - self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) + self.__okButton = self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok) self.__okButton.setEnabled(False) templates = {} @@ -161,7 +163,8 @@ """ Private slot to act upon a change of the selected template type. - @param index selected index (integer) + @param index selected index + @type int """ templateType = self.typeCombo.itemData(index) if templateType: @@ -175,7 +178,8 @@ """ Public method to get the template text. - @return text of the template (string) + @return text of the template + @rtype str """ templateType = self.typeCombo.itemData(self.typeCombo.currentIndex()) return self.__templates[templateType][1]