mailr13542 - /branches/gui_testing/gui/errors.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 08, 2011 - 15:30:
Author: bugman
Date: Fri Jul  8 15:30:44 2011
New Revision: 13542

URL: http://svn.gna.org/viewcvs/relax?rev=13542&view=rev
Log:
The GUI error message box now has a title.


Modified:
    branches/gui_testing/gui/errors.py

Modified: branches/gui_testing/gui/errors.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/errors.py?rev=13542&r1=13541&r2=13542&view=diff
==============================================================================
--- branches/gui_testing/gui/errors.py (original)
+++ branches/gui_testing/gui/errors.py Fri Jul  8 15:30:44 2011
@@ -36,8 +36,7 @@
     """
 
     # Show a dialog explaining the error.
-    msg = "RelaxError:  %s" % relax_error.text
-    wx.MessageBox(msg, caption='', style=wx.OK|wx.ICON_ERROR)
+    wx.MessageBox(relax_error.text, caption=relax_error.__class__.__name__, 
style=wx.OK|wx.ICON_ERROR)
 
     # Throw the error to terminate execution.
     raise relax_error




Related Messages


Powered by MHonArc, Updated Fri Jul 08 16:00:02 2011