Python Guide - Introduction

From The Document Foundation Wiki
Jump to: navigation, search

Return to Index

What is PyUNO?

LibreOffice has the ability to write macros in several interpreted languages, one of them is Python. PyUNO is the component that gives us access to the application programming interface (API hereinafter by its acronym Application Programming Interface) of LibreOffice with Python.

Test support for macros Python

Open new document Writer. Select menu Tools -> Macro -> Run macros... in this dialog select: Libray -> LibreOffice Macros -> HelloWorld, in section Macro Name select: HelloWorldPython and click in command button Run.

I you see this result, your system can run macros Python.

Test macro python

Return to Index