summaryrefslogtreecommitdiff
path: root/invest-applet/invest/invest-chart
blob: 37df77cb7525afacdf844b3acc2d7ddb54161868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python

import sys, invest.chart, gtk

# Prepare i18n
import gettext, locale
gettext.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.MATELOCALEDIR)
gettext.textdomain(invest.defs.GETTEXT_PACKAGE)
locale.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.MATELOCALEDIR)
locale.textdomain(invest.defs.GETTEXT_PACKAGE)

if __name__ == "__main__":
	win = invest.chart.show_chart(sys.argv[1:])
	win.connect("destroy", lambda x: gtk.main_quit())
	gtk.main()