[Scribus] Scripter & InsertText
Owen Cook
rcook
Tue Nov 9 10:59:14 CET 2004
On Tue, 9 Nov 2004, Guest007 wrote:
> I never (since Scripter started as plugin) seen working scripts, which using
> InsertText or SetText.
> Simple1.py
1. Remove CloseDoc() from the last line of Sample1.py
-------------------------------------------------------
from scribus import *
Margins = (10, 10, 10, 30)
if NewDoc(Paper_A4, Margins, Portrait, 1, Points, NoFacingPages,
FirstPageRight):
a = CreateText(50, 50, 200, 80)
SetText("A Test for Scribus", a)
SetFontSize(20, a)
b = CreateEllipse(267, 391, 60, 60)
SetFillColor("Red", b)
SaveDocAs("Sample1.sla")
--------------------------------------------------
2. Make sure you have permission to write
(SaveDocAs("Sample1.sla")) otherwise remove the
SaveDocAs("Sample1.sla") line as well. Or place Sample1.py in your
/home/directory
Owen
More information about the scribus
mailing list