Format numbers with commas
authorRyan Campbell <campbellr@gmail.com>
Sat, 22 May 2010 04:24:36 +0000 (22:24 -0600)
committerRyan Campbell <campbellr@gmail.com>
Sat, 22 May 2010 04:24:36 +0000 (22:24 -0600)
commitb6c5ba7654aef0e961b7e6e75396b9327dfe7ca8
tree4fb149032bb858c58796aa709007d01105cc8563
parent09bef69c34d1848df9f962498ed4441d69f72f08
Format numbers with commas

created a new function comma() that converts a number into a string
formatted with commas.
eg. 1234567 -> "1,234,567"

Also, put this in new file util.py, which can hold miscellaneous functions.
package/src/ui/diablo/gui.py
package/src/ui/fremantle/gui.py
package/src/ui/models.py
package/src/util.py [new file with mode: 0644]