Author: bugman Date: Wed Jul 13 09:34:54 2011 New Revision: 13568 URL: http://svn.gna.org/viewcvs/relax?rev=13568&view=rev Log: Non-editable text fields in the auto analysis pages are now set to the background colour of the page. Modified: branches/gui_testing/gui/analyses/base.py Modified: branches/gui_testing/gui/analyses/base.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/base.py?rev=13568&r1=13567&r2=13568&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/base.py (original) +++ branches/gui_testing/gui/analyses/base.py Wed Jul 13 09:34:54 2011 @@ -313,7 +313,12 @@ # The font and control properties. field.SetMinSize((width, height)) field.SetFont(self.gui.font_normal) + + # Editable (change the colour if not). field.SetEditable(editable) + if not editable: + colour = self.parent.GetBackgroundColour() + field.SetOwnBackgroundColour(colour) # Add the control to the box. box.Add(field, 1, wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)