bacnet/BacnetSlaveEditor.py
changeset 3845 d7f9b6af98ef
parent 3303 0ffb41625592
child 3931 1c0263e2b3b1
equal deleted inserted replaced
3844:58a331434e92 3845:d7f9b6af98ef
   574             for col in range(self.GetNumberCols()):
   574             for col in range(self.GetNumberCols()):
   575                 PropertyName = self.BACnetObjectType.PropertyNames[col]
   575                 PropertyName = self.BACnetObjectType.PropertyNames[col]
   576                 PropertyConfig = self.BACnetObjectType.PropertyConfig[PropertyName]
   576                 PropertyConfig = self.BACnetObjectType.PropertyConfig[PropertyName]
   577                 grid.SetReadOnly(row, col, False)
   577                 grid.SetReadOnly(row, col, False)
   578                 GridCellEditorConstructorArgs = \
   578                 GridCellEditorConstructorArgs = \
   579                     PropertyConfig["GridCellEditorConstructorArgs"]
   579                     PropertyConfig["GridCellEditorConstructorArgs"] \
   580                     if "GridCellEditorConstructorArgs" in PropertyConfig else []
   580                     if "GridCellEditorConstructorArgs" in PropertyConfig else []
   581                 grid.SetCellEditor(row, col, PropertyConfig["GridCellEditor"](*GridCellEditorConstructorArgs))
   581                 grid.SetCellEditor(row, col, PropertyConfig["GridCellEditor"](*GridCellEditorConstructorArgs))
   582                 grid.SetCellRenderer(row, col, PropertyConfig["GridCellRenderer"]())
   582                 grid.SetCellRenderer(row, col, PropertyConfig["GridCellRenderer"]())
   583                 grid.SetCellBackgroundColour(row, col, wx.WHITE)
   583                 grid.SetCellBackgroundColour(row, col, wx.WHITE)
   584                 grid.SetCellTextColour(row, col, wx.BLACK)
   584                 grid.SetCellTextColour(row, col, wx.BLACK)