[scribus] Setting text colour in text frame does not seem to work using Python [SOLVED]

Gregory Pittman gregp_ky at yahoo.com
Fri Jun 26 23:36:06 CEST 2009


O'Brien-Strain, Eamonn wrote:
> OK, I figured it out.
>
> The setTextColor has to be called AFTER the text has been inserted into the text box.
>
> So this original code of mine did not work:
>
>   t2 = createText(100,200,100,100)
>   setTextColor( "mycolor", t2 )
>   insertText( "text color set", -1, t2 )
>
> But this did work:
>
>   t2 = createText(100,200,100,100)
>   insertText( "text color set", -1, t2 )
>   setTextColor( "mycolor", t2 )
>   
good work, Eamonn

Greg




More information about the scribus mailing list