src/eric7/PipInterface/PipPackagesWindow.py

branch
eric7
changeset 11215
d07c71a34adf
parent 11090
f5f5f5803935
equal deleted inserted replaced
11214:8cb6b7651074 11215:d07c71a34adf
5 5
6 """ 6 """
7 Module implementing the standalone pip packages management window. 7 Module implementing the standalone pip packages management window.
8 """ 8 """
9 9
10 from PyQt6.QtCore import Qt 10 from PyQt6.QtCore import Qt, pyqtSignal
11 from PyQt6.QtWidgets import QDialogButtonBox, QVBoxLayout, QWidget 11 from PyQt6.QtWidgets import QDialogButtonBox, QVBoxLayout, QWidget
12 12
13 from eric7.EricWidgets.EricApplication import ericApp 13 from eric7.EricWidgets.EricApplication import ericApp
14 from eric7.EricWidgets.EricMainWindow import EricMainWindow 14 from eric7.EricWidgets.EricMainWindow import EricMainWindow
15 from eric7.PipInterface.Pip import Pip 15 from eric7.PipInterface.Pip import Pip
18 18
19 19
20 class PipPackagesWindow(EricMainWindow): 20 class PipPackagesWindow(EricMainWindow):
21 """ 21 """
22 Main window class for the standalone pip packages manager. 22 Main window class for the standalone pip packages manager.
23
24 @signal shutdown() emitted to indicate a shutdown of the application
23 """ 25 """
26
27 shutdown = pyqtSignal()
24 28
25 def __init__(self, parent=None): 29 def __init__(self, parent=None):
26 """ 30 """
27 Constructor 31 Constructor
28 32
63 Protected method handling a close event. 67 Protected method handling a close event.
64 68
65 @param evt reference to the close event object 69 @param evt reference to the close event object
66 @type QCloseEvent 70 @type QCloseEvent
67 """ 71 """
68 self.__pip.shutdown() 72 self.shutdown.emit()

eric ide

mercurial