X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47eea71e188b7b412f319e729c2a0d8f07eacaf9..72858fcf67bf670ea18fe48a6b039d61afa87131:/wxPython/demo/ActiveXWrapper_IE.py diff --git a/wxPython/demo/ActiveXWrapper_IE.py b/wxPython/demo/ActiveXWrapper_IE.py index 2e23f54545..fd164e5761 100644 --- a/wxPython/demo/ActiveXWrapper_IE.py +++ b/wxPython/demo/ActiveXWrapper_IE.py @@ -11,7 +11,7 @@ you can use just like wxWindow, (set the size and position, use in a sizer, etc.) except its contents will be the COM control.
-This demo embeds the Internet Exploer WebBrowser control, and shows +This demo embeds the Internet Explorer WebBrowser control, and shows how to receive events from the COM control. (The title bar and status bar are updated as pages change, in addition to the log messages being shown.) @@ -101,12 +101,18 @@ class TestPanel(wxWindow): self.location.Append(self.current) self.SetSizer(sizer) - self.SetAutoLayout(true) + self.SetAutoLayout(True) EVT_SIZE(self, self.OnSize) EVT_WINDOW_DESTROY(self, self.OnDestroy) + def ShutdownDemo(self): + # put the frame title back + if self.frame: + self.frame.SetTitle(self.titleBase) + + def OnDestroy(self, evt): if self.ie: self.ie.Cleanup() @@ -224,7 +230,7 @@ if __name__ == '__main__': app = wxPySimpleApp() frame = TestFrame() - frame.Show(true) + frame.Show(True) app.MainLoop()