IDE: fix action block editor's GridCellEditor. Consequence of wxPython4 bump. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 21 Oct 2022 16:26:35 +0200
branchwxPython4
changeset 3639 6c7e8e8c6bc5
parent 3638 606c984a58c2
child 3640 822fdcef784b
IDE: fix action block editor's GridCellEditor. Consequence of wxPython4 bump.
dialogs/ActionBlockDialog.py
--- a/dialogs/ActionBlockDialog.py	Thu Oct 20 18:15:31 2022 +0200
+++ b/dialogs/ActionBlockDialog.py	Fri Oct 21 16:26:35 2022 +0200
@@ -163,7 +163,7 @@
 
         self.Table = ActionTable(self, [], GetActionTableColnames())
         typelist = GetTypeList()
-        self.TypeList = ",".join(map(_, typelist))
+        self.TypeList = map(_, typelist)
         self.TranslateType = dict([(_(value), value) for value in typelist])
         self.ColSizes = [60, 90, 130, 200, 50]
         self.ColAlignements = [wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT]
@@ -196,15 +196,15 @@
         wx.CallAfter(self.Table.ResetView, self.ActionsGrid)
         event.Skip()
 
-    def SetQualifierList(self, list):
-        self.QualifierList = ",".join(list)
-        self.DurationList = list
-
-    def SetVariableList(self, list):
-        self.VariableList = "," + ",".join([variable.Name for variable in list])
-
-    def SetActionList(self, list):
-        self.ActionList = "," + ",".join(list)
+    def SetQualifierList(self, odict):
+        self.QualifierList = [qname for qname in odict]
+        self.DurationList = odict
+
+    def SetVariableList(self, lst):
+        self.VariableList = [variable.Name for variable in lst]
+
+    def SetActionList(self, lst):
+        self.ActionList = lst
 
     def SetValues(self, actions):
         for action in actions: