Translation

python_locations.xhp par_id471636114847530 help.text
English bDXrr
Context English sid (generated) Actions
python_listener.xhp
N0496
help.text
' your code goes here
python_listener.xhp
N0498
help.text
Other Event Listeners
python_listener.xhp
N0499
help.text
Listeners are usually coded along with <link href="text/sbasic/python/python_dialogs.xhp" name="dialog opening">dialog opening</link>. Numerous listener approaches are possible such as event handlers for dialogs or event monitors for documents or forms.
python_listener.xhp
N0505
help.text
<link href="text/sbasic/shared/03132000.xhp" name="CreateUnoListener Function">CreateUnoListener Function</link>
python_listener.xhp
N0506
help.text
<link href="text/swriter/01/05060700.xhp" name="Events mapping to objects">Events mapping to objects</link>
python_listener.xhp
N0509
help.text
See also <link href="text/sbasic/shared/01040000.xhp" name="Document events">Document events</link>, <link href="text/shared/02/01170202.xhp" name="Form events">Form events</link>.
python_locations.xhp
tit
help.text
Python Scripts Organization
python_locations.xhp
hd_id391543358231021
help.text
<variable id="pythonlocations1"><link href="text/sbasic/python/python_locations.xhp" name="command_name">Python Scripts Organization and Location</link></variable>
python_locations.xhp
par_id481636114810038
help.text
%PRODUCTNAME macros are grouped in module files, modules are usually grouped in library folders, and libraries are grouped in library containers although containers can contain modules too.
python_locations.xhp
par_id771543358231022
help.text
A library is used as a major grouping for either an entire category of macros, or for an entire application. Modules usually split functionality, such as user interaction and calculations. Individual macros are subroutines and functions. The Figure below shows an example of the hierarchical structure of macro libraries in %PRODUCTNAME.
python_locations.xhp
par_id771636279690940
help.text
<image src="media/helpimg/sbasic/Library-Container.svg" id="img_id121636285791637" width="8cm" height="5.5cm"><alt id="alt_id471636279690940">Library Container diagram</alt></image>
python_locations.xhp
par_id171636114787810
help.text
<emph>Figure:</emph> Macro Library hierarchy
python_locations.xhp
par_id801636114790638
help.text
The containers are accessible in all %PRODUCTNAME programs through the user interface. Go to <menuitem>Tools > Macros > Organize Macros > Python</menuitem>, to open the Python Macros dialog.
python_locations.xhp
par_id801636114808666
help.text
Three library containers are shown in the Macro From list:
python_locations.xhp
par_id321636114854594
help.text
<emph>My Macros:</emph> personal macros available for the %PRODUCTNAME user
python_locations.xhp
par_id471636114847530
help.text
<emph>Application Macros:</emph> system macros distributed with %PRODUCTNAME for every computer user
python_locations.xhp
par_id191636114858218
help.text
<emph>Document macros:</emph> every document can contain macro libraries available in that document for all users
python_locations.xhp
hd_id911544049584458
help.text
Python Script Locations
python_locations.xhp
par_id121551089455774
help.text
Refer to <link href="text/sbasic/python/python_session.xhp" name="Getting Session Information">Getting Session Information</link> in order to get programmatic access to Python script locations.
python_locations.xhp
hd_id591544049572647
help.text
Application Macros
python_locations.xhp
par_id261544049064421
help.text
Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here.
python_locations.xhp
par_id861544210028670
help.text
The %PRODUCTNAME Macros container location in the file system depends on the operating system:
python_locations.xhp
par_id191544210072242
help.text
For <emph>Windows</emph>: <literal>{Installation}\share\Scripts\python</literal>.
python_locations.xhp
par_id61544210078654
help.text
For <emph>Linux</emph> and <emph>macOS</emph>: <literal>{Installation}/share/Scripts/python</literal>.
python_locations.xhp
hd_id861544049692222
help.text
My Macros
python_locations.xhp
par_id981544049055996
help.text
This container is accessible only by the %PRODUCTNAME user. Any open document can access macros stored the container. Macros in this location are stored in the %PRODUCTNAME user profile.
python_locations.xhp
par_id341544210187846
help.text
The My Macros container location is in the user space and depends on the operating system:
python_locations.xhp
par_id381544210213190
help.text
For <emph>Windows</emph>,<br/><literal>%APPDATA%\LibreOffice\4\user\Scripts\python</literal>.
python_locations.xhp
par_id691544210219850
help.text
For <emph>Linux</emph> and <emph>macOS</emph>,<br/><literal>$HOME/.config/libreoffice/4/user/Scripts/python</literal>.
python_locations.xhp
hd_id101544049707712
help.text
Document macros
python_locations.xhp
par_id31544049046497
help.text
Document macros are embedded in the document and are accessible only when the document is open.

Loading…

User avatar None

String updated in the repository

LibreOffice Help - master / text/sbasic/pythonsid (generated)

 
5 months ago
Browse all component changes

Glossary

English sid (generated)
No related strings found in the glossary.

String information

Context
python_locations.xhp
par_id471636114847530
help.text
Source string description
bDXrr
Source string location
python_locations.xhp
String age
5 months ago
Source string age
5 months ago
Translation file
sid/helpcontent2/source/text/sbasic/python.po, string 247