Package aquarium :: Package widget :: Module ThousandsCommas :: Class ThousandsCommas
[show private | hide private]
[frames | no frames]

Class ThousandsCommas

AquariumClass --+
                |
               ThousandsCommas


Method Summary
  __call__(self, n)
Return n after putting commas at the thousands marks.
  _addCommas(self, s, forward)
Add commas to s and return it.
    Inherited from AquariumClass
  __init__(self, ctx)
Set a reference to ctx.

Method Details

__call__(self, n)
(Call operator)

Return n after putting commas at the thousands marks.

n
  This is the number to output.

It's safe to accidentally call this method twice on the same number.

Note that this widget is only appropriate for English.  For instance,
in Germany, they reverse the meaning of commas and periods when writing
a decimal number.

_addCommas(self, s, forward)

Add commas to s and return it.

forward:
  Do we start at the left and work to the right?

Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 http://epydoc.sf.net