diff --git a/wxPython/demo/ActiveX_IEHtmlWindow.py b/wxPython/demo/ActiveX_IEHtmlWindow.py
index c55e5f8ff6..698489e04b 100644
--- a/wxPython/demo/ActiveX_IEHtmlWindow.py
+++ b/wxPython/demo/ActiveX_IEHtmlWindow.py
@@ -10,9 +10,9 @@ if wx.Platform == '__WXMSW__':
#----------------------------------------------------------------------
-class TestPanel(wx.Window):
+class TestPanel(wx.Panel):
def __init__(self, parent, log, frame=None):
- wx.Window.__init__(
+ wx.Panel.__init__(
self, parent, -1,
style=wx.TAB_TRAVERSAL|wx.CLIP_CHILDREN|wx.NO_FULL_REPAINT_ON_RESIZE
)