src/eric7/Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py

branch
eric7
changeset 10315
4102a69604eb
parent 9653
e67609152c5e
child 10437
2f70ca07f0af
--- a/src/eric7/Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py	Thu Nov 16 15:56:12 2023 +0100
+++ b/src/eric7/Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py	Thu Nov 16 16:45:23 2023 +0100
@@ -9,7 +9,7 @@
 
 import os.path
 
-from PyQt6.QtCore import QProcess, QTimer
+from PyQt6.QtCore import QProcess, Qt, QTimer, pyqtSignal
 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
 
 from eric7 import Preferences
@@ -24,8 +24,12 @@
 
     This class starts a QProcess and displays a dialog that
     shows the output of the documentation command process.
+
+    @signal processFinished() emitted to indicate the eric7_doc process finished
     """
 
+    processFinished = pyqtSignal()
+
     def __init__(self, cmdname, parent=None):
         """
         Constructor
@@ -34,8 +38,8 @@
         @param parent parent widget of this dialog (QWidget)
         """
         super().__init__(parent)
-        self.setModal(True)
         self.setupUi(self)
+        self.setWindowFlags(Qt.WindowType.Window)
 
         self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True)
@@ -128,6 +132,8 @@
         self.contents.insertPlainText(self.tr("\n{0} finished.\n").format(self.cmdname))
         self.contents.ensureCursorVisible()
 
+        self.processFinished.emit()
+
     def __readStdout(self):
         """
         Private slot to handle the readyReadStandardOutput signal.

eric ide

mercurial