# HG changeset patch # User Paul Beltyukov # Date 1473657339 -18000 # Node ID 0a131f6a4c86112f6b57092216ae0ffae969286d # Parent d551f2925a861976eca5f6b7ebc306432de18d85# Parent 36e912fac70ffeb8104d4fdda007a138167f2102 Merged skvorl/beremiz into default diff -r d551f2925a86 -r 0a131f6a4c86 ProjectController.py --- a/ProjectController.py Sat Sep 10 11:19:40 2016 +0500 +++ b/ProjectController.py Mon Sep 12 10:15:39 2016 +0500 @@ -1561,11 +1561,8 @@ if connector is not None: if self.StatusTimer is not None: # Start the status Timer - # Suppress WXDEBUG assertions, as happens by default with wx2.8 - try: - self.StatusTimer.Start(milliseconds=500, oneShot=False) - except: - pass + wx.Yield() + self.StatusTimer.Start(milliseconds=500, oneShot=False) else: if self.StatusTimer is not None: # Stop the status Timer diff -r d551f2925a86 -r 0a131f6a4c86 controls/VariablePanel.py --- a/controls/VariablePanel.py Sat Sep 10 11:19:40 2016 +0500 +++ b/controls/VariablePanel.py Mon Sep 12 10:15:39 2016 +0500 @@ -144,6 +144,14 @@ def GetOldValue(self): return self.old_value + def _GetRowEdit(self, row): + row_edit = self.GetValueByName(row, "Edit") + var_type = self.Parent.GetTagName() + bodytype = self.Parent.Controler.GetEditedElementBodyType(var_type) + if bodytype in ["ST", "IL"]: + row_edit = True; + return row_edit + def _updateColAttrs(self, grid): """ wx.grid.Grid -> update the column attributes to add the @@ -171,7 +179,7 @@ editor.SetParameters(",".join(map(_, options))) else: grid.SetReadOnly(row, col, True) - elif col != 0 and self.GetValueByName(row, "Edit"): + elif col != 0 and self._GetRowEdit(row): grid.SetReadOnly(row, col, False) if colname == "Name": editor = wx.grid.GridCellTextEditor() diff -r d551f2925a86 -r 0a131f6a4c86 tests/logging/plc.xml --- a/tests/logging/plc.xml Sat Sep 10 11:19:40 2016 +0500 +++ b/tests/logging/plc.xml Mon Sep 12 10:15:39 2016 +0500 @@ -1,14 +1,7 @@ - - - - + + + + @@ -47,29 +40,34 @@ - + + + + + + - - - - - - 'Moooooo' + + + + + + 'IEC side logging: beat #' - - + + - - - + + + @@ -83,121 +81,117 @@ - - + + - - - - - - + + + + + + - + beat - - + + - + - - - - + + + + + + - + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - + count - - + + - + - - - - + + - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - + + @@ -211,19 +205,17 @@ - - + + - - - - - - + + + + @@ -237,39 +229,33 @@ - - + + - + - - - - + + - + - - - - + + - + - - - - + + @@ -277,13 +263,72 @@ - - + + - WARNING + lvl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T#3s + + + + + + + @@ -293,8 +338,8 @@ - - + +