Changed BeginDrag to conform BusId
authoretisserant
Mon, 10 Sep 2007 15:14:20 +0200
changeset 269 f0ed853bace7
parent 268 8a21eb5bdedc
child 270 178030c1dff8
Changed BeginDrag to conform BusId
objdictgen/subindextable.py
--- a/objdictgen/subindextable.py	Mon Sep 10 14:32:07 2007 +0200
+++ b/objdictgen/subindextable.py	Mon Sep 10 15:14:20 2007 +0200
@@ -488,10 +488,10 @@
                         subentry_infos = self.Manager.GetSubentryInfos(index, subindex)
                         typeinfos = self.Manager.GetEntryInfos(subentry_infos["type"])
                         if subentry_infos["pdo"] and typeinfos:
-                            bus_id = self.Parent.GetBusId()
+                            bus_id = '.'.join(map(str,self.Parent.GetBusId()))
                             node_id = self.Parent.GetCurrentNodeId()
                             size = typeinfos["size"]
-                            data = wx.TextDataObject(str(("%s%d.%d.%d.%d"%(SizeConversion[size], bus_id, node_id, index, subindex), "location")))
+                            data = wx.TextDataObject(str(("%s%s.%d.%d.%d"%(SizeConversion[size], bus_id, node_id, index, subindex), "location")))
                             dragSource = wx.DropSource(self.SubindexGrid)
                             dragSource.SetData(data)
                             dragSource.DoDragDrop()