Support isStatic for PyMethods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-12-23 03:08:03 +00:00
parent 846365232d
commit 0e6e598099
2 changed files with 13 additions and 6 deletions

View File

@@ -508,6 +508,8 @@ class PiWrapperGenerator(generators.WrapperGeneratorBase, FixWxPrefix):
assert isinstance(pm, extractors.PyMethodDef)
if pm.ignored:
return
if pm.isStatic:
stream.write('\n%s@staticmethod' % indent)
stream.write('\n%sdef %s' % (indent, pm.name))
stream.write(pm.argsString)
stream.write(':\n')