From 076b41103ec30aa153ae7eac1c2b6155f372b309 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Thu, 30 Dec 2021 11:51:24 -0500 Subject: [PATCH] Fix a few wx.Grid event issues / tests --- etg/grid.py | 3 +++ unittests/test_grid.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/etg/grid.py b/etg/grid.py index 77e5023c..e63166dc 100644 --- a/etg/grid.py +++ b/etg/grid.py @@ -690,6 +690,7 @@ def run(): EVT_GRID_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK ) EVT_GRID_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE ) EVT_GRID_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE ) + EVT_GRID_COL_AUTO_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_AUTO_SIZE ) EVT_GRID_RANGE_SELECTING = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECTING ) EVT_GRID_RANGE_SELECTED = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECTED ) EVT_GRID_CELL_CHANGING = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGING ) @@ -714,6 +715,7 @@ def run(): EVT_GRID_CMD_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK, 1 ) EVT_GRID_CMD_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE, 1 ) EVT_GRID_CMD_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE, 1 ) + EVT_GRID_CMD_COL_AUTO_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_AUTO_SIZE, 1 ) EVT_GRID_CMD_RANGE_SELECTING = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECTING, 1 ) EVT_GRID_CMD_RANGE_SELECTED = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECTED, 1 ) EVT_GRID_CMD_CELL_CHANGING = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGING, 1 ) @@ -730,6 +732,7 @@ def run(): # Just for compatibility, remove them in a future release EVT_GRID_RANGE_SELECT = EVT_GRID_RANGE_SELECTED EVT_GRID_CMD_RANGE_SELECT = EVT_GRID_CMD_RANGE_SELECTED + wxEVT_GRID_RANGE_SELECT = wxEVT_GRID_RANGE_SELECTED """) diff --git a/unittests/test_grid.py b/unittests/test_grid.py index 965a30d8..067bfcb3 100644 --- a/unittests/test_grid.py +++ b/unittests/test_grid.py @@ -250,7 +250,10 @@ class grid_Tests(wtc.WidgetTestCase): wx.grid.wxEVT_GRID_LABEL_RIGHT_DCLICK wx.grid.wxEVT_GRID_ROW_SIZE wx.grid.wxEVT_GRID_COL_SIZE + wx.grid.wxEVT_GRID_COL_AUTO_SIZE wx.grid.wxEVT_GRID_RANGE_SELECT + wx.grid.wxEVT_GRID_RANGE_SELECTING + wx.grid.wxEVT_GRID_RANGE_SELECTED wx.grid.wxEVT_GRID_CELL_CHANGING wx.grid.wxEVT_GRID_CELL_CHANGED wx.grid.wxEVT_GRID_SELECT_CELL @@ -273,7 +276,10 @@ class grid_Tests(wtc.WidgetTestCase): wx.grid.EVT_GRID_LABEL_RIGHT_DCLICK wx.grid.EVT_GRID_ROW_SIZE wx.grid.EVT_GRID_COL_SIZE + wx.grid.EVT_GRID_COL_AUTO_SIZE wx.grid.EVT_GRID_RANGE_SELECT + wx.grid.EVT_GRID_RANGE_SELECTING + wx.grid.EVT_GRID_RANGE_SELECTED wx.grid.EVT_GRID_CELL_CHANGING wx.grid.EVT_GRID_CELL_CHANGED wx.grid.EVT_GRID_SELECT_CELL