Author: bugman Date: Thu Jan 28 11:37:25 2010 New Revision: 10483 URL: http://svn.gna.org/viewcvs/relax?rev=10483&view=rev Log: Added a docstring and comment to the cancel_calculation() method (which does nothing right now). Modified: branches/bieri_gui/gui_bieri/controller.py Modified: branches/bieri_gui/gui_bieri/controller.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/controller.py?rev=10483&r1=10482&r2=10483&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/controller.py (original) +++ branches/bieri_gui/gui_bieri/controller.py Thu Jan 28 11:37:25 2010 @@ -173,17 +173,26 @@ self.close_button.SetToolTipString("Close log window") - def cancel_calculation(self, event): # abort calculation - event.Skip() - - - def handler_close(self, event): - """Event handler for the close window action. + def cancel_calculation(self, event): + """Abort the calculations. + + This currently does nothing! @param event: The wx event. @type event: wx event """ + # Terminate the event. + event.Skip() + + + def handler_close(self, event): + """Event handler for the close window action. + + @param event: The wx event. + @type event: wx event + """ + # Close the window. self.Close()