Patch: export more methods to python


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()

The patch is here

Regards, Anatoly

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