PDF Window

I have created my "own" browser using wxPython's iewin. I have been
able to keep a new window from opening using:

self.Bind(iewin.EVT_NewWindow2, self.OnNewWindow, self.ie)

def OnNewWindow(self, evt):
    evt.Cancel = True

Within the site that I am accessing, a PDF document is opened. In a
normal browser, the PDF document is opened in the same window.
However, in regards to the browser within my wxPython program, the PDF
opens in a new IE window. Is there any way to prevent this from
occuring?

Lewis