Author: bugman Date: Tue Jul 26 09:50:14 2011 New Revision: 13873 URL: http://svn.gna.org/viewcvs/relax?rev=13873&view=rev Log: The question() dialog now only appears when the status.show_gui flag is set. Modified: branches/gui_testing/gui/message.py Modified: branches/gui_testing/gui/message.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/message.py?rev=13873&r1=13872&r2=13873&view=diff ============================================================================== --- branches/gui_testing/gui/message.py (original) +++ branches/gui_testing/gui/message.py Tue Jul 26 09:50:14 2011 @@ -118,7 +118,13 @@ # The answer. answer = False - if dialog.ShowModal() == wx.ID_YES: + + # No GUI, so always answer True. + if not status.show_gui: + answer = True + + # Otherwise get the answer from the user. + elif dialog.ShowModal() == wx.ID_YES: answer = True # Return the answer.