20 December 2009

PyWebkitGTK Windows Binary

This tabbed browser use 15KB of python code. Small eh?
But as you see we might need to impersonate the userAgent string into something like Safari (also using webkit) to shut facebook up... lol

Personally I didn't like its performance, it's nothing compared to safari (original implementator) not to mention Chrome! But talk about integration, WebkitGTK probably a bit ahead of QTWebkit by using Gstreamer (for multimedia backend) which I think still better than QT's phonon in Windows.

When both binded, HTML 5 will be a snap rather than what Opera 10 tries to do with their own way..

Update August 12, 2010- Update missing files: iconv and libhunspell, thanks to J. Seipp- Adding locales- Been trying webkit-1.2.3 with webM support but unable to get ffmpeg working

Update July 5, 2010- Update to 1.2.1 which fix file's mime local open issue- Bundling this package so it was compatible with official GTK 2.20- I change icondatabase to be saved to %USERPROFILE%\Webkit instead of My Documents\Webkit- Add missing icon in HTML5 player, Workaround to make inspector working- Shrinking the dll size more.. now 6MB :)- Glitches: If you play HTML5 Video (currently support ogg) you shouldn't mute it, cause the sound wont come back Timeline slider, rewind and forward button not working SVG was disabled, previously all of my builds also failed to render svg, strange. - Installation: Download Official GTK 2.20 Bundle (link at bottom) and extract it to [somewhere] Move all files in bin folder to outside (1 level) root folder Extract webkit to [somewhere] and overwrite zlib1.dll (official version was too old) Add that [somewhere] to PATH environment

Update April 26, 2010- Updated to 1.2.0 download page moved here. Actually the inspector is working, but somehow (in this case: midori) refuse to open inspector.html despite the mime is correct (text/x-html) strange huh!. Also fixed missing hunspell in previous version now spellcheck should working.

Update March 19, 2010- I finally compiling webkitGTK 1.1.23 myself! I decide to cut off HTML-5 video feature (that's GStreamer bindings) to reduce the runtime size 10MB smaller than opensuse's cross-compile binary- Still slooower than other webkit browser, probably because it using pango/glib instead of freetype/IBM's ICU?- Now fakebook is working baby! Yeah I know the tab is buggy but nevermind, anyhow I guess it's not because useragent string eh :-/

I tested with python2.6 at my windows xp partition, with the hope it will works as in linux...It works perfect!, thank you man!Sorry about my english, I think even with my low level you understood my comment :)

TNK, I've found vs 1.1.16 and work... but now I'm trying to find a good reference, that I can understand because of I need to use special option for my project...Do you a tut, a guide, a manual, a simple exemple, something at least? (TNK)

Akaishuichi, you should use M$ Dependency Walker to see which dll that failed.

If you don't know about this, here is how:

-Run depends.exe (from Windoze Support Tools) -Load python.exe -Start profiling (F7) in program arguments fill it with a full path to your main py file (if you have py2exe apps, load the main exe instead and leave argument blank).-Then from module pane you will see red box symbol for broken dll which related to error msg: "cannot found specified procedure"

Thanks TumaGonx Zakkum. I found the missing dlls and it imports now.But without SVG support I have to give up pygtk. I know little about cross compiling and as all I want to do is to embed a page, it seems I would spend too much time on it. pygtk is my favorite ui library for python, it works great on Gnome but to get it work on windows is somehow painful experience...

Well I hope so, but svg support in QWebKit is experimental, it works fine for most case but does fail rendering my page. Actually I've tried all the webkit/gecko bindings for gtk/qt/wxpython. And none of them works in my case for various reasons. long story...

I'm embedding chrome frame as an activex control in wxpython. It's not a good solution at all but currently seems to be the only way to go.

If the svg issue would be fixed in qtwebkit-2.1, I might rewrite it in PySide. it looks very promising.:)

Hi, I tried to play with pywebkitGTK and everything seems to work.The only problem I have is when I try to watch youtube videos. I have a white page instead of my video.It kinds of suck cause I want to do a small video player.Do you have any idea how to solve this problem ?