mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user