editors/ResourceEditor.py
changeset 1026 96a2dc05651a
parent 899 64aa66d481c5
child 1275 8d4de18c9f29
equal deleted inserted replaced
1025:36e38d3c28b2 1026:96a2dc05651a
   152                     editor.SetParameters(self.Parent.VariableList)
   152                     editor.SetParameters(self.Parent.VariableList)
   153                     if self.GetValueByName(row, "Triggering") != "Interrupt":
   153                     if self.GetValueByName(row, "Triggering") != "Interrupt":
   154                         grid.SetReadOnly(row, col, True)
   154                         grid.SetReadOnly(row, col, True)
   155                 elif colname == "Triggering":
   155                 elif colname == "Triggering":
   156                     editor = wx.grid.GridCellChoiceEditor()
   156                     editor = wx.grid.GridCellChoiceEditor()
   157                     editor.SetParameters(",".join([""] + map(_, GetTaskTriggeringOptions())))
   157                     editor.SetParameters(",".join(map(_, GetTaskTriggeringOptions())))
   158                 elif colname == "Type":
   158                 elif colname == "Type":
   159                     editor = wx.grid.GridCellChoiceEditor()
   159                     editor = wx.grid.GridCellChoiceEditor()
   160                     editor.SetParameters(self.Parent.TypeList)
   160                     editor.SetParameters(self.Parent.TypeList)
   161                 elif colname == "Priority":
   161                 elif colname == "Priority":
   162                     editor = wx.grid.GridCellNumberEditor()
   162                     editor = wx.grid.GridCellNumberEditor()