[PATCH] [PYTHON] DialogBox class for Python

Kohei Yoshida kohei.yoshida at gmail.com
Fri Jun 1 06:54:38 PDT 2012


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
<joost.eekhoorn at gmail.com> 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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>


More information about the LibreOffice mailing list