I am trying to load a webkit view in a different thread than the main thread for gtk.
I see an example of PyGTK, Threads and WebKit
I am slightly modifying support for PyGObject and GTK3:
from gi.repository import Gtk from gi.repository import Gdk from gi.repository import GObject from gi.repository import GLib from gi.repository import WebKit import threading import time
As a result, this is an empty window, and after-sleep printing is never performed. Calling idle_add does not work. The only working part is the call commented out in the main thread.
source share