2 # Load all symbols that should appear in the wxPython.wx namespace
4 from _core
import __version__
7 from _controls
import *
14 # Make some aliases to help backawrds compatibility for the old
15 # namespace. This is only for code that is using tthe wxPython.wx
16 # package and using names and classes in the old way. New code should
17 # use the wx namespace and the new names.
19 wxPyDefaultPosition
= wxDefaultPosition
20 wxPyDefaultSize
= wxDefaultSize
21 wxNoRefBitmap
= wxBitmap
22 wxSystemSettings_GetSystemColour
= wxSystemSettings_GetColour
23 wxSystemSettings_GetSystemFont
= wxSystemSettings_GetFont
24 wxSystemSettings_GetSystemMetric
= wxSystemSettings_GetMetric
26 wxNamedColor
= wxNamedColour
32 def wxPyTypeCast(obj
, typeStr
):
35 wxPy_isinstance
= isinstance
39 # The wx*DC_old classes have Draw* method signatures that are mostly
40 # compatible with 2.4, so assign the new classes to wx*DC_new and make
41 # the _old classes be the defaults with the normal names.
43 wxDC_new
= wxDC
; wxDC
= wxDC_old
44 wxMemoryDC_new
= wxMemoryDC
; wxMemoryDC
= wxMemoryDC_old
45 wxBufferedDC_new
= wxBufferedDC
; wxBufferedDC
= wxBufferedDC_old
46 wxBufferedPaintDC_new
= wxBufferedPaintDC
; wxBufferedPaintDC
= wxBufferedPaintDC_old
47 wxScreenDC_new
= wxScreenDC
; wxScreenDC
= wxScreenDC_old
48 wxClientDC_new
= wxClientDC
; wxClientDC
= wxClientDC_old
49 wxPaintDC_new
= wxPaintDC
; wxPaintDC
= wxPaintDC_old
50 wxWindowDC_new
= wxWindowDC
; wxWindowDC
= wxWindowDC_old
51 wxMirrorDC_new
= wxMirrorDC
; wxMirrorDC
= wxMirrorDC_old
52 wxPostScriptDC_new
= wxPostScriptDC
; wxPostScriptDC
= wxPostScriptDC_old
53 wxMetaFileDC_new
= wxMetaFileDC
; wxMetaFileDC
= wxMetaFileDC_old
54 wxPrinterDC_new
= wxPrinterDC
; wxPrinterDC
= wxPrinterDC_old