Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
LibreOfficiant created page: 02.linux examples
authored
Feb 20, 2018
by
LibreOfficiant
Hide whitespace changes
Inline
Side-by-side
02.linux-examples.md
0 → 100644
View page @
e1b2047b
## Default Instance
```
python
# officehelper module
if
__name__
==
"
__main__
"
:
import
IDE_utils
as
linus
with
linux
.
Runner
()
as
jesse_owens
:
# Start/Stop
XSCRIPTCONTEXT
=
linus
.
XSCRIPTCONTEXT
# Connect/Adapt
macro_2
()
# Run
```
## Single Instance
```
python
# LibreOffice Named Pipe
if
__name__
==
"
__main__
"
:
import
IDE_utils
as
pycharm
with
pycharm
.
Runner
(
json
=
{
pgm
:
[
*
options
]})
as
carl_lewis
:
# Start/Stop
ctx
=
pycharm
.
connect
(
pipe
=
'
LibreOffice
'
)
XSCRIPTCONTEXT
=
pycharm
.
ScriptContext
(
ctx
)
# Adapt
macro_1
()
# Run
```
## Multiple Instances
\ No newline at end of file