From b9be28ffef08b4cab9b91b310d0a356ca38f3a7c Mon Sep 17 00:00:00 2001 From: Alain Romedenne Date: Fri, 21 Oct 2022 09:45:55 +0200 Subject: Bracketed hidden gets shown Change-Id: I30a459a5445e7e42bf762fe081cfe7e7474188f1 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141576 Tested-by: Jenkins Reviewed-by: Alain Romedenne --- source/text/sbasic/python/python_platform.xhp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/text/sbasic/python/python_platform.xhp b/source/text/sbasic/python/python_platform.xhp index 364e067f3b..9056ffaf3f 100644 --- a/source/text/sbasic/python/python_platform.xhp +++ b/source/text/sbasic/python/python_platform.xhp @@ -29,6 +29,7 @@ ComputerName property is solely available for Windows. Basic calls to Python macros help overcome %PRODUCTNAME Basic limitations.

Using a Python class:

+ """ the_module """ import os, platform class Platform(): @property @@ -93,7 +94,7 @@

Examples:

With Python - >>> from <the_module> import Platform + >>> from < the_module > import Platform >>> print(Platform().isMacOSX) # object property True >>> input(Platform().OSName) # object property @@ -101,7 +102,7 @@ From Tools – Macros - Run Macro... menu. - from <the_module> import Platform + from < the_module > import Platform import screen_io as ui p = Platform() ui.MsgBox(''.join(['isMacOS: ',str(p.isMacOSX)]),0,p.OSName) @@ -118,10 +119,7 @@ - + -- cgit