[Scribus] Fwd: scripter setStyle problem with Scribus 1.3.4

Carlos Barros barros001
Thu Aug 2 13:25:43 CEST 2007

I'm resending this email as it appears that I had a problem in the last one.
Here is the link for the previously attached file:



Carlos Barros

---------- Forwarded message ----------
From: Carlos Barros <barros001 at gmail.com>
Date: Aug 1, 2007 11:32 AM
Subject: scripter setStyle problem with Scribus 1.3.4
To: scribus at nashi.altmuehlnet.de

Hi all.
I have one script that works just fine in scribus but it
doesn't work with 1.3.4. The problem is with the setStyle call. The
problem with the script is the following:

 - I create one text frame;
 - Then insert one paragraph and apply a style, say STYLE_1;
 - Then, insert another paragraph and apply another style, say STYLE_2;

Scribus works fine, but in Scribus 1.3.4 a weird problem
occurs. What happens is that when I apply the second style (STYLE_2),
scribus applies to the entire text frame, and not in the second
paragraph only. I use selectText to select just the text I want, but
it doesn't help.

I'm attaching a sample script that reproduces the error. Create a new
page with two styles:
  - STYLE_1: with red color;
  - STYLE_2: with blue color;

Then run the script. It will create two paragraphs. If you run in, it will display a red and a blue paragraph, but in 1.3.4, it
will display two blue paragraphs.

Does anyone have a hint on this?


Carlos Barros

Some time ago I went to #scribus and asked about a problem I'm having
with the scripter.
My problem sounds like some bug in scribus 1.3.4 but no one could
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.py
Type: text/x-python
Size: 1468 bytes
Desc: not available
Url : http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20070802/443b8292/attachment.py 

More information about the scribus mailing list