I could not found a dialogbox class, thus I build one: class DialogBox in dialogbox.py.<br>Also made 2 examples using this DialogBox:<br>- example-using-dialog.py: showing a simple dialog and printing the results to the shell.<br>
- example-import-to-calc.py: importing data from a csv-file to a calc-sheet and making a graph.<br><br>This is how I run these examples on my Ubuntu:<br>- Open a xterm and export URE_BOOTSTRAP end PYTHONPATH (note: this is not good practice, but it works)<br>
-- For testing on my core:<br> cd /home/joost/work/git/libo/install/program<br> export URE_BOOTSTRAP="file:///home/joost/git/libo/install/program/fundamentalrc"<br> export PYTHONPATH=/home/joost/git/libo/install/program<br>
-- For testing on my installed LibreOffice:<br> cd /usr/lib/libreoffice/program<br> export URE_BOOTSTRAP="file:///usr/lib/libreoffice/program/fundamentalrc"<br> export PYTHONPATH=/usr/lib/libreoffice/basis-link/program<br>
- Run LibreOffice in listening mode:<br> ./soffice --nodefault --minimized --norestore "--accept=socket,host=localhost,port=2002;urp;" &<br>- Run the python examples:<br> /home/joost/python/example-using-dialogbox.py<br>
/home/joost/python/example-import-to-calc.py<br><br>inputdata.csv is the data-file you can use for example-import-to-calc.py<br><br>My questions:<br>- Is this DialogBox a usefull class?<br>- Is the code correct?<br>
- What is missing?<br>- Is it an idea to place dialogbox.py in /core/scripting/source/pyprov/ ?<br><br>Joost<br><br>