d7403ad2d1
demo to match. Also fixed some deprecation warnings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
38 lines
948 B
Python
38 lines
948 B
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
|
|
|
|
|