X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7c75283f2144469e8fa6a24ca285b42fab69a6b..6a52ea5cb81dcd07c286d34b80945534780fe05f:/wxPython/demo/ActiveX_FlashWindow.py?ds=inline diff --git a/wxPython/demo/ActiveX_FlashWindow.py b/wxPython/demo/ActiveX_FlashWindow.py index f0cf3db966..f7d3ef4df3 100644 --- a/wxPython/demo/ActiveX_FlashWindow.py +++ b/wxPython/demo/ActiveX_FlashWindow.py @@ -29,7 +29,7 @@ class TestPanel(wx.Panel): self.Bind(wx.EVT_BUTTON, self.OnOpenURLButton, btn) btnSizer.Add(btn, proportion=1, flag=wx.EXPAND|wx.ALL, border=5) - btnSizer.Add((50,-1), proportion=2, flag=wx.EXPAND) + btnSizer.Add((50,-1), proportion=2, flag=wx.EXPAND) sizer.Add(btnSizer, proportion=0, flag=wx.EXPAND) self.SetSizer(sizer) @@ -68,14 +68,15 @@ def runTest(frame, nb, log): win = TestPanel(nb, log) return win else: - dlg = wx.MessageDialog(frame, 'This demo only works on MSW.', - '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 -overview = """\ -

wx.lib.pdfwin.FlashWindow

+overview = """\ + +

wx.lib.flashwin.FlashWindow

The wx.lib.pdfwin.FlashWindow class is yet another example of using ActiveX controls from wxPython using the new wx.activex module. This @@ -87,7 +88,7 @@ ActiveX control in a very intuitive way. the win32all extensions, and is more "wx\'ish", meaning that it uses events and etc. as would be expected from any other wx window. -

This demo embeds the Shackwave Flash control, and lets you play a game. +

This demo embeds the Shockwave Flash control, and lets you play a game. """