Add #include to enable wrapping wxPGCheckBoxEditor

This commit is contained in:
Robin Dunn
2016-08-25 10:59:42 -07:00
parent 4cb718419c
commit c52995cddd
3 changed files with 16 additions and 14 deletions

View File

@@ -2407,6 +2407,7 @@
"PGCell":"wx.propgrid.",
"PGCellData":"wx.propgrid.",
"PGCellRenderer":"wx.propgrid.",
"PGCheckBoxEditor":"wx.propgrid.",
"PGChoiceAndButtonEditor":"wx.propgrid.",
"PGChoiceEditor":"wx.propgrid.",
"PGChoiceEntry":"wx.propgrid.",

View File

@@ -50,13 +50,15 @@ def run():
#-----------------------------------------------------------------
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addImport('_core')
module.addPyCode("import wx", order=10)
module.addHeaderCode('#include <wx/propgrid/propgrid.h>')
module.addInclude(INCLUDES)
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)

View File

@@ -16,7 +16,7 @@ NAME = "propgrideditors" # Base name of the file to generate to for this
DOCSTRING = ""
# The classes and/or the basename of the Doxygen XML files to be processed by
# this script.
# this script.
ITEMS = [ 'wxPGWindowList',
'wxPGEditor',
'wxPGTextCtrlEditor',
@@ -24,33 +24,32 @@ ITEMS = [ 'wxPGWindowList',
'wxPGComboBoxEditor',
'wxPGChoiceAndButtonEditor',
'wxPGTextCtrlAndButtonEditor',
#'wxPGCheckBoxEditor', This needs #define wxPG_INCLUDE_CHECKBOX 1
'wxPGCheckBoxEditor',
'wxPGEditorDialogAdapter',
'wxPGMultiButton',
]
]
#---------------------------------------------------------------------------
def run():
# Parse the XML file(s) building a collection of Extractor objects
module = etgtools.ModuleDef(PACKAGE, MODULE, NAME, DOCSTRING)
etgtools.parseDoxyXML(module, ITEMS)
#-----------------------------------------------------------------
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
c = module.find('wxPGMultiButton')
assert isinstance(c, etgtools.ClassDef)
tools.fixWindowClass(c)
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)
#---------------------------------------------------------------------------
if __name__ == '__main__':
run()