[udk-dev] returning multiple values (and range cells) from a Python calc add-in

2007-05-17 Thread Joachim Dahl
I am trying to write a Python calc add-in that returns multiple values including range-cells (or arrays of numbers). E.g., if I want the method to take two input long arguments 'inarg1' and 'inarg2' and return a status string and two arrays of numbers, how would I specify the IDL routine and

Re: [udk-dev] returning multiple values (and range cells) from a Python calc add-in

2007-05-18 Thread Joachim Dahl
all of the Python add-in tutorials I've seen are fairly simple, e.g., they take two numbers as input and return their sum. I cannot find any documentation or examples on how to return multiple values in Python. This is done in the C++ method called methodfour in the CompleteAddin tutorial

Re: [udk-dev] returning multiple values (and range cells) from a Python calc add-in

2007-05-19 Thread Joachim Dahl
thanks, this brought me a step further... Doing like Joerg suggest, at least I don't get the #NAME error. I invoke my add-in as =LP(A1:A2) but only a single element of the (1,2), array is returned (the first element). Joachim

Re: [udk-dev] returning multiple values (and range cells) from a Python calc add-in

2007-05-21 Thread Joachim Dahl
sample to matrixes, just to see, how it behaves. But as I said, i dont know calc good enough. Bye, Joerg Joachim Dahl wrote: thanks, this brought me a step further... Doing like Joerg suggest, at least I don't get the #NAME error. I invoke my add-in as =LP(A1:A2) but only a single element

Re: [udk-dev] returning multiple values (and range cells) from a Python calc add-in

2007-05-21 Thread Joachim Dahl
I just wanted to add an update... One way to output several values seems to be via the XCellRange type; I guess that's what have been looking for all along... After learning more by trial and error, the Python UNO bridge is very nice! - Joachim

Re: [udk-dev] Re: returning multiple values (and range cells) from a Python calc add-in

2007-05-26 Thread Joachim Dahl
advantages and it would be nice if you can support this. I know it is not so important for you because your add-in works but i think it is worth to support the latest features at least for new implementations. Or did you already have an xcu file for your add-in? Juergen Joachim Dahl wrote: Hi Andreas

Re: [udk-dev] Re: returning multiple values (and range cells) from a Python calc add-in

2007-05-28 Thread Joachim Dahl
I have a final question that I'd like to ask you... I developed and tested the add-in on Ubuntu Feisty that comes with OOo 2.2.0. The add-in seems to work perfectly, but the function wizard is incredibly sluggish for my add-in (and not for the regular OOo add-in)... For example, when I

Re: [udk-dev] Re: returning multiple values (and range cells) from a Python calc add-in

2007-05-29 Thread Joachim Dahl
it. Maybe you can prepare a small demo add-in and can provide it for further investigation. Juergen Joachim Dahl wrote: I have a final question that I'd like to ask you... I developed and tested the add-in on Ubuntu Feisty that comes with OOo 2.2.0. The add-in seems to work perfectly

Re: [udk-dev] RE:PyUNO and OpenOffice installaed with Ubuntu distro

2007-09-21 Thread Joachim Dahl
I've used it on Ubuntu 7.04 and 7.10 for a spreadsheet plugin: http://abel.ee.ucla.edu/cvxopt/applications/openoffice-org-spreadsheet-plugin/ and it has always worked perfectly for me. -joachim On 9/21/07, Laurent Godard [EMAIL PROTECTED] wrote: Hi The Ubuntu 7.04 distro provides a python

Re: [udk-dev] RE:PyUNO and OpenOffice installaed with Ubuntu distro

2007-09-21 Thread Joachim Dahl
It uses the default python2.5 installed install in /usr/lib/python2.5 On 9/21/07, ashok _ [EMAIL PROTECTED] wrote: On 9/21/07, Joachim Dahl [EMAIL PROTECTED] wrote: I've used it on Ubuntu 7.04 and 7.10 for a spreadsheet plugin: http://abel.ee.ucla.edu/cvxopt/applications/openoffice-org