bacnet/BacnetSlaveEditor.py
changeset 3938 fc4af5685aa3
parent 3934 8072072038d2
equal deleted inserted replaced
3937:e13543d716b6 3938:fc4af5685aa3
   365         "Description": {"GridCellEditor": wx.grid.GridCellTextEditor,
   365         "Description": {"GridCellEditor": wx.grid.GridCellTextEditor,
   366                         "GridCellRenderer": wx.grid.GridCellStringRenderer},
   366                         "GridCellRenderer": wx.grid.GridCellStringRenderer},
   367         "Engineering Units": {"GridCellEditor": wx.grid.GridCellChoiceEditor,
   367         "Engineering Units": {"GridCellEditor": wx.grid.GridCellChoiceEditor,
   368                               # use string renderer with choice editor!
   368                               # use string renderer with choice editor!
   369                               "GridCellRenderer": wx.grid.GridCellStringRenderer,
   369                               "GridCellRenderer": wx.grid.GridCellStringRenderer,
   370                               "GridCellEditorConstructorArgs": [x[0] for x in BACnetEngineeringUnits]}
   370                               "GridCellEditorConstructorArgs": [[x[0] for x in BACnetEngineeringUnits]]}
   371     }
   371     }
   372 
   372 
   373     # obj_properties should be a dictionary, with keys "Object Identifier",
   373     # obj_properties should be a dictionary, with keys "Object Identifier",
   374     # "Object Name", "Description", ...
   374     # "Object Name", "Description", ...
   375     def UpdateVirtualProperties(self, obj_properties):
   375     def UpdateVirtualProperties(self, obj_properties):