# HG changeset patch # User laurent # Date 1260214975 -3600 # Node ID 9ee851841d2899535bf0707b0e35c66e42e2d5fc # Parent fecd4f6c01ed31e5b20e077d1aa55edcadef1a2a Adding value colour change in DebugVariablePanel when variable is forced diff -r fecd4f6c01ed -r 9ee851841d28 PLCOpenEditor.py --- a/PLCOpenEditor.py Mon Dec 07 13:38:16 2009 +0100 +++ b/PLCOpenEditor.py Mon Dec 07 20:42:55 2009 +0100 @@ -3970,6 +3970,11 @@ for row in range(self.GetNumberRows()): for col in range(self.GetNumberCols()): + if self.GetColLabelValue(col, False) == "Value": + if self.IsForced(row): + grid.SetCellTextColour(wx.RED, row, col) + else: + grid.SetCellTextColour(wx.BLACK, row, col) grid.SetReadOnly(row, col, True) def SetData(self, data):