blob: d06278e5fdf88e394e5b514d38c45aae50a31aff (
plain) (
blame)
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
|
#! /usr/bin/python
import pygtk
pygtk.require("2.0")
import gtk
import gnomegeckoembed
import os
class Base:
def destroy(self, widget, data=None):
gtk.main_quit()
def __init__(self):
gnomegeckoembed.gecko_embed_single_set_comp_path("/usr/lib/firefox")
gnomegeckoembed.gecko_embed_single_push_startup()
self.browser = gnomegeckoembed.Embed()
self.browser.load_url("www.gnome.org")
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.connect("destroy", self.destroy)
self.window.set_default_size(800, 600)
self.window.add(self.browser)
self.browser.show()
self.window.show()
def main(self):
gtk.main()
print __name__
if __name__ == "__main__":
base = Base()
base.main()
|