usr bin env python Meebo IM Client by n3m0 n3m0 g-sg net import pygtk

 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
38
39
40
41
#!/usr/bin/env python
# Meebo - IM Client
# by n3m0
# n3m0@g-sg.net
import pygtk
pygtk.require("2.0")
import gtk
import gtkmozembed as moz
def on_moz_show_event(obj):
print "Connected"
moz.set_profile_path("/tmp/","foo")
gtkmoz = moz.MozEmbed()
gtkmoz.load_url("meebo.com/mobile/")
gtkmoz.connect('show', on_moz_show_event)
win = gtk.Window()
win.connect('delete-event',lambda x,y: gtk.main_quit())
box = gtk.VBox(False, 0)
win.add(box)
#button1 = gtk.Button("Button 1")
#button1.connect("clicked", callback, "button 1")
#box.pack_start(button1, True, True, 0)
#button1.show()
box.pack_start(gtkmoz, True, True, 0)
#win.add(gtkmoz)
win.set_title("Meebo - IM Client")
win.show_all()
gtk.main()