summaryrefslogtreecommitdiff
path: root/remote/brause.py
blob: e9c0fce276bc7216ce18f6c336ad5a3b4ad37c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/python2

# written by equinox in 5 mintes on 09-04-2010 :)

import sys

import gobject
import pango
import pygtk
pygtk.require('2.0')
import gtk
from gtk import gdk
import cairo

import webkit

class BrauseWindow(gtk.Window):
	def _destroy(s, widget, event):
		gtk.main_quit()

	def __init__(s):
		gtk.Window.__init__(s, type = gtk.WINDOW_TOPLEVEL)
		s.connect('delete-event', s._destroy)
		s.set_decorated(False)
		s.fullscreen()

		s.webkit = webkit.WebView()
		s.add(s.webkit)
		s.show_all()

		s.webkit.open(sys.argv[1])

	def run(s):
		gtk.main()

BrauseWindow().run()