diff options
author | Stefano Karapetsas <[email protected]> | 2012-01-27 11:19:49 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-01-27 11:19:49 +0100 |
commit | c7b2e180e6cfb4aec22f8ab3e0aebc6773032216 (patch) | |
tree | 06712266abecdc4b8980885c2547d0087fa68fc7 /invest-applet/invest/widgets.py | |
parent | 843576a9e066a18dce191d96eb962d3b0bbde63b (diff) | |
download | mate-applets-c7b2e180e6cfb4aec22f8ab3e0aebc6773032216.tar.bz2 mate-applets-c7b2e180e6cfb4aec22f8ab3e0aebc6773032216.tar.xz |
'invest' python module is now 'mate-invest' to solve conflicts with gnome
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 3f5bc91b..c8083450 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 invest, invest.about, 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 - 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: - 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 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 |