summaryrefslogtreecommitdiff
path: root/invest-applet/invest/mate-invest-chart
blob: 786534797e4f346d5ad106e238d66ef49dc6bee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python

import sys, mate_invest.chart

import gi
gi.require_version("Gtk", mate_invest.defs.GTK_API_VERSION)
from gi.repository import Gtk

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

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