[WJG] (06/Jan/10) The Webkit [http://webkit.org] opensource project provides powerful web browser engine which is easily wrapped to produce a Gnocl package. Here's a screenshot of it in action. [http://lh3.ggpht.com/_yaFgKvuZ36o/S0RuD-VzRoI/AAAAAAAAAMY/3jzsfq6ODvs/s800/Screenshot-Gnocl%20WebKit%20Demo.png] The following script shows how to get it running. As can be seen, rather than using a Tcl/Gnocl script to build the UI, this is now handled by loading a GtkBuilder XML description file create in Glade [http://glade.gnome.org]. ====== #--------------- # test-webkit.tcl #--------------- # Created by William J Giddings # 06-Jan-10 #--------------- # Description: # #--------------- #!/bin/sh # the next line restarts using tclsh \ exec tclsh "$0" "$@" package require Gnocl package require GnoclWebKit set builderFile "browser.xml" set builderFileObjects [gnocl::builder file $builderFile] #--------------- # Register the widgets using their glade names. #--------------- foreach item $builderFileObjects { foreach {gnocl builder} $item {} set $builder $gnocl } # create browser widget set wk1 [gnocl::webKit -url "http://www.google.com"] $hbox1 add $wk1 -fill {1 1} -expand 1 $window1 configure \ -defaultHeight 400 \ -defaultWidth 640 \ -title "Gnocl WebKit Demo" \ -onDestroy { exit } $window1 show gnocl::mainLoop ====== And, of course, the Glade builder file. ====== GTK_WIN_POS_CENTER True ====== If anyone is interested in working on extending the functionality of the gnoclWebkit package then please let me know, I'd be happy to give whatever support is needed. The package is ready for download from the usual Sourceforge Gnocl repository [https://sourceforge.net/projects/gnocl/files]. [jys] OMG, this is so f*cking awesome! I'm really happy to finally see access to modern tools like WebKit in Tcl. ---- '''[tb] - 2011-03-24''' Hi! I just tried out GnoclWebKit and found the -url option not working as expected. It simply isn't handled, as the C code reveals. The last time I programmed GUI stuff in C was when XView.h (OpenLook, OpenView) was en vogue, so I'm not really fit for completing GnomeWebKit's source to a more usable state. Allthough I tried to mimic the code pattern from GnomeSourceView.c for GnomeWebKit.c, I haven't got the clue yet. Maybe there is a brief introduction into interfacing the Gtk libs the way Gnocl does it? More specific, I need some documentation about implementing the configure command and option handling. [WJG] (25/03/11) At this point in the time the package uploaded to SourceForge is basically a stub. I'll give it some TLC this weekend and properly implement the various options.