Dialogs.py
changeset 154 203c4acdaf27
parent 145 4fb225afddf4
child 165 e464a4e4e06d
equal deleted inserted replaced
153:f0e8e7f58a5a 154:203c4acdaf27
  2260     def OnActionsGridCellChange(self, event):
  2260     def OnActionsGridCellChange(self, event):
  2261         self.Table.ResetView(self.ActionsGrid)
  2261         self.Table.ResetView(self.ActionsGrid)
  2262         event.Skip()
  2262         event.Skip()
  2263 
  2263 
  2264     def SetQualifierList(self, list):
  2264     def SetQualifierList(self, list):
  2265         self.QualifierList = ""
  2265         self.QualifierList = "," + ",".join(list)
  2266         sep = ""
       
  2267         for qualifier in list.keys():
       
  2268             self.QualifierList += "%s%s"%(sep, qualifier)
       
  2269             sep = ","
       
  2270         self.DurationList = list
  2266         self.DurationList = list
  2271 
  2267 
  2272     def SetVariableList(self, list):
  2268     def SetVariableList(self, list):
  2273         self.VariableList = ""
  2269         self.VariableList = "," + ",".join([variable["Name"] for variable in list])
  2274         sep = ""
  2270         
  2275         for variable in list:
       
  2276             self.VariableList += "%s%s"%(sep, variable["Name"])
       
  2277             sep = ","
       
  2278 
       
  2279     def SetActionList(self, list):
  2271     def SetActionList(self, list):
  2280         self.ActionList = ""
  2272         self.ActionList = "," + ",".join(list)
  2281         sep = ""
       
  2282         for action in list:
       
  2283             self.ActionList += "%s%s"%(sep, action)
       
  2284             sep = ","
       
  2285 
  2273 
  2286     def SetValues(self, actions):
  2274     def SetValues(self, actions):
  2287         for action in actions:
  2275         for action in actions:
  2288             row = {"Qualifier" : action["qualifier"], "Value" : action["value"]}
  2276             row = {"Qualifier" : action["qualifier"], "Value" : action["value"]}
  2289             if action["type"] == "reference":
  2277             if action["type"] == "reference":