From 8a022cf799442055e24b9fce99dcdd6d7f1f6233 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 16 May 2016 21:03:34 -0700 Subject: [PATCH] The base class is wx.msw.PyAxBaseWindow, call its __init__ --- wx/lib/activex.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wx/lib/activex.py b/wx/lib/activex.py index c83d6680..090a894f 100644 --- a/wx/lib/activex.py +++ b/wx/lib/activex.py @@ -112,11 +112,10 @@ class ActiveXCtrl(wx.msw.PyAxBaseWindow): # Use this object as the event sink for the ActiveX events self._evt_connections = [] self.AddEventSink(self) - - wx.Window.__init__(self, parent, wxid, pos, size, style, name) + + wx.msw.PyAxBaseWindow.__init__(self, parent, wxid, pos, size, style, name) # Turn the window handle into a wx.Window and set this object to be that window - #win = wx.PyAxBaseWindow_FromHWND(parent, hwnd) self.AssociateHandle(hwnd) # Set some wx.Window properties @@ -152,7 +151,7 @@ class ActiveXCtrl(wx.msw.PyAxBaseWindow): # accelerators can be dealt with the way that the AXControl # wants them to be done. MSWTranslateMessage is called before # wxWidgets handles and eats the navigation keys itself. - res = self.ipao.TranslateAccelerator(msg) + res = self.ipao.TranslateAccelerator(msg) if res == hr.S_OK: return True else: