summaryrefslogtreecommitdiff
path: root/invest-applet/invest/about.py
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-14 18:24:48 -0300
committerPerberos <[email protected]>2011-11-14 18:24:48 -0300
commit312ba610a1e98fc656fb58178227d7d45a64494e (patch)
tree54a3c2b6084c80e63fb0526c6e7b8e01627acbd7 /invest-applet/invest/about.py
downloadmate-applets-312ba610a1e98fc656fb58178227d7d45a64494e.tar.bz2
mate-applets-312ba610a1e98fc656fb58178227d7d45a64494e.tar.xz
initial
Diffstat (limited to 'invest-applet/invest/about.py')
-rw-r--r--invest-applet/invest/about.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/invest-applet/invest/about.py b/invest-applet/invest/about.py
new file mode 100644
index 00000000..e2829e86
--- /dev/null
+++ b/invest-applet/invest/about.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+from os.path import join
+from gettext import gettext as _
+from invest.defs import VERSION
+import invest
+import gtk, gtk.gdk
+
+invest_logo = None
+try:
+ invest_logo = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest_neutral.svg"), 96, 96)
+except Exception, msg:
+ pass
+
+def show_about():
+ about = gtk.AboutDialog()
+ infos = {
+ "program-name" : _("Invest"),
+ "logo" : invest_logo,
+ "version" : VERSION,
+ "comments" : _("Track your invested money."),
+ "copyright" : "Copyright © 2004-2005 Raphael Slinckx.\nCopyright © 2009-2010 Enrico Minack."
+ }
+
+ about.set_authors(["Raphael Slinckx <[email protected]>", "Enrico Minack <[email protected]>"])
+# about.set_artists([])
+# about.set_documenters([])
+
+ #translators: These appear in the About dialog, usual format applies.
+ about.set_translator_credits( _("translator-credits") )
+
+ for prop, val in infos.items():
+ about.set_property(prop, val)
+
+ about.connect ("response", lambda self, *args: self.destroy ())
+ about.show_all()