[scribus] [Python] How to get the master page name ?
Stephane Santon
m.scribus at santonum.eu
Fri Apr 25 13:34:32 UTC 2014
Hi,
Where can I find all documented scribus Python functions with parameters ?
I can't use getPageType() neither getMasterPage() ...
Best regards
Le 16/04/2014 19:12, Stephane Santon a écrit :
>
> Hello,
>
> I would like to create new pages on an existing document, but as it is
> built with MasterPages named "Normal_gauche" and "Normal_droite", I need
> to pass the master page name as argument to NewPage( ...).
>
> How can I retrieve the master page names from the current docuement ?
>
> I can't use getPageType() neither getMasterPage() ...
>
> liPage = currentPage()
>
> liType = getPageType()
> lsType = str( liType)
> self.pageTypeEntry.configure( text=lsType)
>
> try:
> lsMaster = getMasterPage()
> except:
> self.tkLog( " Fail getMasterPage()")
> lsMaster = "Fail"
>
> if (liType == 0):
> self.evenMasterPageEntry.insert( END, lsMaster)
> if (liType == 2):
> self.oddMasterPageEntry.insert( END, lsMaster)
>
>
> Thanks
>
--
Stephane Santon
Saintes, La Rochelle, Bordeaux, Cognac - France
More information about the scribus
mailing list