Spelling offence made to BeanShell requires correction
+ link cleanup Change-Id: If186f97bfd4ae8c4ccc2220ea8af9f1a6d1d8a2d Reviewed-on: https://gerrit.libreoffice.org/68064 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
This commit is contained in:
committed by
Adolfo Jayme Barrientos
parent
794ae77220
commit
f134b8cd96
@ -22,8 +22,8 @@
|
||||
</bookmark>
|
||||
<h1 id="N0434"><variable id="ioscreen"><link href="text/sbasic/python/python_screen.xhp" name="IO to screen">Input/Output to Screen</link></variable></h1>
|
||||
<paragraph role="paragraph" id="N0435">Python standard output file is not available when running Python macros from <menuitem>Tools – Macros - Run Macro</menuitem>... menu. Presenting the output of a module requires the Python interactive console. Features such as <literal>input()</literal>, <literal>print()</literal>, <literal>repr()</literal> and <literal>str()</literal> are available from the Python shell.</paragraph>
|
||||
<paragraph role="tip" id="N0436">The <link href="https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python" name ="apso">Alternative Python Script Organizer</link> (APSO) extension offers a msgbox() function out of its <literal>apso_utils</literal> module.</paragraph>
|
||||
<paragraph role="paragraph" id="N0437">%PRODUCTNAME Basic proposes <literal>InputBox()</literal>, <literal>Msgbox()</literal> and <literal>Print()</literal> screen I/O functions. Python alternatives exist relying either on %PRODUCTNAME API Abstract Windowing Toolkit, either on Python to Basic function calls. The latter proposes a syntax that is intentionally close to that of Basic, and uses a Python module next to a Basic module. The API Scripting Framework is used to perform Basic, Beanshell, JavaScript and Python inter-languages function calls.</paragraph>
|
||||
<paragraph role="tip" id="N0436">The <link href="https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python" name="apso">Alternative Python Script Organizer</link> (APSO) extension offers a msgbox() function out of its <literal>apso_utils</literal> module.</paragraph>
|
||||
<paragraph role="paragraph" id="N0437">%PRODUCTNAME Basic proposes <literal>InputBox()</literal>, <literal>Msgbox()</literal> and <literal>Print()</literal> screen I/O functions. Python alternatives exist relying either on %PRODUCTNAME API Abstract Windowing Toolkit, either on Python to Basic function calls. The latter proposes a syntax that is intentionally close to that of Basic, and uses a Python module next to a Basic module. The API Scripting Framework is used to perform Basic, BeanShell, JavaScript and Python inter-languages function calls.</paragraph>
|
||||
<h2 id="N0438">Python syntax:</h2>
|
||||
<paragraph role="code" id="N0439" localize="false">MsgBox(txt, buttons=0, title=None)<br/></paragraph>
|
||||
<paragraph role="code" id="N0440" localize="false">InputBox(txt, title=None, default=None)<br/></paragraph>
|
||||
@ -37,10 +37,10 @@
|
||||
<h2 id="N0449">Installation:</h2>
|
||||
<list type="unordered">
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="N0450">Copy <literal>screen_io</literal> Python module in <link href="text/sbasic/python/python_locations.xhp">My macros</link> within <UserProfile>/Scripts/python/pythonpath,</paragraph>
|
||||
<paragraph role="listitem" id="N0450">Copy <literal>screen_io</literal> Python module in <link href="text/sbasic/python/python_locations.xhp" name="User macros">My macros</link> within <UserProfile>/Scripts/python/pythonpath,</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="N0451">Copy <literal>uiScripts</literal> Basic module in <link href="text/sbasic/python/python_locations.xhp">My macros</link> Standard Basic library,</paragraph>
|
||||
<paragraph role="listitem" id="N0451">Copy <literal>uiScripts</literal> Basic module in <link href="text/sbasic/python/python_locations.xhp" name="User macros">My macros</link> Standard Basic library,</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="N0452">Restart %PRODUCTNAME.</paragraph>
|
||||
@ -95,7 +95,7 @@
|
||||
</bascode>
|
||||
<section id="relatedTopics">
|
||||
<paragraph role="paragraph" id="N0505">
|
||||
<link href="text/sbasic/python/python_2_basic.xhp">Calling Basic macros from Python</link>
|
||||
<link href="text/sbasic/python/python_2_basic.xhp" name="Calling Basic macros from Python">Calling Basic macros from Python</link>
|
||||
</paragraph>
|
||||
<embed href="text/sbasic/shared/03010000.xhp#BasicScreenIO"/>
|
||||
<embed href="text/sbasic/python/python_examples.xhp#pythonexamples2"/>
|
||||
|
||||
Reference in New Issue
Block a user