Add __nonzero and wxArrayVideoModes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-10-09 07:27:39 +00:00
parent 0c3a1fa2a2
commit 425b7202fd

View File

@@ -29,10 +29,15 @@ def run():
#-----------------------------------------------------------------
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
c = module.find('wxVideoMode')
c.addCppMethod('int', '__nonzero__', '()', """\
return self->IsOk();
""")
module.addItem(tools.wxArrayWrapperTemplate(
'wxArrayVideoModes', 'wxVideoMode', module))
#-----------------------------------------------------------------
tools.doCommonTweaks(module)