X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0dabb2a2c6ae27df135da4752b00579346bb74fc..1b48afd23db9e8b5bfac8323c292b08f8f9f2e0e:/wxPython/demo/ActiveX_IEHtmlWindow.py diff --git a/wxPython/demo/ActiveX_IEHtmlWindow.py b/wxPython/demo/ActiveX_IEHtmlWindow.py index c55e5f8ff6..c1356e4deb 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 ) @@ -191,10 +191,10 @@ def runTest(frame, nb, log): win = TestPanel(nb, log, frame) return win else: - dlg = wx.MessageDialog(frame, 'This demo only works on Windows.', - 'Sorry', wx.OK | wx.ICON_INFORMATION) - dlg.ShowModal() - dlg.Destroy() + from Main import MessagePanel + win = MessagePanel(nb, 'This demo only works on Microsoft Windows.', + 'Sorry', wx.ICON_WARNING) + return win