1 easymacro
Mauricio Baeza edited this page 2020-11-07 16:02:54 -06:00

EasyMacro

easymacro.py it's a library for easily develop macros and extensions in LibreOffice con Python.

It's an abstraction layer between the extensive and complex LibreOffice API UNO and your code.

Probably, your will be more happy if used it. :)


You can used easymacro.py with any extension or directly in your macros.


Installation

  • Download latest version from this repository, or clone this repository (recommended).
  • Copy file into pythonpath directory in your user macros.

Test

  • Copy and paste next macro in your library macros.
import uno
import easymacro as app

def test_easymacro():
    app.msgbox(app.INFO_DEBUG)
    return
  • Execute...
  • If you see an similar image. Congratulations!

image001


Happy develop!



Documentation

  1. Tools for debug
    1. Log in shell
    2. Special MsgBox
    3. Log to file
    4. Call MRI
    5. Catch exceptions
    6. Info Debug
  2. Tools
  3. Documents
  4. Calc