Re: A few python wrappers



On Fri, Sep 07, 2001 at 06:48:10PM -0700, Mathew Yeates wrote:

I started writing a few python wrappers (using SWIG)
 for myself. Anybody who wants them is welcome to
them.

Now in my python plugin I can do

import wb
import wb_gui
import wb_ctl
import sheet

def mcy():
        w=wb.workbook_new_with_sheets(1)
        sh=wb.workbook_sheet_by_index(w,0)
        sbi=wb.workbook_sheet_by_index(w,0)
        c=sheet.sheet_cell_fetch(sbi,2,2)
        sheet.sheet_cell_set_text(c,"WHOOPIE")
        wbc = wb_gui.workbook_control_gui_new (None, w);

Nice.  Please send them over and I'll include them in the python
plugin as a sample.




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