Page 1 of 1

[Solved] Send message to screen from python script

Posted: Wed Feb 05, 2025 4:13 am
by luofeiyu
Edit python script to print string into the screen:

Code: Select all

vim  .config/libreoffice/4/user/Scripts/python/test.py
def output_screen():
    print("call python in macro")
Call the function in macro:
output.png
output.png (27.41 KiB) Viewed 7098 times
Nothing happen when to click the "run" button!

Re: How can output message into the screen when to call python script in macro?

Posted: Wed Feb 05, 2025 11:39 am
by JeJe

Re: How can output message into the screen when to call python script in macro?

Posted: Wed Feb 05, 2025 1:01 pm
by karolus
terminal_output.png
terminal_output.png (59.74 KiB) Viewed 7020 times

Re: How can output message into the screen when to call python script in macro?

Posted: Thu Feb 06, 2025 3:07 am
by Jurassic Pork
Hello,
with APSO extension, for python macros , you have a Debug Window and a Console Window to see the print :
APSO_Print.gif
APSO_Print.gif (85.71 KiB) Viewed 6949 times
Friendly, J.P