I battled the same thing in dmedia for quite a while, and I think the
issue was having a mix of Gtk2 and Gtk3 installed, needing to explicitly
require the correct versions before importing from gi.repository.
Here's an example:
import gi
gi.require_version('Gtk', '2.0')
gi.require_version('WebKit', '1.0')
from gi.repository import Gtk, WebKit
I attached the dummy-client script I use in dmedia to automatically run
JavaScript unit tests in embedded webkit, so you have a full working
example (or at least it's working for me right now).
** Attachment added: "dummy-client"
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/796131/+attachment/2166597/+files/dummy-client
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/796131
Title:
Can't add WebKit.WebView to a Gtk.Window
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/796131/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs