Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit 795b12221741bec280c41d96147842979b7ad612

Remove test code
gtk-test.py
(0 / 40)
  
1# Copyright (C) 2007, Eduardo Silva <edsiper@gmail.com>
2#
3# This library is free software; you can redistribute it and/or
4# modify it under the terms of the GNU Lesser General Public
5# License as published by the Free Software Foundation; either
6# version 2 of the License, or (at your option) any later version.
7#
8# This library is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11# Lesser General Public License for more details.
12#
13# You should have received a copy of the GNU Lesser General Public
14# License along with this library; if not, write to the
15# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16# Boston, MA 02111-1307, USA.
17
18import os
19import gtk
20import purk
21
22class XoIRC(gtk.Window):
23 def __init__(self):
24 gtk.Window.__init__(self)
25 self.connect('destroy', gtk.main_quit)
26
27 self.set_title('XoIRC')
28 self.set_size_request(800, 450)
29
30 client = purk.Client()
31 client.add_channel('#olpc-help')
32 client.join_server('irc.freenode.net')
33 client.show()
34 widget = client.get_widget()
35 self.add(widget)
36 self.show_all()
37
38if __name__ == "__main__":
39 init = XoIRC()
40 gtk.main()