diff --git a/docs/sphinx/itemToModuleMap.json b/docs/sphinx/itemToModuleMap.json index 592d1096..9138109f 100644 --- a/docs/sphinx/itemToModuleMap.json +++ b/docs/sphinx/itemToModuleMap.json @@ -2857,6 +2857,7 @@ "PropertyCategory":"wx.propgrid.", "PropertyGrid":"wx.propgrid.", "PropertyGridConstIterator":"wx.propgrid.", +"PropertyGridEvent":"wx.propgrid.", "PropertyGridHitTestResult":"wx.propgrid.", "PropertyGridInterface":"wx.propgrid.", "PropertyGridIterator":"wx.propgrid.", @@ -6517,6 +6518,20 @@ "wxEVT_NULL":"wx.", "wxEVT_PAINT":"wx.", "wxEVT_PALETTE_CHANGED":"wx.", +"wxEVT_PG_CHANGED":"wx.propgrid.", +"wxEVT_PG_CHANGING":"wx.propgrid.", +"wxEVT_PG_COL_BEGIN_DRAG":"wx.propgrid.", +"wxEVT_PG_COL_DRAGGING":"wx.propgrid.", +"wxEVT_PG_COL_END_DRAG":"wx.propgrid.", +"wxEVT_PG_DOUBLE_CLICK":"wx.propgrid.", +"wxEVT_PG_HIGHLIGHTED":"wx.propgrid.", +"wxEVT_PG_ITEM_COLLAPSED":"wx.propgrid.", +"wxEVT_PG_ITEM_EXPANDED":"wx.propgrid.", +"wxEVT_PG_LABEL_EDIT_BEGIN":"wx.propgrid.", +"wxEVT_PG_LABEL_EDIT_ENDING":"wx.propgrid.", +"wxEVT_PG_PAGE_CHANGED":"wx.propgrid.", +"wxEVT_PG_RIGHT_CLICK":"wx.propgrid.", +"wxEVT_PG_SELECTED":"wx.propgrid.", "wxEVT_POWER_RESUME":"wx.", "wxEVT_POWER_SUSPENDED":"wx.", "wxEVT_POWER_SUSPENDING":"wx.", diff --git a/etg/propgrid.py b/etg/propgrid.py index a2f0dc91..ef299b25 100644 --- a/etg/propgrid.py +++ b/etg/propgrid.py @@ -20,6 +20,7 @@ DOCSTRING = "" ITEMS = [ 'interface_2wx_2propgrid_2propgrid_8h.xml', 'wxPGValidationInfo', 'wxPropertyGrid', + 'wxPropertyGridEvent', ] #--------------------------------------------------------------------------- @@ -61,6 +62,27 @@ def run(): td.noTypeName = True + c = module.find('wxPropertyGridEvent') + tools.fixEventClass(c) + + c.addPyCode("""\ + EVT_PG_CHANGED = wx.PyEventBinder( wxEVT_PG_CHANGED, 1 ) + EVT_PG_CHANGING = wx.PyEventBinder( wxEVT_PG_CHANGING, 1 ) + EVT_PG_SELECTED = wx.PyEventBinder( wxEVT_PG_SELECTED, 1 ) + EVT_PG_HIGHLIGHTED = wx.PyEventBinder( wxEVT_PG_HIGHLIGHTED, 1 ) + EVT_PG_RIGHT_CLICK = wx.PyEventBinder( wxEVT_PG_RIGHT_CLICK, 1 ) + EVT_PG_PAGE_CHANGED = wx.PyEventBinder( wxEVT_PG_PAGE_CHANGED, 1 ) + EVT_PG_ITEM_COLLAPSED = wx.PyEventBinder( wxEVT_PG_ITEM_COLLAPSED, 1 ) + EVT_PG_ITEM_EXPANDED = wx.PyEventBinder( wxEVT_PG_ITEM_EXPANDED, 1 ) + EVT_PG_DOUBLE_CLICK = wx.PyEventBinder( wxEVT_PG_DOUBLE_CLICK, 1 ) + EVT_PG_LABEL_EDIT_BEGIN = wx.PyEventBinder( wxEVT_PG_LABEL_EDIT_BEGIN, 1 ) + EVT_PG_LABEL_EDIT_ENDING = wx.PyEventBinder( wxEVT_PG_LABEL_EDIT_ENDING, 1 ) + EVT_PG_COL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_PG_COL_BEGIN_DRAG, 1 ) + EVT_PG_COL_DRAGGING = wx.PyEventBinder( wxEVT_PG_COL_DRAGGING, 1 ) + EVT_PG_COL_END_DRAG = wx.PyEventBinder( wxEVT_PG_COL_END_DRAG, 1 ) + """) + + #----------------------------------------------------------------- tools.doCommonTweaks(module) tools.runGenerators(module) diff --git a/ext/wxWidgets b/ext/wxWidgets index 44d465a2..f8da25b0 160000 --- a/ext/wxWidgets +++ b/ext/wxWidgets @@ -1 +1 @@ -Subproject commit 44d465a26babb335bcda618795d54d959149dea9 +Subproject commit f8da25b0154677ca379d371bfa4d037aa0916ba9