Ask Your Question
0

any hello world programs?

asked 2016-07-15 19:04:37 +0200

deostroll gravatar image

I am not sure if I have setup the sdk correctly. To install it, I found out that its enough you install the libreoffice-dev from the ubuntu repository.

But how do you know the stuff works?

I'd like to start with a python program that creates a text document with content "hello world" in it...

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2016-07-17 08:57:14 +0200

paulparker gravatar image

updated 2016-07-17 09:01:00 +0200

HelloWorld is available to suit most OS's including Ubuntu, do a quick search of optional packages for your OS version .

Try reading one of these:

    [writing-first-python-program](http://www.thehelloworldprogram.com/python/writing-first-python-program)

or, Tutorial for Python3 with classic: HelloWorld

.

edit flag offensive delete link more
0

answered 2016-07-16 00:58:19 +0200

Regina gravatar image

On Windows you find some example programs in your installation in folder 'share > Scripts > python'. I don't know whether they exist or will work in ubuntu. In case they are not in your installation, you can have a look at them in http://opengrok.libreoffice.org/xref/...

edit flag offensive delete link more

Comments

I've tried the following sample, but couldn't get it to work:

http://opengrok.libreoffice.org/xref/...

Here is the output of the shell on trying to execute it:

>>> import uno
>>> from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named com.sun.star.text.ControlCharacter
>>>

Perhaps my installation messed.

deostroll gravatar imagedeostroll ( 2016-09-13 19:27:33 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-07-15 19:04:37 +0200

Seen: 128 times

Last updated: Jul 17 '16