forked from amazingfate/help
minor correction
Change-Id: I900e7175a028599f320d80ff30822fcad55d9046 Reviewed-on: https://gerrit.libreoffice.org/68620 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
committed by
Olivier Hallot
parent
36a01a03a9
commit
8e550a4a31
@ -23,7 +23,7 @@
|
||||
<section id="pythondialog1">
|
||||
<h1 id="N0336"><variable id="pythondialog"><link href="text/sbasic/python/python_dialogs.xhp" name="command_name">Opening a Dialog in Python</link></variable></h1>
|
||||
</section>
|
||||
<paragraph role="paragraph" id="N0337">%PRODUCTNAME static dialogs are created with the <link href="text/sbasic/guide/create_dialog.xhp" name="dialog editor">Dialog editor</link> and are stored in varying places according to their personal (My Macros), shared (%PRODUCTNAME Macros) or document-embedded nature. In reverse, dynamic dialogs are constructed at runtime, from on Basic or Python scripts, or using any other <link href="text/shared/guide/scripting.xhp">%PRODUCTNAME supported language</link> for that matter. Opening static dialogs with Python is illustrated herewith. Exception handling and internationalization are omitted for clarity.</paragraph>
|
||||
<paragraph role="paragraph" id="N0337">%PRODUCTNAME static dialogs are created with the <link href="text/sbasic/guide/create_dialog.xhp" name="dialog editor">Dialog editor</link> and are stored in varying places according to their personal (My Macros), shared (%PRODUCTNAME Macros) or document-embedded nature. In reverse, dynamic dialogs are constructed at runtime, from Basic or Python scripts, or using any other <link href="text/shared/guide/scripting.xhp">%PRODUCTNAME supported language</link> for that matter. Opening static dialogs with Python is illustrated herewith. Exception handling and internationalization are omitted for clarity.</paragraph>
|
||||
<h2 id="N0338">My Macros or %PRODUCTNAME Macros dialogs</h2>
|
||||
<paragraph role="paragraph" id="N0339">The examples below open <literal>Access2Base Trace</literal> console or the imported <literal>TutorialsDialog</literal> dialog with <menuitem>Tools – Macros – Run Macro...</menuitem> menu:</paragraph>
|
||||
<pycode>
|
||||
@ -65,13 +65,11 @@
|
||||
<paragraph role="pycode" id="N0379" localize="false"> </paragraph>
|
||||
<paragraph role="pycode" id="N0380" localize="false">g_exportedScripts = (docDialog,)</paragraph>
|
||||
</pycode>
|
||||
<paragraph role="paragraph" id="N0381">Refer to <literal>msgbox.py</literal> in <literal>{installation}/program/</literal> directory for Python dynamic dialog examples.</paragraph>
|
||||
<section id="relatedtopics" >
|
||||
<embed href="text/sbasic/guide/show_dialog.xhp#show_dialog"/>
|
||||
<embed href="text/sbasic/python/python_examples.xhp#pythonexamples2"/>
|
||||
<embed href="text/sbasic/python/main0000.xhp#pythonscriptshelp"/>
|
||||
<paragraph role="paragraph" id="N0381">
|
||||
Refer to <literal>msgbox.py</literal> in <literal>{installation}/program/</literal> directory for Python dynamic dialog examples.
|
||||
</paragraph>
|
||||
</section>
|
||||
</body>
|
||||
</helpdocument>
|
||||
|
||||
Reference in New Issue
Block a user