编写 Python 宏,需要先完成配置步骤,选择一款集成开发环境 (IDE)。
Unlike Basic language macros development in LibreOfficeDev, developing Python scripts for LibreOfficeDev 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 of LibreOfficeDev.
「替代 Python 脚本管理器 (APSO)」扩展可简化 Python 脚本的编辑,尤其是当脚本内嵌于文档中时。使用 APSO,您可以配置偏好的源代码编辑器,或者启动集成的 Python shell 以便调试 Python 脚本。也存在可审查任意 UNO 对象的扩展,更多细节请参见《设计与开发 Python 应用程序》。