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