]> git.saurik.com Git - wxWidgets.git/blame - wxPython/wxPython/_wx.py
doc tweaks, typo fixed, etc.
[wxWidgets.git] / wxPython / wxPython / _wx.py
CommitLineData
d14a1e28
RD
1
2# Load all symbols that should appear in the wxPython.wx namespace
3from core import *
c9c106fd 4from core import __version__
d14a1e28
RD
5from gdi import *
6from windows import *
7from controls import *
8from misc import *
9
10# Cleanup this one.
11del wx
cf763f5b
RD
12
13
998e6e9f
RD
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.
cf763f5b
RD
18
19wxPyDefaultPosition = wxDefaultPosition
20wxPyDefaultSize = wxDefaultSize
21wxNoRefBitmap = wxBitmap
22wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
23wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
24wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
25wxColor = wxColour
26wxNamedColor = wxNamedColour
27
28NULL = None
29TRUE = true = True
30FALSE = false = False
31
32def wxPyTypeCast(obj, typeStr):
33 return obj
34
35wxPy_isinstance = isinstance
36
88c0b108 37
4942342c
RD
38
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.
42
4942342c
RD
43wxDC_new = wxDC; wxDC = wxDC_old
44wxMemoryDC_new = wxMemoryDC; wxMemoryDC = wxMemoryDC_old
45wxBufferedDC_new = wxBufferedDC; wxBufferedDC = wxBufferedDC_old
46wxBufferedPaintDC_new = wxBufferedPaintDC; wxBufferedPaintDC = wxBufferedPaintDC_old
47wxScreenDC_new = wxScreenDC; wxScreenDC = wxScreenDC_old
48wxClientDC_new = wxClientDC; wxClientDC = wxClientDC_old
49wxPaintDC_new = wxPaintDC; wxPaintDC = wxPaintDC_old
50wxWindowDC_new = wxWindowDC; wxWindowDC = wxWindowDC_old
51wxMirrorDC_new = wxMirrorDC; wxMirrorDC = wxMirrorDC_old
52wxPostScriptDC_new = wxPostScriptDC; wxPostScriptDC = wxPostScriptDC_old
53wxMetaFileDC_new = wxMetaFileDC; wxMetaFileDC = wxMetaFileDC_old
54wxPrinterDC_new = wxPrinterDC; wxPrinterDC = wxPrinterDC_old
cf763f5b 55