Python : No module webkit on windows 10

402
April 19, 2017, at 8:35 PM

I am working on a Python application on Windows10 in which I want to use Webkit module from Python. I am getting an error as no module named webkit. I have installed pygtk and python, but I cannot find anything for webkit. Any ideas?

Code :

import os
import urlparse
import webkit
import gtk

view = webkit.WebView()
sw = gtk.ScrolledWindow()
sw.add(view)
win = gtk.Window(gtk.WINDOW_TOPLEVEL)
win.add(sw)
win.resize(1080,1920)
win.show_all()
uri = 'resources/football.html'
uri = os.path.realpath(uri)
uri = urlparse.ParseResult('file', '', uri, '', '', '')
uri = urlparse.urlunparse(uri)
view.load_uri(uri)
gtk.main()

Thank you.

READ ALSO
Counting similar elements from a table

Counting similar elements from a table

I have a table where the digits represents the something like a score where the alphabets are something like namesExample, in the first list, X scores 1 and Y scores 1

216
proportion of function words in Frogged text file

proportion of function words in Frogged text file

I'm using the NLP tool Frog to analyze some Dutch text filesI frogged my text file and the output looks like this:

237
Dictionary match issue with single pass multiple replacement

Dictionary match issue with single pass multiple replacement

Hi I'm trying to replace multiple words in a single pass using the function:

217
How to specify function signature for a method using custom types in numba

How to specify function signature for a method using custom types in numba

I use the numbajitclass decorator to mark my class for optimization

535