Skip to content

Instantly share code, notes, and snippets.

@wpjunior
Created May 27, 2014 17:32
Show Gist options
  • Save wpjunior/4fd4f309dab9982adc01 to your computer and use it in GitHub Desktop.
Save wpjunior/4fd4f309dab9982adc01 to your computer and use it in GitHub Desktop.
Simple GObject Instrospection Web Browser
# *-* coding: utf-8 *-*
# Author: Wilson Júnior <[email protected]>
# Licence: MIT
from gi.repository import Gtk, WebKit
class MyApp(Gtk.Window):
def __init__(self, *args, **kwargs):
super(MyApp, self).__init__(*args, **kwargs)
self.web = WebKit.WebView()
self.add(self.web)
self.web.load_uri('http://www.google.com.br')
self.connect('destroy', Gtk.main_quit)
if __name__ == "__main__":
Gtk.init()
app = MyApp()
app.show_all()
Gtk.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment