# HG changeset patch # User laurent # Date 1323421790 -3600 # Node ID 15df411e946346b529b1518a4671a6005c7f1351 # Parent 41e62b3174dc928b1c89a308b523b4dbaf57e5db Fixing bug preventing drag'n drop of located variables in location cell of variable panel grid diff -r 41e62b3174dc -r 15df411e9463 controls/VariablePanel.py --- a/controls/VariablePanel.py Fri Dec 09 10:06:44 2011 +0100 +++ b/controls/VariablePanel.py Fri Dec 09 10:09:50 2011 +0100 @@ -451,6 +451,7 @@ False, 'Sans')) self.VariablesGrid.SetSelectionBackground(wx.WHITE) self.VariablesGrid.SetSelectionForeground(wx.BLACK) + self.VariablesGrid.SetDropTarget(VariableDropTarget(self)) if wx.VERSION >= (2, 6, 0): self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGE, self.OnVariablesGridCellChange) self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.OnVariablesGridCellLeftClick)