Date: prev next · Thread: first prev next last
2024 Archives by date, by thread · List index


Le 06/02/2024 à 18:26, Jean-Christophe Sekinger a écrit :
Fedora 39

Libre Office 7.6

Python 3.12

Bonjour

je ne suis pas dev, du tout, mais peintre et écrivain et touche à beaucoup de choses

j'ai installé Fedora avant-hier (je venais de Manjaro) et reinstallé libre Office. Je l'ai fait depuis le site officiel.

J'ai quelques scripts python, dont un que j'aimerais modifier pour l'installer dans les macros de Libre Office.

j'en ai un tout simple pour essayer de vérifier et je l'ai mis dans ~/.config/libreoffice/4/user/Scripts/python/python.Bonjour.py (dossier «Scripts» que j'ai créé)

# Fichier: python.Bonjour.py
def main():
    print("Bonjour")
main()

mais quand dans Writer, je vais dans options > macros > executer… je ne le vois pas.

quel est le problème ?Bonjour et bienvenue
un peu de lecture sur https://wiki.documentfoundation.org/Macros/Python_Design_Guide/fr
donnera des pistes
que je n'ai pas exploré, j'ai rèvé un temps python mais c'est resté en rêve !

Gérard


--
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.