[billreminder] Display amount values in currency format for bullets.



commit b049ccfd977ec8affe329621ed3ee1c5836c26fd
Author: Og B. Maciel <ogmaciel gnome org>
Date:   Fri Dec 31 12:37:28 2010 -0500

    Display amount values in currency format for bullets.

 src/gui/maindialog.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/maindialog.py b/src/gui/maindialog.py
index 9ce4ecb..4891034 100644
--- a/src/gui/maindialog.py
+++ b/src/gui/maindialog.py
@@ -32,6 +32,7 @@ from lib.utils import Message
 from lib.utils import get_dbus_interface
 from lib.utils import force_string
 from lib.utils import create_pixbuf
+from lib.utils import float_to_currency
 from lib import i18n
 
 from lib.common import GCONF_PATH, GCONF_GUI_PATH, GCONF_ALARM_PATH
@@ -496,7 +497,7 @@ class MainDialog:
                 amount += bill.amount
                 if tooltip:
                     tooltip += '\n'
-                tooltip += bill.payee + '\n' + str(bill.amount)
+                tooltip += bill.payee + '\n' + str(float_to_currency(bill.amount))
                 if bill.notes:
                     tooltip += '\n' + bill.notes
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]