]>
Commit | Line | Data |
---|---|---|
b7c75283 RD |
1 | ## This file reverse renames symbols in the wx package to give |
2 | ## them their wx prefix again, for backwards compatibility. | |
3 | ## | |
4 | ## Generated by ./distrib/build_renamers.py | |
5 | ||
6 | # This silly stuff here is so the wxPython.wx module doesn't conflict | |
7 | # with the wx package. We need to import modules from the wx package | |
8 | # here, then we'll put the wxPython.wx entry back in sys.modules. | |
9 | import sys | |
10 | _wx = None | |
11 | if sys.modules.has_key('wxPython.wx'): | |
12 | _wx = sys.modules['wxPython.wx'] | |
13 | del sys.modules['wxPython.wx'] | |
14 | ||
15 | import wx.activex | |
16 | ||
17 | sys.modules['wxPython.wx'] = _wx | |
18 | del sys, _wx | |
19 | ||
20 | ||
21 | # Now assign all the reverse-renamed names: | |
22 | CLSID = wx.activex.CLSID | |
23 | CLSIDPtr = wx.activex.CLSIDPtr | |
24 | wxParamX = wx.activex.ParamX | |
25 | wxParamXPtr = wx.activex.ParamXPtr | |
26 | wxFuncX = wx.activex.FuncX | |
27 | wxFuncXPtr = wx.activex.FuncXPtr | |
28 | wxPropX = wx.activex.PropX | |
29 | wxPropXPtr = wx.activex.PropXPtr | |
30 | wxParamXArray = wx.activex.ParamXArray | |
31 | wxParamXArrayPtr = wx.activex.ParamXArrayPtr | |
32 | wxFuncXArray = wx.activex.FuncXArray | |
33 | wxFuncXArrayPtr = wx.activex.FuncXArrayPtr | |
34 | wxPropXArray = wx.activex.PropXArray | |
35 | wxPropXArrayPtr = wx.activex.PropXArrayPtr | |
36 | wxActiveXWindow = wx.activex.ActiveXWindow | |
37 | wxActiveXWindowPtr = wx.activex.ActiveXWindowPtr | |
38 | RegisterActiveXEvent = wx.activex.RegisterActiveXEvent | |
39 | wxActiveXEvent = wx.activex.ActiveXEvent | |
40 | wxActiveXEventPtr = wx.activex.ActiveXEventPtr | |
41 | wxIEHtmlWindowBase = wx.activex.IEHtmlWindowBase | |
42 | wxIEHtmlWindowBasePtr = wx.activex.IEHtmlWindowBasePtr | |
43 | ||
44 | ||
45 | d = globals() | |
46 | for k, v in wx.activex.__dict__.iteritems(): | |
47 | if k.startswith('EVT'): | |
48 | d[k] = v | |
49 | del d, k, v | |
50 | ||
51 | ||
52 |