the guy is similar to this:
3 fields: quantity - description of the piece bought - price
a way to add a new "line" if needed (for a new piece entry) similar to the
"add rule" in evolution
1 text field for the description of the work + 1 field for the price of
the work
and off course a way to insert this data in to the ods file via python
Any hints/tutorial/info?
thanks
Nico
OOcalc supports a little known feature whereby data can be
automatically sync'd between the spreadsheet and an HTML table. A
few years ago I did up a demo of this in action using Tcl/Tk (http://
www.icanprogram.com/hosug). It should not be too hard to port this
idea to Python.
bob
> > 3 fields: quantity - description of the piece bought - price
>
> So what is your plan...?
> * Pop up a dialog with three entrys,
> * have him fill out the three entrys,
> * then have python insert the data into the spreadsheet?
> ...Why bother messing with OO, too much trouble for me?
Totally agree with you. No need for a heavy machinery in this case.
> Then just save all the data as csv and you
> can always load it into a spreadsheet later if the IRS comes knocking,
> or you need to print a professional looking spreadsheet ;-). Simple,
> 100% python solution!
Actually, a spreadsheet based solution isn't best fit for such a task.
I'd recommend to store the data in sqlite3 (also 100% pure python as
the module is in the stdlib). CSV is good for making invoices or
something like that.