summaryrefslogtreecommitdiff
path: root/invest-applet/invest/invest-chart
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/invest-chart
downloadmate-applets-312ba610a1e98fc656fb58178227d7d45a64494e.tar.bz2
mate-applets-312ba610a1e98fc656fb58178227d7d45a64494e.tar.xz
initial
Diffstat (limited to 'invest-applet/invest/invest-chart')
-rwxr-xr-xinvest-applet/invest/invest-chart15
1 files changed, 15 insertions, 0 deletions
diff --git a/invest-applet/invest/invest-chart b/invest-applet/invest/invest-chart
new file mode 100755
index 00000000..37df77cb
--- /dev/null
+++ b/invest-applet/invest/invest-chart
@@ -0,0 +1,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()