[Scribus] crashing with python

Johannes Wilm j
Sat Nov 1 00:05:07 CET 2003


Hmm.. now of course I can't egt it to crash. Well it crashed several times 
while making the following script:

from scribus import *
TextBox = GetSelectedObject()
b = GetText(TextBox)
Letter = b[0]
SetText(b[1:], TextBox)
c = GetPosition(TextBox)
X = c[0]
Y = c[1]
dropCapBox = TextBox+'-dropCap'
CreateText(X, Y, 20, 45, dropCapBox)
SetFontSize(30, dropCapBox)
SetLineSpacing(1, dropCapBox)
SetText(Letter, dropCapBox)


On Friday 31 October 2003 23:45, Paul wrote:
> Hi,
> 
>
> > 1st option, scribus crashes when I run try running a script that has
> > errors in 
 it.
> > 
> > A request for another function is GetTextWidth(lines,"name") and 
> > GetTextHeight(lines, "name") which should give the minimum dimensions the
> > 
 text box has to have given the number of lines for the entire content
> > to be displayed.
>
> 
> Can you mail a copy of the script for testing here?
> 
> TTFN
> 
> Paul
> -- 
> One OS to fool them all
> One browser to find them
> One email client to bring them all
> And through security holes, blind them...
> 



More information about the scribus mailing list