Add missing propgrid event related items.

This commit is contained in:
Robin Dunn
2017-02-20 11:10:19 -08:00
parent 1a3c28270f
commit df3c93b7dc
3 changed files with 38 additions and 1 deletions

View File

@@ -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.",

View File

@@ -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)