upgrading from Python 2.5 + wxPython 2.8.7.1 to Python 2.6.4 + wxPython
2.8.10.1
I ran into a few problems,
one of them is that all iewin events are gone.
IE = iewin.IEHtmlWindow ()
IE.Bind ( iewin.EVT_BeforeNavigate2, self._On_Before_Navigate2 )
IE.Bind ( iewin.EVT_NewWindow2, self._On_New_Window2 )
IE.Bind ( iewin.EVT_DocumentComplete, self._On_Document_Complete )
IE.Bind ( iewin.EVT_NavigateComplete2, self._On_Document_Complete )
IE.Bind ( iewin.EVT_ProgressChange, self._On_Progress_Change )
IE.Bind ( iewin.EVT_StatusTextChange, self._On_Status_Text_Change )
IE.Bind ( iewin.EVT_TitleChange, self._On_Title_Change )
Does anyone knows where I can find these events ?
thanks,
Stef Mientki
I think they're under iewin_old now. Try this instead:
import wx.lib.iewin_old as iewin
As I recall, wx now uses ctypes or some such to embed iewin now, so it
works differently. Check the change logs for details.
-------------------
Mike Driscoll
From CHANGES.txt:
"""
The wx.lib.iewin, wx.lib.pdfwin, and wx.lib.flashwin modules were
switched to use the new and improved activex module. The APIs
provided by these modules should be mostly compatible with what was
there before, except for how the COM events are handled. Instead of
sending wx events it relies on you overriding methods with the same
names as the COM events. You can either do it in a or derived class,
or you can set an instance of some other class to be the event sink.
See the ActiveX_IEHtmlWindow sample in the demo for an example. If you
would rather continue to use the old version of these modules they
are available in the wx.lib with "_old" added to the names.
"""
--
Robin Dunn
Software Craftsman
http://wxPython.org
cheers,
Stef