Opened 5 years ago

Last modified 5 years ago

#58768 new request

Now that py27-webkitgtk is deprecated, how can I import webkit into python.

Reported by: Khaldone (Khaled Alofi) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: elelay (Eric Le Lay), dbevans (David B. Evans)
Port: py-webkitgtk

Description

Hi guys,

I used to install pywebkitgtk on my Mac using MacPorts. As a matter of fact, that was the only way which worked for me. However, I noticed that the port py27-webkitgtk is no longer available due to security concerns.

Question is: How can I import webkit as a module onto my Python program as in 'import webkit' now that py27-webkitgtk is no longer available. Kindly, help me with this issue.

Best,

Change History (3)

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Keywords: pywebkitgtk removed
Port: py-webkitgtk added; py27-webkitgtk removed
Version: 2.5.4

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Cc: elelay dbevans added

comment:3 Changed 5 years ago by elelay (Eric Le Lay)

Does the MP webkit-gtk3 port provide gobject bindings?

If so, you can use it as in

import gi
gi.require_version('WebKit2', '4.0')
from gi.repository import WebKit2

then search for WebKit2 python examples. For instance in gPodder

Note: See TracTickets for help on using tickets.