[scribus] Shifting page objects by script - new version

Gregory Pittman gpittman at iglou.com
Sat Oct 13 21:51:35 UTC 2012


On 10/13/2012 05:21 PM, JLuc wrote:
>
> AMOF when trying the script i had an error : SyntaxError: EOL while
> scanning string literal
> So i had to edit the script to have the strings written on only one line
> on line instead of 2 :
>
> shiftdir = scribus.valueDialog('Direction to shift?','Which direction to
> shift...\n Any change from default shifts to Right','Left')
>
> scribus.messageBox('OOPS!',str(pgerr)+' of the pages you entered was\n
> outside the range of the document\n and therefore
> ignored.',scribus.ICON_WARNING, scribus.BUTTON_OK)
>
> and
>
> scribus.messageBox('OOPS!',str(pgerr)+' of the pages you entered were\n
> outside the range of the document\n and therefore
> ignored.',scribus.ICON_WARNING, scribus.BUTTON_OK)
>
> I'm surprised i got that python error and not you ?
> I think it should be corrected on the wiki.
> Do you confirm ?

Well, as originally written, they were on a single line. I just modified 
it for display purposes for the wiki -- sorry. I should have put a note, 
or maybe just left it as it was.

Greg




More information about the scribus mailing list