11
Scripts and Plugins / Re: a python script for the table of contents
« Last post by a.l.e on January 27, 2023, 11:50:26 pm »it worked here also with your document.
both with 1.6 and 1.5.8...
mmm....
both with 1.6 and 1.5.8...
mmm....
import sys
try:
import scribus
except ImportError:
print "This script only works from within Scribus"
sys.exit(1)
n = scribus.selectionCount()
if n == 0 :
scribus.messageBox('Error:', 'No frame selected');
sys.exit(1)
w = int(scribus.valueDialog('Width', 'New width (in current unit)', '10'))
h = int(scribus.valueDialog('Height', 'New height (in current unit)', '10'))
for i in range(0, n):
frame = scribus.getSelectedObject(i)
scribus.sizeObject(w, h, frame)