# HG changeset patch
# User Edouard Tisserant <edouard.tisserant@gmail.com>
# Date 1723913052 -7200
# Node ID 86e39be014d8174730617fe94cee5e15d350a6bd
# Parent  2ef76b61bf1e52e440de796e63e8ac29e10660f0
IDE: generalize EVT_GRID_CELL_CHANG{ING->ED} (WxPy4)

diff -r 2ef76b61bf1e -r 86e39be014d8 bacnet/BacnetSlaveEditor.py
--- a/bacnet/BacnetSlaveEditor.py	Tue Aug 20 01:26:58 2024 +0200
+++ b/bacnet/BacnetSlaveEditor.py	Sat Aug 17 18:44:12 2024 +0200
@@ -828,7 +828,7 @@
         # use only to enable drag'n'drop
         # self.VariablesGrid.SetDropTarget(VariableDropTarget(self))
         self.VariablesGrid.Bind(
-            wx.grid.EVT_GRID_CELL_CHANGING,     self.OnVariablesGridCellChange)
+            wx.grid.EVT_GRID_CELL_CHANGED,     self.OnVariablesGridCellChange)
         # self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.OnVariablesGridCellLeftClick)
         # self.VariablesGrid.Bind(wx.grid.EVT_GRID_EDITOR_SHOWN,    self.OnVariablesGridEditorShown)
         self.MainSizer.Add(self.VariablesGrid, flag=wx.GROW)
diff -r 2ef76b61bf1e -r 86e39be014d8 dialogs/ActionBlockDialog.py
--- a/dialogs/ActionBlockDialog.py	Tue Aug 20 01:26:58 2024 +0200
+++ b/dialogs/ActionBlockDialog.py	Sat Aug 17 18:44:12 2024 +0200
@@ -148,7 +148,7 @@
         self.ActionsGrid = CustomGrid(self, size=wx.Size(-1, 250), style=wx.VSCROLL)
         self.ActionsGrid.DisableDragGridSize()
         self.ActionsGrid.EnableScrolling(False, True)
-        self.ActionsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING,
+        self.ActionsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED,
                               self.OnActionsGridCellChange)
         main_sizer.Add(self.ActionsGrid, border=20,
                             flag=wx.GROW | wx.LEFT | wx.RIGHT)
diff -r 2ef76b61bf1e -r 86e39be014d8 etherlab/ConfigEditor.py
--- a/etherlab/ConfigEditor.py	Tue Aug 20 01:26:58 2024 +0200
+++ b/etherlab/ConfigEditor.py	Sat Aug 17 18:44:12 2024 +0200
@@ -672,7 +672,7 @@
         self.ProcessVariablesGrid = CustomGrid(self.EthercatMasterEditor, style=wx.VSCROLL)
         self.ProcessVariablesGrid.SetMinSize(wx.Size(0, 150))
         self.ProcessVariablesGrid.SetDropTarget(ProcessVariableDropTarget(self))
-        self.ProcessVariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING,
+        self.ProcessVariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED,
                                        self.OnProcessVariablesGridCellChange)
         self.ProcessVariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK,
                                        self.OnProcessVariablesGridCellLeftClick)
@@ -697,7 +697,7 @@
         self.StartupCommandsGrid = CustomGrid(self.EthercatMasterEditor, style=wx.VSCROLL)
         self.StartupCommandsGrid.SetDropTarget(StartupCommandDropTarget(self))
         self.StartupCommandsGrid.SetMinSize(wx.Size(0, 150))
-        self.StartupCommandsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING,
+        self.StartupCommandsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED,
                                       self.OnStartupCommandsGridCellChange)
         self.StartupCommandsGrid.Bind(wx.grid.EVT_GRID_EDITOR_SHOWN,
                                       self.OnStartupCommandsGridEditorShow)