From cc30c63a4cf2ee1ae991b584e2dec2cac6b7819a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 6 Oct 2006 23:21:07 +0000 Subject: [PATCH] rename the ID parameter git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/iewin.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/wxPython/wx/lib/iewin.py b/wxPython/wx/lib/iewin.py index 31e6f01795..cf74d7fdc1 100644 --- a/wxPython/wx/lib/iewin.py +++ b/wxPython/wx/lib/iewin.py @@ -110,11 +110,16 @@ EVT_PrivacyImpactedStateChange = wx.PyEventBinder(wxEVT_PrivacyImpactedStateChan # For this there are a few special methods implemented in C++ in the # IEHtmlWindowBase class, so derive from it instead of ActiveXWindow. class IEHtmlWindow(wx.activex.IEHtmlWindowBase): - def __init__(self, parent, ID=-1, pos=wx.DefaultPosition, - size=wx.DefaultSize, style=0, name='IEHtmlWindow'): + def __init__(self, parent, id=-1, pos=wx.DefaultPosition, + size=wx.DefaultSize, style=0, name='IEHtmlWindow', ID=-1): + # in case the old 'ID' param is used as a keyword + if ID != -1: + id = ID + wx.activex.IEHtmlWindowBase.__init__(self, parent, wx.activex.CLSID('{8856F961-340A-11D0-A96B-00C04FD705A2}'), - ID, pos, size, style, name) + id, pos, size, style, name) + # Methods from IEHtmlWindowBase. Redirected from here just for # the sake of completeness... -- 2.45.2