plugins/c_ext/CFileEditor.py
changeset 161 faad68924b53
parent 145 94855f7b08a9
child 164 072e81cc65fe
equal deleted inserted replaced
160:4b63934885e1 161:faad68924b53
   801                     if self.Table.GetValueByName(i, "Class") == "input":
   801                     if self.Table.GetValueByName(i, "Class") == "input":
   802                         num += 1
   802                         num += 1
   803             else:
   803             else:
   804                 dir = "%Q"
   804                 dir = "%Q"
   805                 for i in xrange(row):
   805                 for i in xrange(row):
   806                     if self.Table.GetValueByName(i, "Class") == "input":
   806                     if self.Table.GetValueByName(i, "Class") == "output":
   807                         num += 1
   807                         num += 1
   808             data_type = self.Table.GetValueByName(row, "Type")
   808             data_type = self.Table.GetValueByName(row, "Type")
   809             base_location = ".".join(map(lambda x:str(x), self.Controler.GetCurrentLocation()))
   809             base_location = ".".join(map(lambda x:str(x), self.Controler.GetCurrentLocation()))
   810             location = "%s%s%s.%d"%(dir, self.Controler.GetSizeOfType(data_type), base_location, num)
   810             location = "%s%s%s.%d"%(dir, self.Controler.GetSizeOfType(data_type), base_location, num)
   811             data = wx.TextDataObject(str((location, "location", data_type)))
   811             data = wx.TextDataObject(str((location, "location", data_type)))