771 dir = "%Q" |
771 dir = "%Q" |
772 for i in xrange(row): |
772 for i in xrange(row): |
773 if self.Table.GetValueByName(i, "Class") == "output": |
773 if self.Table.GetValueByName(i, "Class") == "output": |
774 num += 1 |
774 num += 1 |
775 data_type = self.Table.GetValueByName(row, "Type") |
775 data_type = self.Table.GetValueByName(row, "Type") |
|
776 var_name = self.Table.GetValueByName(row, "Name") |
776 base_location = ".".join(map(lambda x:str(x), self.Controler.GetCurrentLocation())) |
777 base_location = ".".join(map(lambda x:str(x), self.Controler.GetCurrentLocation())) |
777 location = "%s%s%s.%d"%(dir, self.Controler.GetSizeOfType(data_type), base_location, num) |
778 location = "%s%s%s.%d"%(dir, self.Controler.GetSizeOfType(data_type), base_location, num) |
778 data = wx.TextDataObject(str((location, "location", data_type))) |
779 data = wx.TextDataObject(str((location, "location", data_type, var_name, ""))) |
779 dragSource = wx.DropSource(self.VariablesGrid) |
780 dragSource = wx.DropSource(self.VariablesGrid) |
780 dragSource.SetData(data) |
781 dragSource.SetData(data) |
781 dragSource.DoDragDrop() |
782 dragSource.DoDragDrop() |
782 event.Skip() |
783 event.Skip() |
783 |
784 |