Author: bugman Date: Thu May 3 10:04:14 2012 New Revision: 15893 URL: http://svn.gna.org/viewcvs/relax?rev=15893&view=rev Log: The read_only=True flag to wizard_elements.Base_value now sets a TextCtrl to the background colour. Modified: 1.3/gui/wizard_elements.py Modified: 1.3/gui/wizard_elements.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/wizard_elements.py?rev=15893&r1=15892&r2=15893&view=diff ============================================================================== --- 1.3/gui/wizard_elements.py (original) +++ 1.3/gui/wizard_elements.py Thu May 3 10:04:14 2012 @@ -102,8 +102,14 @@ # Set up the text control. self._field = wx.TextCtrl(parent, -1, '') - # Text control specific functions. - self._field.SetEditable(not read_only) + # Read only field. + if read_only: + # Cannot edit. + self._field.SetEditable(False) + + # Change the colour to the background. + colour = parent.GetBackgroundColour() + self._field.SetOwnBackgroundColour(colour) # Initialise the combo box input field. elif element_type == 'combo':