diff options
author | Stefano Karapetsas <[email protected]> | 2012-01-27 14:37:19 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-01-27 14:37:19 +0100 |
commit | bf8f363ef056cee972185e18b3793b5d5551a1a3 (patch) | |
tree | 9cbfb5bd6b4ea3b81220c1a66598c5f2d7851523 /invest-applet/invest/widgets.py | |
parent | c7b2e180e6cfb4aec22f8ab3e0aebc6773032216 (diff) | |
download | mate-applets-bf8f363ef056cee972185e18b3793b5d5551a1a3.tar.bz2 mate-applets-bf8f363ef056cee972185e18b3793b5d5551a1a3.tar.xz |
'mate-invest' => 'mate_invest'
Diffstat (limited to 'invest-applet/invest/widgets.py')
-rw-r--r-- | invest-applet/invest/widgets.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/invest-applet/invest/widgets.py b/invest-applet/invest/widgets.py index c8083450..0a897e30 100644 --- a/invest-applet/invest/widgets.py +++ b/invest-applet/invest/widgets.py @@ -4,7 +4,7 @@ import mateapplet, gtk, gtk.gdk, mateconf, gobject, pango from gettext import gettext as _ import locale import csv -import mate-invest, mate-invest.about, mate-invest.chart +import mate_invest, mate_invest.about, mate_invest.chart COLORSCALE_POSITIVE = [ "white", @@ -154,7 +154,7 @@ class InvestWidget(gtk.TreeView): if ticker == None: return - mate-invest.chart.show_chart([ticker]) + mate_invest.chart.show_chart([ticker]) #class InvestTicker(gtk.Label): # def __init__(self): @@ -215,7 +215,7 @@ class InvestTrend(gtk.Image): int(color.red*factor)<<24|int(color.green*factor)<<16|int(color.blue*factor)<<8|opacity) self.set_from_pixbuf(self.pixbuf) except Exception, msg: - mate-invest.error("Could not set color: %s" % msg) + mate_invest.error("Could not set color: %s" % msg) def on_quotes_update(self, updater): start_total = 0 @@ -230,7 +230,7 @@ class InvestTrend(gtk.Image): start = now / (1 + var) - portfolio_number = sum([purchase["amount"] for purchase in mate-invest.STOCKS[row[updater.SYMBOL]]["purchases"]]) + portfolio_number = sum([purchase["amount"] for purchase in mate_invest.STOCKS[row[updater.SYMBOL]]["purchases"]]) start_total += start * portfolio_number now_total += now * portfolio_number |