root/branch/UmitBluetooth/UmitBT/umitBTCore/about.py @ 3696

Revision 3696, 2.6 kB (checked in by devtar, 5 years ago)

For UmitBT 0.71RC2. Versioning rectified across several files.

Line 
1#!/usr/bin/env python
2# Copyright (C) 2008 Adriano Monteiro Marques.
3#
4# Author: Devtar Singh <devtar@gmail.com>
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20import pygtk
21pygtk.require('2.0')
22import gtk
23import os
24
25import path
26
27class about_dialog:
28
29   def __init__(self):
30        self.about =  gtk.AboutDialog()
31        self.about.set_title("About Umit Bluetooth")
32        self.about.set_position(gtk.WIN_POS_CENTER)
33        self.about.set_name("Umit Bluetooth")
34        self.about.set_version("0.7RC2")
35        self.about.set_authors(["Devtar Singh <devtar@gmail.com>"])
36        self.about.set_website("www.umitproject.org")
37        umit_logo = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "icons", "umit_16.ico")))
38        self.about.set_icon(umit_logo)
39        self.about.set_copyright("License: GNU GPL")
40        self.about.set_license("This program is free software; you can redistribute it\n" +
41                                "and/or modify it under the terms of the\n" +
42                                "GNU General Public License as published by\n" +
43                                "the Free Software Foundation; either version 2 of \n" +
44                                "the License, or (at your option) any later version.\n\n" +
45                                "This program is distributed in the hope that it will\n" +
46                                "be useful, but WITHOUT ANY WARRANTY;\n" +
47                                "without even the implied warranty of\n" +
48                                "MERCHANTABILITY or FITNESS FOR A PARTICULAR\n" +
49                                "PURPOSE. See the GNU General Public License for more details.\n\n" +                           
50                                "You should have received a copy of the \n" +
51                                "GNU General Public License\n" +
52                                "along with this program; if not, write to the: \n"
53                                "Free Software\n" + 
54                                "Foundation, Inc.,\n" +
55                                "59 Temple Place, \n"+
56                                "Suite 330, Boston,\n" +
57                                "MA 02111-1307 USA")
58        self.about.set_wrap_license(True)
59        self.hide_about()
60        self.about.connect('response', self.on_close)
61       
62   def get_about(self):
63        print "get about"       
64        self.about.show()
65
66   def hide_about(self):
67        print "hide about"
68        self.about.hide()
69
70   def on_close(self, dialog, response):
71        self.about.hide()
72
73 
Note: See TracBrowser for help on using the browser.