Merge commit 'origin/mosfet/master' into alex2ndr/master
[findit] / src / about.py
diff --git a/src/about.py b/src/about.py
new file mode 100755 (executable)
index 0000000..efc92f8
--- /dev/null
@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+# -*-coding: utf-8 -*-
+# vim: sw=4 ts=4 expandtab ai
+
+import gtk
+
+from __main__ import __version__, __progname__
+
+
+class About(gtk.AboutDialog):
+    """About dialog window."""
+
+    def __init__(self):
+        """Create&show about dialog."""
+        gtk.AboutDialog.__init__(self)
+
+        self.progname = __progname__
+        self.version = __version__
+        self.authors = [    'Alex Taker\n   * Email: alteker@gmail.com\n',
+                        'Eugene Gagarin\n   * Email: mosfet07@ya.ru\n',
+                        'Alexandr Popov\n   * Email: popov2al@gmail.com' ]
+        self.comments = 'Tool for find some information on computer.'
+        self.license = \
+'This program is free software; you can redistribute it and/or\nmodify it \
+under the terms of the GNU General Public License\nas published by the Free \
+Software Foundation; either version 3\nof the License, or (at your option) \
+any later version.'
+
+        self.set_name(self.progname)
+        self.set_version(self.version)
+        self.set_authors(self.authors)
+        self.set_comments(self.comments)
+        self.set_license(self.license)
+
+        self.show_all()
+        self.run()
+        self.destroy()