equal
deleted
inserted
replaced
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() |