Show More
@@ -58,8 +58,11 class MainWindow(QtGui.QMainWindow): | |||
|
58 | 58 | #--------------------------------------------------------------------------- |
|
59 | 59 | |
|
60 | 60 | def closeEvent(self, event): |
|
61 | """ Reimplemented to prompt the user and close the kernel cleanly, or | |
|
62 | close without prompt only if the exit magic is used. | |
|
61 | """ Close the window and the kernel (if necessary). | |
|
62 | ||
|
63 | This will prompt the user if they are finished with the kernel, and if | |
|
64 | so, closes the kernel cleanly. Alternatively, if the exit magic is used, | |
|
65 | it closes without prompt. | |
|
63 | 66 | """ |
|
64 | 67 | keepkernel = None #Use the prompt by default |
|
65 | 68 | if hasattr(self._frontend,'_keep_kernel_on_exit'): #set by exit magic |
General Comments 0
You need to be logged in to leave comments.
Login now