#----------------------------------------------------------------------
 
-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
             )
 
     def OnNewWindow2(self, evt):
         self.logEvt(evt)
-##        evt.Veto()   # TODO
+        # Veto the new window.  Cancel is defined as an "out" param
+        # for this event.  See iewin.py
+        evt.Cancel = True   
 
     def OnProgressChange(self, evt):
         self.logEvt(evt)