[Scribus] Yet ANOTHER scripting bug
Gregory Pittman
gpittman
Sat Dec 1 14:29:36 CET 2007
Chris Bergstresser wrote:
> 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?
>
overall conceptually should work, will check out. Perhaps this is a
typo, but all of your examples have unbalanced parentheses in the third
line.
Greg
More information about the scribus
mailing list