[scribus] How can I add an automatic page number into a text frame in a Python script

Henry Hartley henryhartley at westat.com
Tue May 11 16:51:01 CEST 2010

Andreas Huennebeck wrote:
>> I'm writing a Python script which creates a text frame which
>> should contain an automatic page number. In the Scribus GUI
>> one can do this with Ctrl-Alt-Shift-P, but simply calling
>> scribus.setText('#') in the Python script does not work
>> (of course). Is there a way to create a Python string with
>> special characters?

Does currentPage(...) give you what you want?

    currentPage() -> integer

    Returns the number of the current working page. Page numbers
    are counted from 1 upwards, no matter what the displayed
    first page number of your document is.



More information about the scribus mailing list