Author: bugman Date: Wed Mar 26 17:59:15 2014 New Revision: 22539 URL: http://svn.gna.org/viewcvs/relax?rev=22539&view=rev Log: Improved the user feedback when executing a user function in the GUI. The busy cursor is now turned on at the start of the user function wizard page method _apply() and turned off again at the end. This would avoid user confusion, thinking that the program has frozen (as was the case in bug #21862, https://gna.org/bugs/?21862). Modified: trunk/gui/wizards/wiz_objects.py Modified: trunk/gui/wizards/wiz_objects.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/wizards/wiz_objects.py?rev=22539&r1=22538&r2=22539&view=diff ============================================================================== --- trunk/gui/wizards/wiz_objects.py (original) +++ trunk/gui/wizards/wiz_objects.py Wed Mar 26 17:59:15 2014 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2010-2013 Edward d'Auvergne # +# Copyright (C) 2010-2014 Edward d'Auvergne # # # # This file is part of the program relax (http://www.nmr-relax.com). # # # @@ -157,11 +157,16 @@ @type event: wx event """ + # A bit of user feedback. + wx.BeginBusyCursor() + # Execute. self.exec_status = self.on_execute() # Execution failure. if not self.exec_status: + if wx.IsBusy(): + wx.EndBusyCursor() return # Finished. @@ -169,6 +174,10 @@ # Execute the on_apply() method. self.on_apply() + + # Turn off the busy cursor if needed. + if wx.IsBusy(): + wx.EndBusyCursor() def _build_main_section(self, sizer):