Re: [PATCH] [PYTHON] DialogBox class for Python
On 05/06/12 19:37, Joost Eekhoorn wrote: >>> I could not found a dialogbox class, thus I build one: class > DialogBox in dialogbox.py. > > I did not look good enough. > There is UnoDialog2.py in wizards/com/sun/star/wizards/ui. hi Joost, this is apparently a result of a GSoC project from last year; the goal was to convert the Java based wizards to Python, but it looks like this was not really finished and the Python wizards are still a construction site. if you like hacking in Python, then any effort to finish the Python wizards so we can actually ship them would be much appreciated. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [PATCH] [PYTHON] DialogBox class for Python
On 06/05/2012 07:37 PM, Joost Eekhoorn wrote: Where is the place for such a demo ? The LO SDK includes a number of examples, see odk/examples/python/. Stephan ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [PATCH] [PYTHON] DialogBox class for Python
>> I could not found a dialogbox class, thus I build one: class DialogBox in dialogbox.py. I did not look good enough. There is UnoDialog2.py in wizards/com/sun/star/wizards/ui. Thus dialogbox.py can go to /dev/null. Also the 2 examples. I made a new example using UnoDialog2: example-using-unodialog2.py. >> The header would have to be changed to the TEMPLATE.SOURCECODE.HEADER The attached new example has this header. >> Would the idea be to install it along with the rest of pyuno as >> utility class for reuse. Do not install dialogbox.py, because its is redundant. Just to be thrown away. >> or to just have it as a demo ? As a demo would be nice. Therefor a code review is needed and a demo context. Where is the place for such a demo ? Joost example-using-unodialog2.py Description: Binary data ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [PATCH] [PYTHON] DialogBox class for Python
On Fri, 2012-06-01 at 09:54 -0400, Kohei Yoshida wrote: > Setting [PATCH] in the subject to make sure this one doesn't get lost... > > Anyone familiar with PyUNO care to comment on Joost's nice dialog box > class addition? The header would have to be changed to the TEMPLATE.SOURCECODE.HEADER template in the root dir to get in of course, but otherwise there doesn't seem anything wrong with it anyway :-) Would the idea be to install it along with the rest of pyuno as a utility class for reuse, or to just have it as a demo ? C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [PATCH] [PYTHON] DialogBox class for Python
Setting [PATCH] in the subject to make sure this one doesn't get lost... Anyone familiar with PyUNO care to comment on Joost's nice dialog box class addition? Kohei On Thu, May 31, 2012 at 1:15 PM, Joost Eekhoorn wrote: > I could not found a dialogbox class, thus I build one: class DialogBox in > dialogbox.py. > Also made 2 examples using this DialogBox: > - example-using-dialog.py: showing a simple dialog and printing the results > to the shell. > - example-import-to-calc.py: importing data from a csv-file to a calc-sheet > and making a graph. > > This is how I run these examples on my Ubuntu: > - Open a xterm and export URE_BOOTSTRAP end PYTHONPATH (note: this is not > good practice, but it works) > -- For testing on my core: > cd /home/joost/work/git/libo/install/program > export > URE_BOOTSTRAP="file:///home/joost/git/libo/install/program/fundamentalrc" > export PYTHONPATH=/home/joost/git/libo/install/program > -- For testing on my installed LibreOffice: > cd /usr/lib/libreoffice/program > export > URE_BOOTSTRAP="file:///usr/lib/libreoffice/program/fundamentalrc" > export PYTHONPATH=/usr/lib/libreoffice/basis-link/program > - Run LibreOffice in listening mode: > ./soffice --nodefault --minimized --norestore > "--accept=socket,host=localhost,port=2002;urp;" & > - Run the python examples: > /home/joost/python/example-using-dialogbox.py > /home/joost/python/example-import-to-calc.py > > inputdata.csv is the data-file you can use for example-import-to-calc.py > > My questions: > - Is this DialogBox a usefull class? > - Is the code correct? > - What is missing? > - Is it an idea to place dialogbox.py in /core/scripting/source/pyprov/ ? > > Joost > > > ___ > LibreOffice mailing list > LibreOffice@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/libreoffice > ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice