diff --git a/IPython/frontend/qt/console/ipythonqt.py b/IPython/frontend/qt/console/ipythonqt.py index a243fbc..c350f2b 100644 --- a/IPython/frontend/qt/console/ipythonqt.py +++ b/IPython/frontend/qt/console/ipythonqt.py @@ -58,8 +58,11 @@ class MainWindow(QtGui.QMainWindow): #--------------------------------------------------------------------------- def closeEvent(self, event): - """ Reimplemented to prompt the user and close the kernel cleanly, or - close without prompt only if the exit magic is used. + """ Close the window and the kernel (if necessary). + + This will prompt the user if they are finished with the kernel, and if + so, closes the kernel cleanly. Alternatively, if the exit magic is used, + it closes without prompt. """ keepkernel = None #Use the prompt by default if hasattr(self._frontend,'_keep_kernel_on_exit'): #set by exit magic