Recent posts

#51
Code / Re: PythonAPI and groups
Last post by henrylaw - March 16, 2026, 07:18:16 PM
I've found a workround for this; if you retrieve the names of the objects in the group and then ungroup it, you can then access their properties by name.  But you have to issue "closeDoc()" before exiting your script as otherwise Scribus will remain open and ask for confirmation.

Here's a code fragment which works.  (It processes text frames unless they have paragraph style "diary_style")

grouped_items = scribus.getGroupItems( item_name, type=4 )
scribus.unGroupObjects( item_name )
for gi in grouped_items:
if gi[1] == 4:
  try:
    para_style = scribus.getParagraphStyle( gi[0] )
  except scribus.NoValidObjectError:
    print( f"Object not found: '{gi[0]}'" )
    continue
  if para_style != diary_style:
    process_text_frame(gi[0])
    ... etc
#52
Code / Re: PythonAPI and groups
Last post by henrylaw - March 16, 2026, 03:59:52 PM
I too have found that, while I can get a list of the object names, I can't even access them to determine their properties.  I have an existing document which I'm trying to analyse; it has groups of text frames and I want to examine the paragraph styles assigned to each of those frames.  This code fragment shows how I'm trying to do it:
grouped_items = scribus.getGroupItems( 'group name', type=4 )
for gi in grouped_items:
    if gi[1] == 4:
        try:
            para_style = scribus.getParagraphStyle( gi[0] )
        except scribus.NoValidObjectError:
            print( f"Object not found: '{gi[0]}'" )
            continue
        print( f"Item '{gi[0]}' in group; style '{para_style}'" )

I get "Object not found" for every text frame in the group.

The getGroupItems method could be really useful, essential even; but not if you can't do anything with what it finds.
#53
General Discussion / Index Creation not saved
Last post by Kerrrunchhh - March 16, 2026, 11:23:02 AM
I succeeded in creating a content and an index page for my project.
But when I load the document creating them again does not work.
Maybe saving them is buggy?
#54
General Discussion / Text Styles: Can the Direct pa...
Last post by marce colina - March 15, 2026, 01:16:47 AM
Is there a way to override the Direct paragraph formatting when applying an style? Such option would be handy, since in some cases you apply the text style and is not really applied until you made the second step of pressing the remove the direct paragraph formatting icon.
#56
Features / Re: PDF Export Profiles
Last post by a.l.e - March 14, 2026, 09:37:13 AM
There is a proposal for exporting the PDF presets:

https://bugs.scribus.net/view.php?id=16257
#57
Features / Re: PDF Export Profiles
Last post by NathanUp - March 11, 2026, 05:18:04 PM
How cool! Thanks for the script. 

QuoteI do agree it would be great to have easy access to multiple profiles in the pdf export window.
Yea, it would be a standout feature for Scribus. So useful. 
#58
Code / Unable to set the margin of th...
Last post by itchka - March 11, 2026, 10:54:34 AM
I have noticed that in 1.7svn having created a bulleted list withing the style manager and applying it to a list it does not seem to be possible to change the left margin of the actual bullet. It's possible to add space or tabs in front of the @ sign (which denotes the tab in the story editor) but this does not move the bullet nor does any manipulation of the margins/indents in the typography tab of the style manager. Any changes made are applied to the text and not to the bullet. I cannot find a way around this. Is it possible to fix this in the code?
#59
Linux / Re: Scribus 1.7.2 Imported Col...
Last post by Portreve - March 10, 2026, 12:15:50 AM
Quote from: Lynn on March 07, 2026, 01:52:05 AMOh that is weird. I tested it on my computer in 1.7.2 and while my custom color selection persists when there isn't a file open even if I relaunch Scribus, when a new file is made it doesn't inherit my custom color scheme.

When I did the exact same thing in 1.6.4 (set a color scheme with no file open, then made a new document) the new file automatically was given that default color scheme. It feels like this is a file creation bug.

It's actually more than a file creation bug: the program itself doesn't retain colors you import, at least in my experience.
#60
Linux / Re: Scribus 1.7.2 Imported Col...
Last post by Lynn - March 07, 2026, 01:52:05 AM
Oh that is weird. I tested it on my computer in 1.7.2 and while my custom color selection persists when there isn't a file open even if I relaunch Scribus, when a new file is made it doesn't inherit my custom color scheme.

When I did the exact same thing in 1.6.4 (set a color scheme with no file open, then made a new document) the new file automatically was given that default color scheme. It feels like this is a file creation bug.