# HG changeset patch # User Edouard Tisserant # Date 1666362395 -7200 # Node ID 6c7e8e8c6bc5c9ee65881f62560b601463130836 # Parent 606c984a58c254870256d04526140001d8aa371c IDE: fix action block editor's GridCellEditor. Consequence of wxPython4 bump. diff -r 606c984a58c2 -r 6c7e8e8c6bc5 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: