| 1 | #---------------------------------------------------------------------------- |
| 2 | # Name: __init__.py |
| 3 | # Purpose: The presence of this file turns this directory into a |
| 4 | # Python package. |
| 5 | # |
| 6 | # Author: Robin Dunn |
| 7 | # |
| 8 | # Created: 8-Aug-1998 |
| 9 | # RCS-ID: $Id$ |
| 10 | # Copyright: (c) 1998 by Total Control Software |
| 11 | # Licence: wxWindows license |
| 12 | #---------------------------------------------------------------------------- |
| 13 | |
| 14 | import __version__ |
| 15 | __version__ = __version__.VERSION_STRING |
| 16 | |
| 17 | |
| 18 | __all__ = [ |
| 19 | # Sub-packages |
| 20 | 'build', |
| 21 | 'lib', |
| 22 | 'py', |
| 23 | 'tools', |
| 24 | |
| 25 | # other modules |
| 26 | 'aui', |
| 27 | 'calendar', |
| 28 | 'grid', |
| 29 | 'html', |
| 30 | 'media', |
| 31 | 'richtext', |
| 32 | 'webkit', |
| 33 | 'wizard', |
| 34 | 'xrc', |
| 35 | |
| 36 | # contribs (need a better way to find these...) |
| 37 | 'animate', |
| 38 | 'gizmos', |
| 39 | 'glcanvas', |
| 40 | 'stc', |
| 41 | ] |
| 42 | |
| 43 | # Load the package namespace with the core classes and such |
| 44 | from wx._core import * |
| 45 | del wx |
| 46 | |
| 47 | if 'wxMSW' in PlatformInfo: |
| 48 | __all__ += ['activex'] |
| 49 | |
| 50 | # Load up __all__ with all the names of items that should appear to be |
| 51 | # defined in this pacakge so epydoc will document them that way. |
| 52 | import wx._core |
| 53 | __docfilter__ = wx._core.__DocFilter(globals()) |
| 54 | |
| 55 | __all__ += [name for name in dir(wx._core) if not name.startswith('_')] |
| 56 | |
| 57 | |
| 58 | |
| 59 | #---------------------------------------------------------------------------- |
| 60 | |