--- a/src/eric7/DataViews/PyCoverageHtmlReportDialog.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/DataViews/PyCoverageHtmlReportDialog.py Wed Jul 13 14:55:47 2022 +0200 @@ -21,10 +21,11 @@ Class implementing a dialog to enter the parameters for a coverage HTML report. """ + def __init__(self, defaultDirectory, parent=None): """ Constructor - + @param defaultDirectory default directory for selecting the output directory @type str @@ -33,39 +34,39 @@ """ super().__init__(parent) self.setupUi(self) - + self.outputDirectoryPicker.setMode( - EricPathPickerModes.DIRECTORY_SHOW_FILES_MODE) + EricPathPickerModes.DIRECTORY_SHOW_FILES_MODE + ) self.outputDirectoryPicker.setDefaultDirectory(defaultDirectory) - - self.extraCssPicker.setMode( - EricPathPickerModes.OPEN_FILE_MODE) - - self.buttonBox.button( - QDialogButtonBox.StandardButton.Ok).setEnabled(False) - + + self.extraCssPicker.setMode(EricPathPickerModes.OPEN_FILE_MODE) + + self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False) + msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) - + @pyqtSlot(str) def on_outputDirectoryPicker_textChanged(self, directory): """ Private slot handling a change of the output directory. - + @param directory current text of the directory picker @type str """ - self.buttonBox.button( - QDialogButtonBox.StandardButton.Ok).setEnabled(bool(directory)) - + self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( + bool(directory) + ) + def getData(self): """ Public method to get the entered data. - + @return tuple containing the report title, the output directory, the path of a file containing extra CSS and a flag indicating to open the generated report in a browser - + @rtype tuple of (str, str, str, bool) """ title = self.titleEdit.text()