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): |