Fixes for better integration with the existing wxScrolledWindow and wxScrolledCanvas docs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-06-13 23:22:11 +00:00
parent 84bd75da00
commit 78b63e56ea
2 changed files with 5 additions and 10 deletions

View File

@@ -87,18 +87,14 @@ def run():
item.docAsClass = True
item.bases = ['wxPanel', 'wxScrolled']
item.briefDoc = docBase.format(name='ScrolledWindow', base='Panel')
item.briefDoc += """
Since this class derives from :ref:`Panel` it shares its behavior
with regard to TAB traversal and focus handling. If you do not want
this then use :ref:`ScrolledCanvas` instead."""
item = module.find('wxScrolledCanvas')
item.docAsClass = True
item.bases = ['wxWindow', 'wxScrolled']
item.briefDoc = docBase.format(name='ScrolledCanvas', base='Window')
item.briefDoc += """
This scrolled window is not intended to have children so it doesn't
have special handling for TAB traversal or focus management."""
item.detailedDoc[0] = "This scrolled window is not intended to have children "\
"so it doesn't have special handling for TAB traversal "\
"or focus management."
else:

View File

@@ -3226,7 +3226,6 @@ class SphinxGenerator(generators.DocsGeneratorBase):
typedef.subClasses = []
typedef.method_list = typedef.property_list = []
typedef.pyDocstring = typedef.briefDoc
typedef.detailedDoc = ''
self.current_class = typedef