Translation

python_session.xhp N0339 help.text
English vkS8P
Context English Latvian Actions
python_screen.xhp
N0435
help.text
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.
python_screen.xhp
N0436
help.text
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.
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" name="User macros">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" name="User macros">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
N0492
help.text
<literal>uiScripts</literal> Basic 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" name="session01">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
python_session.xhp
N0361
help.text
With %PRODUCTNAME Basic. Ar %PRODUCTNAME Basic.

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
N0339
help.text
Source string description
vkS8P
Source string location
python_session.xhp
String age
2 years ago
Source string age
2 years ago
Translation file
lv/helpcontent2/source/text/sbasic/python.po, string 351