etherlab/ConfigEditor.py
changeset 2371 f1f10ceb9341
parent 2370 e40f3914e55f
child 2375 cfa68a06a24d
equal deleted inserted replaced
2370:e40f3914e55f 2371:f1f10ceb9341
   775                 self.ProcessVariablesTable.ResetView(self.ProcessVariablesGrid)
   775                 self.ProcessVariablesTable.ResetView(self.ProcessVariablesGrid)
   776             return new_row
   776             return new_row
   777         setattr(self.ProcessVariablesGrid, "_MoveRow", _MoveVariablesElement)
   777         setattr(self.ProcessVariablesGrid, "_MoveRow", _MoveVariablesElement)
   778 
   778 
   779         _refresh_buttons = getattr(self.ProcessVariablesGrid, "RefreshButtons")
   779         _refresh_buttons = getattr(self.ProcessVariablesGrid, "RefreshButtons")
       
   780 
   780         def _RefreshButtons():
   781         def _RefreshButtons():
   781             if self.NodesFilter.GetSelection() == 0:
   782             if self.NodesFilter.GetSelection() == 0:
   782                 _refresh_buttons()
   783                 _refresh_buttons()
   783             else:
   784             else:
   784                 self.AddVariableButton.Enable(False)
   785                 self.AddVariableButton.Enable(False)