BACnet: Fixed grid cell choice editor. Consequence of wxPython4.
authorEdouard Tisserant <edouard@beremiz.fr>
Thu, 25 Apr 2024 09:37:09 +0200
changeset 3934 8072072038d2
parent 3933 6750083ae878
child 3935 bc51b5a2daa9
BACnet: Fixed grid cell choice editor. Consequence of wxPython4.
bacnet/BacnetSlaveEditor.py
--- a/bacnet/BacnetSlaveEditor.py	Wed Apr 24 17:02:28 2024 +0200
+++ b/bacnet/BacnetSlaveEditor.py	Thu Apr 25 09:37:09 2024 +0200
@@ -367,7 +367,7 @@
         "Engineering Units": {"GridCellEditor": wx.grid.GridCellChoiceEditor,
                               # use string renderer with choice editor!
                               "GridCellRenderer": wx.grid.GridCellStringRenderer,
-                              "GridCellEditorConstructorArgs": [x[0] for x in BACnetEngineeringUnits]}
+                              "GridCellEditorConstructorArgs": [[x[0] for x in BACnetEngineeringUnits]]}
     }
 
     # obj_properties should be a dictionary, with keys "Object Identifier",