]> git.saurik.com Git - wxWidgets.git/blame - wxPython/wxPython/_wx.py
More adjustments to aliases
[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
14# Make some to help backawrds compatibility for the old namespace.
15# This is only for code that is using tthe wxPython.wx package and
16# using names and classes in the old way. New code should use the wx
17# namespace and the new names.
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
37wxDC.FloodFill = wxDC.FloodFillXY
38wxDC.GetPixel = wxDC.GetPixelXY
39wxDC.DrawLine = wxDC.DrawLineXY
40wxDC.CrossHair = wxDC.CrossHairXY
41wxDC.DrawArc = wxDC.DrawArcXY
42wxDC.DrawCheckMark = wxDC.DrawCheckMarkXY
43wxDC.DrawEllipticArc = wxDC.DrawEllipticArcXY
44wxDC.DrawPoint = wxDC.DrawPointXY
45wxDC.DrawRectangle = wxDC.DrawRectangleXY
46wxDC.DrawRoundedRectangle = wxDC.DrawRoundedRectangleXY
47wxDC.DrawCircle = wxDC.DrawCircleXY
48wxDC.DrawEllipse = wxDC.DrawEllipseXY
49wxDC.DrawIcon = wxDC.DrawIconXY
50wxDC.DrawBitmap = wxDC.DrawBitmapXY
51wxDC.DrawText = wxDC.DrawTextXY
52wxDC.DrawRotatedText = wxDC.DrawRotatedTextXY
53wxDC.Blit = wxDC.BlitXY
54wxDC.SetClippingRegion = wxDC.SetClippingRegionXY
55