mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
docstring fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -104,9 +104,9 @@ def run():
|
||||
|
||||
c.addCppMethod('PyObject*', 'Get', '()', """\
|
||||
return sipBuildResult(0, "(ii)", self->x, self->y);
|
||||
""", briefDoc="""\
|
||||
Get() -> (x,y)\n
|
||||
Return the x and y properties as a tuple.""")
|
||||
""",
|
||||
pyArgsString="Get() -> (x,y)",
|
||||
briefDoc="Return the x and y properties as a tuple.")
|
||||
|
||||
# Add sequence protocol methods and other goodies
|
||||
c.addPyMethod('__str__', '(self)', 'return str(self.Get())')
|
||||
@@ -162,9 +162,9 @@ def run():
|
||||
|
||||
c.addCppMethod('PyObject*', 'Get', '()', """\
|
||||
return sipBuildResult(0, "(ii)", self->GetWidth(), self->GetHeight());
|
||||
""", briefDoc="""\
|
||||
Get() -> (width, height)\n
|
||||
Return the width and height properties as a tuple.""")
|
||||
""",
|
||||
pyArgsString="Get() -> (width, height)",
|
||||
briefDoc="Return the width and height properties as a tuple.")
|
||||
|
||||
# Add sequence protocol methods and other goodies
|
||||
c.addPyMethod('__str__', '(self)', 'return str(self.Get())')
|
||||
@@ -235,9 +235,9 @@ def run():
|
||||
c.addCppMethod('PyObject*', 'Get', '()', """\
|
||||
return sipBuildResult(0, "(iiii)",
|
||||
self->x, self->y, self->width, self->height);
|
||||
""", briefDoc="""\
|
||||
Get() -> (x, y, width, height)\n
|
||||
Return the rectangle's properties as a tuple.""")
|
||||
""",
|
||||
pyArgsString="Get() -> (x, y, width, height)",
|
||||
briefDoc="Return the rectangle's properties as a tuple.")
|
||||
|
||||
# Add sequence protocol methods and other goodies
|
||||
c.addPyMethod('__str__', '(self)', 'return str(self.Get())')
|
||||
@@ -283,9 +283,9 @@ def run():
|
||||
|
||||
c.addCppMethod('PyObject*', 'Get', '()', """\
|
||||
return sipBuildResult(0, "(dd)", self->x, self->y);
|
||||
""", briefDoc="""\
|
||||
Get() -> (x, y, width, height)\n
|
||||
Return the rectangle's properties as a tuple.""")
|
||||
""",
|
||||
pyArgsString="Get() -> (x, y)",
|
||||
briefDoc="Return the point's properties as a tuple.")
|
||||
|
||||
# Add sequence protocol methods and other goodies
|
||||
c.addPyMethod('__str__', '(self)', 'return str(self.Get())')
|
||||
|
||||
@@ -98,7 +98,7 @@ def run():
|
||||
node.name = name
|
||||
node.templateParams = []
|
||||
node.bases = [base]
|
||||
node.briefDoc = etgtools.flattenNode(node.briefDoc)
|
||||
node.briefDoc = etgtools.flattenNode(node.briefDoc, False)
|
||||
node.briefDoc = node.briefDoc.replace('wxScrolled', name)
|
||||
node.briefDoc += doc
|
||||
for ctor in node.find('wxScrolled').all():
|
||||
|
||||
@@ -430,7 +430,7 @@ from %s import *
|
||||
|
||||
def generateDocstring(self, item, stream, indent):
|
||||
# get the docstring text
|
||||
text = nci(extractors.flattenNode(item.briefDoc))
|
||||
text = nci(extractors.flattenNode(item.briefDoc, False))
|
||||
|
||||
if isinstance(item, extractors.ClassDef):
|
||||
# append the function signatures for the class constructors (if any) to the class' docstring
|
||||
|
||||
Reference in New Issue
Block a user