src/eric7/MicroPython/MicroPythonWindow.py

branch
eric7
changeset 11215
d07c71a34adf
parent 11181
52e30cc024aa
equal deleted inserted replaced
11214:8cb6b7651074 11215:d07c71a34adf
45 Class implementing the standalone MicroPython window. 45 Class implementing the standalone MicroPython window.
46 46
47 @signal editorCountChanged(count) emitted whenever the count of open editors 47 @signal editorCountChanged(count) emitted whenever the count of open editors
48 changed 48 changed
49 @signal preferencesChanged() emitted after the preferences were changed 49 @signal preferencesChanged() emitted after the preferences were changed
50 @signal shutdown() emitted to indicate a shutdown of the application
50 """ 51 """
51 52
52 editorCountChanged = pyqtSignal(int) 53 editorCountChanged = pyqtSignal(int)
53 preferencesChanged = pyqtSignal() 54 preferencesChanged = pyqtSignal()
55 shutdown = pyqtSignal()
54 56
55 def __init__(self, parent=None): 57 def __init__(self, parent=None):
56 """ 58 """
57 Constructor 59 Constructor
58 60
138 ) 140 )
139 141
140 for editor in self.__editors[:]: 142 for editor in self.__editors[:]:
141 with contextlib.suppress(RuntimeError): 143 with contextlib.suppress(RuntimeError):
142 editor.close() 144 editor.close()
145
146 self.shutdown.emit()
143 147
144 evt.accept() 148 evt.accept()
145 149
146 def __sslErrors(self, reply, errors): 150 def __sslErrors(self, reply, errors):
147 """ 151 """

eric ide

mercurial