In Python (Linux), how can i load the Google chrome or Chromium browser inside a gtk.Window()?
Where i am using now as webkit but instead of the webkit i need to use Google Chrome/Chromium because of the Javscript engine and other update issues.
$ apt-get install python-webkit
$ cat >> /var/tmp/browser.py << \EOF
#!/usr/bin/env python
import gtk
import webkit
import gobject
gobject.threads_init()
win = gtk.Window()
win.set_title("Python Browser")
bro = webkit.WebView()
bro.open("http://www.google.com")
win.add(bro)
win.show_all()
gtk.main()
EOF
$ python /var/tmp/browser.py
I don't think you can embed Chrome ... you can create your application in Qt and embed QtWebkit ... or you can use selenium with whatever driver you wish including Chrome , but i don't think you can embed that .
Qtwebkit has all the features that you need.
EDIT
I take everything back because I just found something that might work. :D
https://bitbucket.org/chromiumembedded/ "A simple framework for embedding chromium browser windows in other applications."
and this framework also has python bindings: http://code.google.com/p/cefpython/
but i'm not sure if chromium has all the features that you need ...