[scribus] Scripter and Preferences

Gregory Pittman gregp_ky at yahoo.com
Tue Nov 23 15:17:30 CET 2010


On 11/23/2010 03:58 AM, Olivier BERTEN wrote:
> The thing is I'd like to create a new document with the user's default
> unit. getUnit() is available only when the document is already created.
>
> And for the profile question, I want to import CIE-Lab colors as RGB or
> CMYK in the user's color space (or it doesn't really make sense...).

Since changing the units after document creation is trivial, it's hard 
to see a strong need for this.

Furthermore, in any script which performs a number of operations with 
position and size of items, the python would be more complex to allow 
for the various units which might exist in the document created.

You could always get the user's feedback with a valueDialog to choose 
the units when the document is made, with the default being the most 
likely possibility in your estimation.

Greg



More information about the scribus mailing list