I may likely be completely misunderstanding what the asker is doing in this python code but …
in this older SO question, the asker claims to have used the following Python code to open Webkit web engine inside a Tkinter window. (I don’t use Python and have not verfied that this still works.)
#!/usr/bin/env python
import gtk
import webkit
import gobject
gobject.threads_init()
win = gtk.Window()
bro = webkit.WebView()
bro.open("http://www.google.com")
win.add(bro)
win.show_all()
gtk.main()
But, if it does still work, why cannot the same be done in Tcl such that a web engine can be parented in a top-level Tk window?
I’m not suggesting that it should work in Tcl but only asking in order to understand what is necessary. It’s the same Tk, is it not? Does some work need to be done to make a webkit “something” that can be placed in a package require; and, if so, is that a highly challenging task for experts only or can a novice hack (like myself) learn how?
The webkit web site provides instructions on how to compile it for different platforms but I’m assuming there must be more to it to get it into a form that can be added to Tcl.
Also, there is a comment after that question that provides a link to aclevername.com/articles/python-webgui which dicusses how to communicate between Python and the web engine. For the use case in which I’m interested, I don’t think that would be necessary because I’m using Tcl as a local server and assume that the web engine will communicate that way without the need for the rest.
Thank you.