mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Add #include to enable wrapping wxPGCheckBoxEditor
This commit is contained in:
@@ -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.",
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user