Lindsay Mathieson's newest wxActiveX class has been wrapped into a new
extension module called wx.activex. Lots of demo and lib updates to go along with it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
52
wxPython/wxPython/activex.py
Normal file
52
wxPython/wxPython/activex.py
Normal file
@@ -0,0 +1,52 @@
|
||||
## This file reverse renames symbols in the wx package to give
|
||||
## them their wx prefix again, for backwards compatibility.
|
||||
##
|
||||
## Generated by ./distrib/build_renamers.py
|
||||
|
||||
# This silly stuff here is so the wxPython.wx module doesn't conflict
|
||||
# with the wx package. We need to import modules from the wx package
|
||||
# here, then we'll put the wxPython.wx entry back in sys.modules.
|
||||
import sys
|
||||
_wx = None
|
||||
if sys.modules.has_key('wxPython.wx'):
|
||||
_wx = sys.modules['wxPython.wx']
|
||||
del sys.modules['wxPython.wx']
|
||||
|
||||
import wx.activex
|
||||
|
||||
sys.modules['wxPython.wx'] = _wx
|
||||
del sys, _wx
|
||||
|
||||
|
||||
# Now assign all the reverse-renamed names:
|
||||
CLSID = wx.activex.CLSID
|
||||
CLSIDPtr = wx.activex.CLSIDPtr
|
||||
wxParamX = wx.activex.ParamX
|
||||
wxParamXPtr = wx.activex.ParamXPtr
|
||||
wxFuncX = wx.activex.FuncX
|
||||
wxFuncXPtr = wx.activex.FuncXPtr
|
||||
wxPropX = wx.activex.PropX
|
||||
wxPropXPtr = wx.activex.PropXPtr
|
||||
wxParamXArray = wx.activex.ParamXArray
|
||||
wxParamXArrayPtr = wx.activex.ParamXArrayPtr
|
||||
wxFuncXArray = wx.activex.FuncXArray
|
||||
wxFuncXArrayPtr = wx.activex.FuncXArrayPtr
|
||||
wxPropXArray = wx.activex.PropXArray
|
||||
wxPropXArrayPtr = wx.activex.PropXArrayPtr
|
||||
wxActiveXWindow = wx.activex.ActiveXWindow
|
||||
wxActiveXWindowPtr = wx.activex.ActiveXWindowPtr
|
||||
RegisterActiveXEvent = wx.activex.RegisterActiveXEvent
|
||||
wxActiveXEvent = wx.activex.ActiveXEvent
|
||||
wxActiveXEventPtr = wx.activex.ActiveXEventPtr
|
||||
wxIEHtmlWindowBase = wx.activex.IEHtmlWindowBase
|
||||
wxIEHtmlWindowBasePtr = wx.activex.IEHtmlWindowBasePtr
|
||||
|
||||
|
||||
d = globals()
|
||||
for k, v in wx.activex.__dict__.iteritems():
|
||||
if k.startswith('EVT'):
|
||||
d[k] = v
|
||||
del d, k, v
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user