Files
wxWidgets/wxPython/wxPython/_wx.py
Robin Dunn 54f9ee4509 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
2004-04-25 06:51:10 +00:00

56 lines
1.9 KiB
Python

# Load all symbols that should appear in the wxPython.wx namespace
from _core import *
from _core import __version__
from _gdi import *
from _windows import *
from _controls import *
from _misc import *
# Cleanup this one.
del wx
# Make some aliases to help backawrds compatibility for the old
# namespace. This is only for code that is using tthe wxPython.wx
# package and using names and classes in the old way. New code should
# use the wx namespace and the new names.
wxPyDefaultPosition = wxDefaultPosition
wxPyDefaultSize = wxDefaultSize
wxNoRefBitmap = wxBitmap
wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
wxColor = wxColour
wxNamedColor = wxNamedColour
NULL = None
TRUE = true = True
FALSE = false = False
def wxPyTypeCast(obj, typeStr):
return obj
wxPy_isinstance = isinstance
# The wx*DC_old classes have Draw* method signatures that are mostly
# compatible with 2.4, so assign the new classes to wx*DC_new and make
# the _old classes be the defaults with the normal names.
wxDC_new = wxDC; wxDC = wxDC_old
wxMemoryDC_new = wxMemoryDC; wxMemoryDC = wxMemoryDC_old
wxBufferedDC_new = wxBufferedDC; wxBufferedDC = wxBufferedDC_old
wxBufferedPaintDC_new = wxBufferedPaintDC; wxBufferedPaintDC = wxBufferedPaintDC_old
wxScreenDC_new = wxScreenDC; wxScreenDC = wxScreenDC_old
wxClientDC_new = wxClientDC; wxClientDC = wxClientDC_old
wxPaintDC_new = wxPaintDC; wxPaintDC = wxPaintDC_old
wxWindowDC_new = wxWindowDC; wxWindowDC = wxWindowDC_old
wxMirrorDC_new = wxMirrorDC; wxMirrorDC = wxMirrorDC_old
wxPostScriptDC_new = wxPostScriptDC; wxPostScriptDC = wxPostScriptDC_old
wxMetaFileDC_new = wxMetaFileDC; wxMetaFileDC = wxMetaFileDC_old
wxPrinterDC_new = wxPrinterDC; wxPrinterDC = wxPrinterDC_old