editors/CodeFileEditor.py
branchsvghmi
changeset 3255 07f10dc95d2f
parent 3254 b1bc6099d4e5
child 3303 0ffb41625592
equal deleted inserted replaced
3252:352b2111ca66 3255:07f10dc95d2f
   855     def OnVariablesGridCellLeftClick(self, event):
   855     def OnVariablesGridCellLeftClick(self, event):
   856         if event.GetCol() == 0:
   856         if event.GetCol() == 0:
   857             row = event.GetRow()
   857             row = event.GetRow()
   858             data_type = self.Table.GetValueByName(row, "Type")
   858             data_type = self.Table.GetValueByName(row, "Type")
   859             var_name = self.Table.GetValueByName(row, "Name")
   859             var_name = self.Table.GetValueByName(row, "Name")
       
   860             desc = self.Table.GetValueByName(row, "Description")
   860             data = wx.TextDataObject(str((var_name, "Global", data_type,
   861             data = wx.TextDataObject(str((var_name, "Global", data_type,
   861                                           self.Controler.GetCurrentLocation())))
   862                                           self.Controler.GetCurrentLocation(), desc)))
   862             dragSource = wx.DropSource(self.VariablesGrid)
   863             dragSource = wx.DropSource(self.VariablesGrid)
   863             dragSource.SetData(data)
   864             dragSource.SetData(data)
   864             dragSource.DoDragDrop()
   865             dragSource.DoDragDrop()
   865             return
   866             return
   866         event.Skip()
   867         event.Skip()