Skip to content
kelsa-pi edited this page Aug 5, 2017 · 15 revisions

Welcome to the PyUNO_Workspace wiki!

Installation

  • Install PyUNO Workspace

    Copy pyzoPyUNOWorkspace directory from this repo in ./pyzo/tools.

  • Install documentation offline browser (optional)

    • Install Dash-like offline documentation browser:

      Linux: Zeal

      OS X: Dash

      Windows: Velocity

    • Generate UNO docset for Dash

      Follow this instruction UNO2Dash

  • Install unostarter module (optional)

    Download or clone repo unostarter

Before You Start

  • Preparation in Pyzo

    • Set shell for PyUno

      When Pyzo starts, a default shell is created. Type import uno in default shell.

      If you do not see an error, evrting is OK.

      If this is not case you must set new shell.

      In option exe type eg. /opt/libreoffice5.4/program/python

    • Activate PyUNO Workspace

      Activate plugin with Tools - PyUNO Workspace

  • Activate Dash and/or unostarter support (optional)

    • In PyUNO Workspace select checkbox and hit Save button.
    • In menu Tools - Reload tools.
  • Create your project with unostarter module (optional)

    • Copy my_project in .../Script/python directory.

Usage

  1. Start LibreOffice from the command line:

soffice "--accept=socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" --writer --norestore

/opt/libreofficedev5.4/program/soffice "--accept=socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" --writer --norestore

  1. Start Dash-like offline documentation browser

  2. Open your project in editor

  3. Set breakpoint in your code

  4. Run source code in the editor

Menu Run - Run file as script

  1. Debug

Use toolbar to debag code wi

Observ your variables in PyUNO Workspace

Clone this wiki locally