--- a/src/eric7/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Fri Dec 22 17:24:07 2023 +0100 +++ b/src/eric7/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Fri Dec 22 19:45:17 2023 +0100 @@ -41,8 +41,10 @@ """ Constructor - @param parent parent widget (QWidget) + @param parent parent widget + @type QWidget @param fromEric flag indicating a call from within eric + @type bool """ super().__init__(parent) self.setupUi(self) @@ -119,9 +121,10 @@ Private method to insert a string into line edit and move cursor. @param s string to be inserted into the regexp line edit - (string) - @param steps number of characters to move the cursor (integer). - Negative steps moves cursor back, positives forward. + @type str + @param steps number of characters to move the cursor. Negative steps + move cursor back, positive steps forward. + @type int """ self.regexpTextEdit.insertPlainText(s) tc = self.regexpTextEdit.textCursor() @@ -304,7 +307,8 @@ """ Private slot called by a button of the button box clicked. - @param button button that was clicked (QAbstractButton) + @param button button that was clicked + @type QAbstractButton """ if button == self.validateButton: self.on_validateButton_clicked() @@ -460,6 +464,7 @@ data and will display the result in the table part of the dialog. @param startpos starting position for the regexp matching + @type int """ regex = self.regexpTextEdit.toPlainText() text = self.textTextEdit.toPlainText() @@ -614,9 +619,12 @@ """ Public method to get the source code. - @param indLevel indentation level (int) - @param indString string used for indentation (space or tab) (string) - @return generated code (string) + @param indLevel indentation level + @type int + @param indString string used for indentation (space or tab) + @type str + @return generated code + @rtype str """ # calculate the indentation string istring = indLevel * indString @@ -665,8 +673,10 @@ """ Constructor - @param parent parent widget (QWidget) + @param parent parent widget + @type QWidget @param fromEric flag indicating a call from within eric + @type bool """ super().__init__(parent) self.setModal(fromEric) @@ -689,9 +699,12 @@ """ Public method to get the source code. - @param indLevel indentation level (int) - @param indString string used for indentation (space or tab) (string) - @return generated code (string) + @param indLevel indentation level + @type int + @param indString string used for indentation (space or tab) + @type str + @return generated code + @rtype str """ return self.cw.getCode(indLevel, indString) @@ -705,7 +718,8 @@ """ Constructor - @param parent reference to the parent widget (QWidget) + @param parent reference to the parent widget + @type QWidget """ super().__init__(parent) self.cw = PyRegExpWizardWidget(self, fromEric=False)