Author: bugman Date: Thu Aug 4 09:10:41 2011 New Revision: 14095 URL: http://svn.gna.org/viewcvs/relax?rev=14095&view=rev Log: RelaxWarnings are now coloured 'orange red' in the log control of the relax controller. Modified: branches/gui_testing/gui/controller.py Modified: branches/gui_testing/gui/controller.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/controller.py?rev=14095&r1=14094&r2=14095&view=diff ============================================================================== --- branches/gui_testing/gui/controller.py (original) +++ branches/gui_testing/gui/controller.py Thu Aug 4 09:10:41 2011 @@ -501,6 +501,9 @@ # Create the relax prompt style (assignment 2). self.StyleSetForeground(2, wx.NamedColour('blue')) + # Create the relax warning style (assignment 3). + self.StyleSetForeground(3, wx.NamedColour('orange red')) + # Bind events. self.Bind(wx.EVT_KEY_DOWN, self.capture_keys) @@ -552,6 +555,13 @@ # Start a new section. string_list.append('') stream_list.append(stream) + + # The relax warnings on STDERR. + if msg[0:13] == 'RelaxWarning:': + # Add the warning. + string_list.append(msg) + stream_list.append(3) + continue # A different stream. if stream_list[-1] != stream: