%PRODUCTNAME provides an Application Programming Interface (API) that allows controlling the $[officename] components with different programming languages by using the $[officename] Software Development Kit (SDK). For more information about the $[officename] API and the Software Development Kit, visit https://api.libreoffice.orgThis help section explains the most common Python script functions for %PRODUCTNAME. For more in-depth information please refer to the Designing & Developing Python Applications on the Wiki.
- Working with Python Scripts in %PRODUCTNAME.
+
Working with Python Scripts in %PRODUCTNAME.
+ You can execute Python scripts choosing . Editing scripts can be done with your preferred text editor. Python scripts are present in various locations detailed hereafter. You can refer to Programming examples for macros illustrating how to run Python interactive console from %PRODUCTNAME .
+
Programming with Python Scripts
Creating a dialog
diff --git a/source/text/sbasic/python/python_ide.xhp b/source/text/sbasic/python/python_ide.xhp
index 05645cc501..aa81a574c0 100644
--- a/source/text/sbasic/python/python_ide.xhp
+++ b/source/text/sbasic/python/python_ide.xhp
@@ -22,11 +22,18 @@
python;IDE - integrated development environmentpython;editor
- Setting up an Integrated Development Environment (IDE) for Python
+
Setting up an Integrated Development Environment (IDE) for Python
Writing Python macros requires extra configuration steps in order set an IDE of choice.
-
- Unlike Basic language macros development in %PRODUCTNAME, writing Python macros requires extra configuration steps in order to build your IDE of choice. In return you are provided with flexible design experience built upon your Python developing preferences or habits. Hereafter are IDE setup guidelines that range from beginner to advanced user.
+
+ Unlike Basic language macros development in %PRODUCTNAME, developing Python scripts for %PRODUCTNAME requires to configure an external Integrated Development Environment (IDE). Multiple IDEs are available that range from beginners to advanced Python coders. While using a Python IDE programmers benefit from numerous features such as syntax highlighting, code folding, class browsing, code completion, coding standard enforcement, test driven development, debugging, version control and many more. You can refer to Designing & Developing Python Applications on the Wiki for more in-depth information about the setup of a bridge between your IDE and a running instance %PRODUCTNAME.
+
+
The APSO Extension
+ The Alternative Python Script Organizer (APSO) extension eases the edition of Python scripts, in particular when embedded in a document. Using APSO you can configure your preferred source code editor and start the integrated Python shell. Extensions exist that help inspect arbitrary UNO objects, refer to Designing & Developing Python Applications for additional details on such extensions.
+
+
+
+
- Python scripts Organization and Location
+ Python Scripts Organization and LocationThe Python script files are stored in the file system, in folders controlled by %PRODUCTNAME. The macros can be stared at installation, user or file level.
@@ -25,13 +25,13 @@
%PRODUCTNAME Macros container
Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here.
- The LibreOfficeDev Macros container location in the file system depends on the operating system:
+ The %PRODUCTNAME Macros container location in the file system depends on the operating system:
- For Windows, C:\Program Files (x86)\LibreOffice\Basis\share\Scripts\python.
+ For Windows, C:\Program Files (x86)\LibreOffice\Basis\share\Scripts\python.
- For Linux and macOS, in $(Installation)/share/Scripts/python.
+ For Linux and macOS, $(Installation)/share/Scripts/python.
My Macros
@@ -39,10 +39,10 @@
The My Macros container location is in the user space and depends on the operating system:
- For Windows, in C:\Users\current-user\AppData\Roaming\libreoffice\4\user\Scripts\python.
+ For Windows, C:\Users\current-user\AppData\Roaming\libreoffice\4\user\Scripts\python.
- For Linux and macOS, in $(HOME)/.config/libreoffice/4/user/Scripts/python.
+ For Linux and macOS, $(HOME)/.config/libreoffice/4/user/Scripts/python.
Document macros
@@ -55,5 +55,8 @@
A module is a python file in the library or the container. Create a module adding a file in the container.