[scribus] Scripter API setLineStyle()

Gregory Pittman gpittman at iglou.com
Thu Oct 19 21:38:08 UTC 2017


On 10/19/2017 03:47 PM, ZASKE Martin wrote:
> Hi list,
> 
> I am presently writing a new script for my wife who is taking a long
> document from some other tool to Scribus.
> 
> 
> It is looking good but I got stuck with the inbuilt API Help on one detail:
> 
> I am using the latest 1.5.4svn for Windows:
> 
> 
> 
> import scribus
> 
> ...
> 
> scribus.setLineStyle(TableLineStyle)
> 
> 
> gives me
> 
> NameError: name 'TableLineStyle' is not defined
> 
> 
> since there is a mention in Help about predefined constants, I tried
> those variations:
> 
> 
> scribus.setLineStyle(LINE_TableLineStyle)
> 
> also gets me "not defined"
> 
> 

I think that what you want to have is

scribus.setLineStyle("TableLineStyle")

since TableLineStyle is not a variable name but the value of the
variable LineStyle.

Greg




More information about the scribus mailing list