Fix bug when updating data in variable panel. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Tue, 16 Nov 2021 20:10:50 +0100
branchwxPython4
changeset 3388 6cde1a3ded58
parent 3379 c3d462118d37
child 3389 da4f9cbec3b9
Fix bug when updating data in variable panel.

Grid event naming CHANGE->CHANGING was wrong. CHANGE->CHANGED is the way to go.
controls/VariablePanel.py
--- a/controls/VariablePanel.py	Fri Oct 29 18:20:03 2021 +0200
+++ b/controls/VariablePanel.py	Tue Nov 16 20:10:50 2021 +0100
@@ -493,7 +493,7 @@
 
         self.VariablesGrid = CustomGrid(self, style=wx.VSCROLL | wx.HSCROLL)
         self.VariablesGrid.SetDropTarget(VariableDropTarget(self))
-        self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING,
+        self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED,
                                 self.OnVariablesGridCellChange)
         self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK,
                                 self.OnVariablesGridCellLeftClick)