[Scribus] Yet ANOTHER scripting bug

Mátis Barnabás sr_barna
Sat Dec 1 09:01:00 CET 2007


Chris Bergstresser ?rta:
> Hi --
> 
>    I'm really getting frustrated with the quality of Scribus.  The
> latest bug (I assume bug) is the following:
> 
>     scribus.selectText(0, 0, selected_frame)
>     scribus.insertText("Hello", -1, selected_frame)
>     scribus.selectText(0, 5), selected_frame)
>     scribus.setStyle("Section Head", selected_frame)
> 
> This code works.  However, neither of the following do:
> 
>     scribus.selectText(0, 0, selected_frame)
>     scribus.insertText("Hello\n", -1, selected_frame)
>     scribus.selectText(0, 5), selected_frame)
>     scribus.setStyle("Section Head", selected_frame)
> 
> ... and ...
> 
>     scribus.selectText(0, 0, selected_frame)
>     scribus.insertText("Hello", -1, selected_frame)
>     scribus.selectText(0, 6), selected_frame)
>     scribus.setStyle("Section Head", selected_frame)
> 
> ... both do nothing at all.  Why?
> 
> -- Chris
> _______________________________________________
> Scribus mailing list
> Scribus at nashi.altmuehlnet.de
> http://nashi.altmuehlnet.de/mailman/listinfo/scribus
> 

scribus.selectText(0, 0, selected_frame)

##character counting starts at 0
scribus.insertText("Hello\n", 0, selected_frame)

#scribus.selectText(0, 5, selected_frame)
##move cursor the begin of text
scribus.insertText("", 0, selected_frame)

scribus.setStyle("Section Head", selected_frame)

barna



More information about the scribus mailing list