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 @@ - +