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@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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.