Remove wx prefixes for default values in the pyArgsString.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-05-03 23:30:48 +00:00
parent 95fac68451
commit 33a6da35ee
2 changed files with 3 additions and 1 deletions

View File

@@ -442,6 +442,8 @@ class FunctionDef(BaseDef):
arg = arg.split('=')[0]
if default in defValueMap:
default = defValueMap.get(default)
else:
default = removeWxPrefix(default)
# now grab just the last word, it should be the variable name
arg = arg.split()[-1]
if default:

View File

@@ -647,7 +647,7 @@ from %s import *
for idx, pn in enumerate(pnames):
# take only the part before the =, if there is one
name = pn.split('=')[0].strip()
# now get just the part after and space, * or &, which should be
# now get just the part after any space, * or &, which should be
# the parameter name
name = re.split(r'[ \*\&]+', name)[-1]
pnames[idx] = name