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.log.WriteText('OnSetTitle: %s\n' % title)
self.base_OnSetTitle(title)
+## def __del__(self):
+## print 'MyHtmlWindow.__del__'
class TestHtmlPanel(wxPanel):
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.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)
self.OnShowDefault(None)
+## def __del__(self):
+## print 'TestHtmlPanel.__del__'
+
def OnShowDefault(self, event):