This is the description of standalone Python functions in the xlsgrid module.
FontFromFont | Creates a copy of the input font. |
ReadExcelCOM | Reads and Excel spreadsheet (a single worksheet) using Mark Hammonds’ pywin32 |
SplitThousands | Splits a general float on thousands. |
Creates a copy of the input font.
Parameters: | font – an instance of wx.Font. |
---|
Reads and Excel spreadsheet (a single worksheet) using Mark Hammonds’ pywin32 package. If this package is not available, it returns two empty nested lists.
Parameters: |
|
---|---|
Returns: | two nested lists representing the comments (notes) on every cell and the WYSIWYG representation of the cell content. |
Note
If Mark Hammonds’ pywin32 package is not available, this method returns two empty nested lists.
Splits a general float on thousands. GIGO on general input.
Parameters: |
|
---|---|
Returns: | a string properly formatted with thousands and decimal separators in it. |
Note
This method is used only if Mark Hammonds’ pywin32 package is not available to try and format a number in an intelligent way.
Note
This code has been obtained from the public domain:
http://code.activestate.com/recipes/498181-add-thousands-separator-commas-to-formatted-number/#c14