Patch: export more methods to python



Hello,

I needed some functionality exported to python from gnumeric for
a personal project, and it looks to me like something that might
be useful to others too.  Thus, here's the patch.

It adds the following methods to the python "Sheet" object:
* insert row
* delete row

and the following ones to the python "GUI" object:
* get sheet (current sheet)
* get cursor (active cell in a current sheet)

Now, it's possible to do something like this:

def insert_row(gui):
    s = gui.get_sheet()
    pos = gui.get_cursor()
    s.insert_row(pos.row)

The patch is here
http://sourceforge.net/p/fborg/code/HEAD/tree/gnumeric/py-api-1.patch


--
Regards, Anatoly


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