[scribus] How to set baseline grid in Python script?

Gregory Pittman gregp_ky at yahoo.com
Thu Jun 25 22:38:21 CEST 2009

Eamonn O'Brien-Strain wrote:
> In a Python script I can use pass the linespacingmode=2 parameter to 
> the createParagraphStyle function, telling to to create a paragraph 
> style in which the text should be aligned to the baseline grid.
> However I cannot find where in the Python API I can set this baseline 
> grid.
> Is it in fact possible to set the baseline grid with a Python call?
No, Eamonn, there is no python command for this. Not sure it's 
necessary, since there is only one baseline grid setting for an entire 
document. You can set it in File > Preferences > Guides for future 
documents, or File > Document Setup > Guides for the current document.


More information about the scribus mailing list