Where are the iewin events ?

34 views
Skip to first unread message

Stef Mientki

unread,
Dec 19, 2009, 11:18:05 AM12/19/09
to wxPytho...@lists.wxwidgets.org
hello,

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

Mike Driscoll

unread,
Dec 21, 2009, 10:23:19 AM12/21/09
to wxPython-users
Hi Stef,

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

Blog: http://blog.pythonlibrary.org

Robin Dunn

unread,
Dec 21, 2009, 4:05:28 PM12/21/09
to wxpytho...@googlegroups.com

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

Stef Mientki

unread,
Dec 22, 2009, 7:03:28 AM12/22/09
to wxpytho...@googlegroups.com
Thanks Robin,
I missed that.
And perfect that the old ones are still there.

cheers,
Stef

Reply all
Reply to author
Forward
0 new messages