summaryrefslogtreecommitdiff
path: root/invest-applet/invest/widgets.py
diff options
context:
space:
mode:
authorPerberos <[email protected]>2012-01-30 12:07:26 -0300
committerPerberos <[email protected]>2012-01-30 12:07:26 -0300
commit764b33d33ca2884e606e722cedd9e33bd88d901e (patch)
tree0a34ecb3809f459b663a3475ac56cf887c44af0f /invest-applet/invest/widgets.py
parent934a0a1f1c7766dd8193e020af6bed8134488e83 (diff)
parente094167059fd482d254e3724ddc28a640d8a4156 (diff)
downloadmate-applets-764b33d33ca2884e606e722cedd9e33bd88d901e.tar.bz2
mate-applets-764b33d33ca2884e606e722cedd9e33bd88d901e.tar.xz
Merge branch 'master' of https://github.com/mate-desktop/mate-applets
Diffstat (limited to 'invest-applet/invest/widgets.py')
-rw-r--r--invest-applet/invest/widgets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/invest-applet/invest/widgets.py b/invest-applet/invest/widgets.py
index 3f5bc91b..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 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