src/eric7/PipInterface/PipPackagesWindow.py

branch
eric7
changeset 11215
d07c71a34adf
parent 11090
f5f5f5803935
--- a/src/eric7/PipInterface/PipPackagesWindow.py	Thu Apr 10 18:36:24 2025 +0200
+++ b/src/eric7/PipInterface/PipPackagesWindow.py	Thu Apr 10 18:39:29 2025 +0200
@@ -7,7 +7,7 @@
 Module implementing the standalone pip packages management window.
 """
 
-from PyQt6.QtCore import Qt
+from PyQt6.QtCore import Qt, pyqtSignal
 from PyQt6.QtWidgets import QDialogButtonBox, QVBoxLayout, QWidget
 
 from eric7.EricWidgets.EricApplication import ericApp
@@ -20,8 +20,12 @@
 class PipPackagesWindow(EricMainWindow):
     """
     Main window class for the standalone  pip packages manager.
+
+    @signal shutdown() emitted to indicate a shutdown of the application
     """
 
+    shutdown = pyqtSignal()
+
     def __init__(self, parent=None):
         """
         Constructor
@@ -65,4 +69,4 @@
         @param evt reference to the close event object
         @type QCloseEvent
         """
-        self.__pip.shutdown()
+        self.shutdown.emit()

eric ide

mercurial