##// END OF EJS Templates
docstring fix in CloseEvent to conform to standards
Erik Tollerud -
Show More
@@ -58,8 +58,11 b' class MainWindow(QtGui.QMainWindow):'
58 #---------------------------------------------------------------------------
58 #---------------------------------------------------------------------------
59
59
60 def closeEvent(self, event):
60 def closeEvent(self, event):
61 """ Reimplemented to prompt the user and close the kernel cleanly, or
61 """ Close the window and the kernel (if necessary).
62 close without prompt only if the exit magic is used.
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 keepkernel = None #Use the prompt by default
67 keepkernel = None #Use the prompt by default
65 if hasattr(self._frontend,'_keep_kernel_on_exit'): #set by exit magic
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