Fixing bug preventing drag'n drop of located variables in location cell of variable panel grid
authorlaurent
Fri, 09 Dec 2011 10:09:50 +0100
changeset 595 15df411e9463
parent 594 41e62b3174dc
child 596 ce33d72f6df7
Fixing bug preventing drag'n drop of located variables in location cell of variable panel grid
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)