home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / python2.4 / site-packages / invest / about.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  1.9 KB  |  49 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. from os.path import join
  5. from gettext import gettext as _
  6. from invest.defs import VERSION
  7. import invest
  8. import gtk
  9. import gtk.gdk as gtk
  10. import gnomevfs
  11. import gobject
  12.  
  13. def on_email(about, mail):
  14.     gnomevfs.url_show('mailto:%s' % mail)
  15.  
  16.  
  17. def on_url(about, link):
  18.     gnomevfs.url_show(link)
  19.  
  20. gtk.about_dialog_set_email_hook(on_email)
  21. gtk.about_dialog_set_url_hook(on_url)
  22. invest_logo = None
  23.  
  24. try:
  25.     invest_logo = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, 'invest.svg'), 96, 96)
  26. except Exception:
  27.     msg = None
  28.  
  29.  
  30. def show_about():
  31.     about = gtk.AboutDialog()
  32.     infos = {
  33.         'name': _('Invest'),
  34.         'logo': invest_logo,
  35.         'version': VERSION,
  36.         'comments': _('Track your invested money.'),
  37.         'copyright': 'Copyright \xc2\xa9 2004-2005 Raphael Slinckx.',
  38.         'website': 'http://raphael.slinckx.net/invest',
  39.         'website-label': _('Invest Website') }
  40.     about.set_authors([
  41.         'Raphael Slinckx <raphael@slinckx.net>'])
  42.     about.set_translator_credits(_('translator-credits'))
  43.     for prop, val in infos.items():
  44.         about.set_property(prop, val)
  45.     
  46.     about.connect('response', (lambda self: self.destroy()))
  47.     about.show_all()
  48.  
  49.