[pygtk] Embedding a Win32 window or ActiveX control in a pygtk
application
Guillaume Proux
guillaume.proux at scala.com
Wed Jun 8 11:02:35 WST 2005
I don't remember all details but I did embed a Flash file into a GTK
window some time ago:
it went like this:
from ctypes import oledll
import gtk
x = ShockwaveFlash()
x.LoadMovie("cow.swf")
axcontainer=gtk.DrawingArea()
axcontainer.set_size_request(100,100)
axcontainer.show()
oledll.atl.AtlAxAttachControl(x._comobj,axcontainer.window.handle,byref(ret))
gtk.main()
It worked well for Flash but it failed for some other AX controls in
ways I never understood. I hope you will make it work with IE.
In the worst case you might want to give a look at Venster:
http://venster.sourceforge.net/htdocs/
Guillaume
More information about the pygtk
mailing list