Bug on changing variable value text colour fixed
authorlaurent
Mon, 07 Dec 2009 21:26:36 +0100
changeset 474 a07115f79c27
parent 473 9ee851841d28
child 475 9ca03fdff80f
Bug on changing variable value text colour fixed
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Mon Dec 07 20:42:55 2009 +0100
+++ b/PLCOpenEditor.py	Mon Dec 07 21:26:36 2009 +0100
@@ -3972,9 +3972,9 @@
             for col in range(self.GetNumberCols()):
                 if self.GetColLabelValue(col, False) == "Value":
                     if self.IsForced(row):
-                        grid.SetCellTextColour(wx.RED, row, col)
+                        grid.SetCellTextColour(row, col, wx.RED)
                     else:
-                        grid.SetCellTextColour(wx.BLACK, row, col)
+                        grid.SetCellTextColour(row, col, wx.BLACK)
                 grid.SetReadOnly(row, col, True)
                 
     def SetData(self, data):