Ananga ---- Antony Brand wrote: > and I got the following error message > > Traceback (most recent call last): > File "<string>", line 9, in ? > File "C:/my first python.py", line 7, in ? > createLine( xalong , yalong , xalong+cubelength , yalong , "line1") > NameError: name 'createLine' is not defined > > > why isn't create:ine not defined? Do I have to include anonther > pythong file for it to work properly
You must `import scribus' then use scribus.createLine, or use `from scribus import *', in order to get access to the Scribus Python API. -- Craig Ringer
