]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/wxHtmlWindow.py
wxHandleFatalExceptions() added, documented
[wxWidgets.git] / utils / wxPython / demo / wxHtmlWindow.py
index 15d437e4b9a7127b6ba6e5879f7198e6ae377b55..eb2aac73e3f64761e873b456ee90974cd303c9ef 100644 (file)
@@ -18,7 +18,7 @@ class MyHtmlWindow(wxHtmlWindow):
     def OnLinkClicked(self, linkinfo):
         self.log.WriteText('OnLinkClicked: %s\n' % linkinfo.GetHref())
 
     def OnLinkClicked(self, linkinfo):
         self.log.WriteText('OnLinkClicked: %s\n' % linkinfo.GetHref())
 
-        # Virtuals in the base class have been renamed with base_ on the font.
+        # Virtuals in the base class have been renamed with base_ on the front.
         self.base_OnLinkClicked(linkinfo)
 
 
         self.base_OnLinkClicked(linkinfo)
 
 
@@ -26,6 +26,8 @@ class MyHtmlWindow(wxHtmlWindow):
         self.log.WriteText('OnSetTitle: %s\n' % title)
         self.base_OnSetTitle(title)
 
         self.log.WriteText('OnSetTitle: %s\n' % title)
         self.base_OnSetTitle(title)
 
+##     def __del__(self):
+##         print 'MyHtmlWindow.__del__'
 
 
 class TestHtmlPanel(wxPanel):
 
 
 class TestHtmlPanel(wxPanel):
@@ -37,7 +39,6 @@ class TestHtmlPanel(wxPanel):
         if not self.cwd:
             self.cwd = os.getcwd()
 
         if not self.cwd:
             self.cwd = os.getcwd()
 
-
         self.html = MyHtmlWindow(self, -1, log)
         self.html.SetRelatedFrame(frame, "wxPython: (A Demonstration) -- %s")
         self.html.SetRelatedStatusBar(0)
         self.html = MyHtmlWindow(self, -1, log)
         self.html.SetRelatedFrame(frame, "wxPython: (A Demonstration) -- %s")
         self.html.SetRelatedStatusBar(0)
@@ -48,9 +49,9 @@ class TestHtmlPanel(wxPanel):
         self.box.Add(self.html, 1, wxGROW)
 
         subbox = wxBoxSizer(wxHORIZONTAL)
         self.box.Add(self.html, 1, wxGROW)
 
         subbox = wxBoxSizer(wxHORIZONTAL)
-        btn = wxButton(self, 1201, "Show Default")
-        EVT_BUTTON(self, 1201, self.OnShowDefault)
-        subbox.Add(btn, 1, wxGROW | wxALL, 2)
+##         btn = wxButton(self, 1201, "Show Default")
+##         EVT_BUTTON(self, 1201, self.OnShowDefault)
+##         subbox.Add(btn, 1, wxGROW | wxALL, 2)
 
         btn = wxButton(self, 1202, "Load File")
         EVT_BUTTON(self, 1202, self.OnLoadFile)
 
         btn = wxButton(self, 1202, "Load File")
         EVT_BUTTON(self, 1202, self.OnLoadFile)
@@ -86,6 +87,9 @@ class TestHtmlPanel(wxPanel):
         self.OnShowDefault(None)
 
 
         self.OnShowDefault(None)
 
 
+##     def __del__(self):
+##         print 'TestHtmlPanel.__del__'
+
 
 
     def OnShowDefault(self, event):
 
 
     def OnShowDefault(self, event):