Set column vertical alignment to middle via script?

Previous topic - Next topic

Gibbz

Hey all,

Im looking for a way to change the vertical alignment setting via the python api.
I want to set it from Top to Middle.
I cant find a way to change this...

a.l.e

the vertical align has been added late to scribus and is probably not available in the scripter.
of course, you're welcome to create a patch that adds the command to the scripter!
it's really not that hard... it's almost all copy paste.
just raise a hand if you need help for doing it.

before the feature was available, i did create a script that tried to an "as good as possible" vertical centering. if you don't feel like patching scribus, you can use it in your script:

https://superuser.com/questions/231576/scribus-vertically-align-text-within-a-text-frame

you can download a copy from here:

https://raw.githubusercontent.com/aoloe/scribus-script-collection/master/text-vertical-align/text-vertical-align.py

ciao
a.l.e

fredzannarbor

As a followup it appears that this is now supported using setTextVerticalAlignment and ALIGNV_CENTERED.