Skip to content

Instantly share code, notes, and snippets.

View stoic1979's full-sized avatar

Navjot Singh stoic1979

  • Hamilton, New Zealand
View GitHub Profile
@stoic1979
stoic1979 / pybrowser.py
Created March 31, 2017 08:44 — forked from kklimonda/pybrowser.py
A minimal Gtk+/Webkit based browser in Python
import sys
from gi.repository import Gtk, Gdk, WebKit
class BrowserTab(Gtk.VBox):
def __init__(self, *args, **kwargs):
super(BrowserTab, self).__init__(*args, **kwargs)
go_button = Gtk.Button("go to...")
go_button.connect("clicked", self._load_url)
self.url_bar = Gtk.Entry()