Translation

python_session.xhp tit help.text
English CGnPe
Context English Latvian Actions
python_screen.xhp
msgbox_tip
help.text
%PRODUCTNAME <literal>msgbox</literal> Python module proposes a <literal>msgbox()</literal> method that is illustrated in <link href="text/sbasic/python/python_handler.xhp">Creating Event Listeners</link> and <link href="text/sbasic/python/python_handler.xhp">Creating a dialog handler</link> example pages.
python_screen.xhp
N0437
help.text
%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.
python_screen.xhp
N0438
help.text
Python syntax: Python sintakse:
python_screen.xhp
N0442
help.text
Examples: Piemēri:
python_screen.xhp
N0449
help.text
Installation:
python_screen.xhp
N0450
help.text
Copy <literal>screen_io</literal> Python module in <link href="text/sbasic/python/python_locations.xhp">My macros</link> within <UserProfile>/Scripts/python/pythonpath,
python_screen.xhp
N0451
help.text
Copy <literal>uiScripts</literal> Basic module in <link href="text/sbasic/python/python_locations.xhp">My macros</link> Standard Basic library,
python_screen.xhp
N0452
help.text
Restart %PRODUCTNAME. Pārstartēt %PRODUCTNAME.
python_screen.xhp
N0453
help.text
<literal>screen_io</literal> Python module
python_screen.xhp
N0467
help.text
""" Displays a dialog box containing a message and returns a value."""
python_screen.xhp
N0473
help.text
""" Displays a prompt in a dialog box at which the user can enter text."""
python_screen.xhp
N0479
help.text
"""Outputs the specified strings or numeric expressions in a dialog box."""
python_screen.xhp
par_id161655364816553
help.text
<literal>MsgBox</literal> and <literal>InputBox</literal> methods from the <link href="text/sbasic/shared/03/sf_basic.xhp">Basic service</link> included in <link href="text/sbasic/shared/03/lib_ScriptForge.xhp"> the ScriptForge libraries</link> call directly their native Basic counterparts.
python_screen.xhp
N0492
help.text
<literal>uiScripts</literal> Basic module
python_screen.xhp
tip_APSO
help.text
The <link href="https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python">Alternative Python Script Organizer</link> (APSO) extension offers a msgbox() function out of its <literal>apso_utils</literal> module.
python_session.xhp
tit
help.text
Python_Session : Session class
python_session.xhp
N0339
help.text
<bookmark_value>Session;UserName</bookmark_value> <bookmark_value>Session;SharedScripts</bookmark_value> <bookmark_value>Session;SharedPythonScripts</bookmark_value> <bookmark_value>Session;UserProfile</bookmark_value> <bookmark_value>Session;UserScripts</bookmark_value> <bookmark_value>Session;UserPythonScripts</bookmark_value> <bookmark_value>API;PathSubstitution</bookmark_value>
python_session.xhp
N0340
help.text
<variable id="pythonsession"><link href="text/sbasic/python/python_session.xhp">Getting Session Information</link></variable>
python_session.xhp
N0341
help.text
Computing %PRODUCTNAME user profile and shared modules system file paths can be performed with Python or with Basic languages. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information.
python_session.xhp
N0343
help.text
Examples: Piemēri:
python_session.xhp
N0344
help.text
With Python shell. Ar Python čaulu.
python_session.xhp
N0346
help.text
<literal>>>> print(Session.SharedPythonScripts()) # static method</literal>
python_session.xhp
N0347
help.text
<literal>>>> print(Session().UserName) # object property</literal>
python_session.xhp
N0348
help.text
<literal>>>> input(Session().UserProfile) # object property</literal>
python_session.xhp
N0349
help.text
From <menuitem>Tools – Macros - Run Macro</menuitem>... menu.
python_session.xhp
N0354
help.text
ui.MsgBox(Session.Share(),title='Installation Share') # static method
python_session.xhp
N0355
help.text
ui.Print(Session.SharedPythonScripts()) # static method
python_session.xhp
N0356
help.text
s = Session() # instance creation
python_session.xhp
N0357
help.text
ui.MsgBox(s.UserName,title='Hello') # object property
python_session.xhp
N0358
help.text
ui.Print(s.UserPythonScripts) # object property
python_session.xhp
N0360
help.text
g_exportedScripts = (demo_session,) # public macros

Loading…

No matching activity found.
Browse all component changes

Glossary

English Latvian
No related strings found in the glossary.

String information

Context
python_session.xhp
tit
help.text
Source string description
CGnPe
Source string location
python_session.xhp
String age
3 years ago
Source string age
3 years ago
Translation file
lv/helpcontent2/source/text/sbasic/python.po, string 356