| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/invest/ |
Upload File : |
# -*- coding: utf-8 -*-
from os.path import join
from gettext import gettext as _
from invest.defs import VERSION
import invest
import gtk, gtk.gdk
from gnome import url_show
gtk.about_dialog_set_email_hook(lambda dialog, email: url_show("mailto:%s" % email))
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."
}
about.set_authors(["Raphael Slinckx <raphael@slinckx.net>"])
# 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()