Created
May 27, 2014 17:32
-
-
Save wpjunior/4fd4f309dab9982adc01 to your computer and use it in GitHub Desktop.
Simple GObject Instrospection Web Browser
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
# *-* 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