From: Michal K. <mi...@wp...> - 2008-02-26 23:18:15
|
Matevž Jekovec wrote: > When you call > > a=newdocument.newDefaultDocument({}) > > the empty argument you passed should be an already created document - > this script only adds two staffs with two voices, names them correctly > and adds clefs and time signatures at the beginning. > > You can create new document by calling > import CanorusPython > doc = CanorusPython.CADocument() > > and then > > a=newdocument.newDefaultDocument(doc) OK, I did, and maybe there is a hint? >>> doc = CanorusPython.CADocument() >>> a=newdocument.newDefaultDocument(doc) >>> print(a) None >>> print(doc) <CanorusPython.CADocument; proxy of <Swig Object of type 'CADocument *' at 0x8134820> > I suppose a should not be None? Regards, miko |