Phoenix: fixed few issues on the gallery and on parameter types.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Andrea Gavana
2012-04-02 22:07:08 +00:00
parent 721cf235ae
commit a76c594a58
2 changed files with 7 additions and 2 deletions

View File

@@ -649,7 +649,12 @@ class ParameterList(Node):
docstrings = '' docstrings = ''
for name, parameter in self.py_parameters.items(): for name, parameter in self.py_parameters.items():
docstrings += ':param %s `%s`: %s\n'%(parameter.type, name, parameter.Join().lstrip('\n')) if parameter.type.strip():
docstrings += ':param `%s`: %s\n'%(name, parameter.Join().lstrip('\n'))
docstrings += ':type `%s`: %s\n'%(name, parameter.type)
else:
docstrings += ':param `%s`: %s\n'%(name, parameter.Join().lstrip('\n'))
if docstrings: if docstrings:
docstrings = '\n\n\n%s\n\n'%docstrings docstrings = '\n\n\n%s\n\n'%docstrings

View File

@@ -402,7 +402,7 @@ def GenGallery():
link_template = """\ link_template = """\
<table><caption align="bottom"><a href="%s"<b>%s</b></a</caption> <table><caption align="bottom"><a href="%s"<b>%s</b></a</caption>
<tr> <tr>
<td><a href="%s"><img src="_static/%s/%s" border="20" alt="%s"/></a> <td><a href="%s"><img src="_static/images/widgets/fullsize/%s/%s" border="20" alt="%s"/></a>
</td> </td>
</tr> </tr>
</table> </table>