moved size_convert function and about dialog outside MVC scope
[findit] / src / mvc / misc / about.py
1 import gtk
2
3 from __main__ import __version__, __progname__
4
5
6 class About(gtk.AboutDialog):
7     """About dialog window."""
8
9     def __init__(self):
10         """Create&show about dialog."""
11         gtk.AboutDialog.__init__(self)
12
13         self.progname = __progname__
14         self.version = __version__
15         self.authors = [    'Alex Taker\n   * Email: alteker@gmail.com\n',
16                         'Eugene Gagarin\n   * Email: mosfet07@ya.ru\n',
17                         'Alexandr Popov\n   * Email: popov2al@gmail.com' ]
18         self.comments = 'Tool for find some information on computer.'
19         self.license = \
20 'This program is free software; you can redistribute it and/or\nmodify it \
21 under the terms of the GNU General Public License\nas published by the Free \
22 Software Foundation; either version 3\nof the License, or (at your option) \
23 any later version.'
24
25         self.set_name(self.progname)
26         self.set_version(self.version)
27         self.set_authors(self.authors)
28         self.set_comments(self.comments)
29         self.set_license(self.license)
30
31         self.show_all()
32         self.run()
33         self.destroy()