Renamed the core namespace's submodules to have a leading underscore.
This is so epydoc will automatically mark them as private and won't document the objects they contain (they'll be docmented via the wx module.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -15,13 +15,33 @@ import __version__
|
||||
__version__ = __version__.VERSION_STRING
|
||||
|
||||
|
||||
# Load the package namespace with the core classes and such
|
||||
from wx.core import *
|
||||
from wx.core import __docfilter__
|
||||
__all__ = [
|
||||
# Sub-packages
|
||||
'build',
|
||||
'lib',
|
||||
'py',
|
||||
'tools',
|
||||
|
||||
# wx.core has a 'wx' symbol for internal use. That's kinda silly for
|
||||
# this namespace so get rid of it.
|
||||
# other modules
|
||||
'calendar',
|
||||
'grid',
|
||||
'html',
|
||||
'wizard',
|
||||
]
|
||||
|
||||
# Load the package namespace with the core classes and such
|
||||
from wx._core import *
|
||||
del wx
|
||||
|
||||
# Load up __all__ with all the names of items that should appear to be
|
||||
# defined in this pacakge so epydoc will document them that way.
|
||||
import wx._core
|
||||
__docfilter__ = wx._core.__docfilter__
|
||||
|
||||
__all__ += [name for name in dir(wx._core)
|
||||
if not (name.startswith('__') and name.endswith('__'))]
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user