Created
September 21, 2016 05:57
-
-
Save nakamuray/31346962468398f36aa722cd1e385874 to your computer and use it in GitHub Desktop.
open webview within vim (gtk3 build)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 <<EOP | |
import gi | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('WebKit2', '4.0') | |
from gi.repository import Gtk | |
from gi.repository import WebKit2 | |
win = Gtk.Window() | |
win.set_size_request(640, 480) | |
view = WebKit2.WebView() | |
win.add(view) | |
view.load_uri('http://www.vim.org/') | |
win.show_all() | |
EOP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment