add sheet and image via python?




Hi,

I'm trying to run Python scripts through Gnumeric, and was wondering if there was a way to add worksheets to a currently open workbook using a Python command.  For example, I have

wb = Gnumeric.workbooks()[0]
sh = wb.sheets()[]

I would like to run a Python script, and pipe the output to a new sheet, say Sheet4 (as opposed to the 3 already-open sheets in wb), without opening the new sheet explicitly using the Gnumeric spreadsheet program.

Also, is there any way to import a graphic using a Python script?  I will be making my charts/plots using matplotlib (in pylab) and want to display them in Gnumeric.

Any help that anyone can give on this would be greatly appreciated!

Cheers,
Chris

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