Recent posts

#1
Beginner Talk / Re: How Add Inteface Themes
Last post by a.l.e - July 11, 2025, 09:27:35 PM
As far as I know, it should now be much easier to create new themes.

But having witnessed how much effort has been necessary to create a good new theme for Scribus, I wonder if it would not be more worth to join forces and further improve the Scribus look and feel, rather than multiplying the number of themes.

Anyway, If you can show a QSS style sheetand upload screenshots o how it improves Scribus for you, we can start a discussion : - )
#2
Scripts and Plugins / Re: Boilerplate.py does not wo...
Last post by a.l.e - July 11, 2025, 08:55:44 PM
I would say that the boilerplate from the wiki is a bit too complex for a default starter.

I would suggest something like this:

# encoding: utf-8
#
# (c) MIT your name
#
# Boilerplate for Scribus scripts
#
# For details see the README file.

try:
    import scribus
except ImportError as ex:
    print('This script must be run from inside Scribus')
    raise ex

def main():
    # Replace the following line by your code
    pass

if __name__ == "__main__":
    main()

I've added to my collection of scripts:

https://github.com/aoloe/scribus-script-repository/tree/master/boilerplate
#3
Beginner Talk / Re: How Add Inteface Themes
Last post by joseb - July 11, 2025, 07:40:21 PM
Hello,

I am reactivating this topic, although I don't know if it would be better to create another thread or create an issue in the bug tracker.

I have the 'Scribus-1.7.1.svn-snapshot-20250614' version and you can already choose between dark or light mode in preferences. It's great.

I love Scribus and the new versions offer a very beautiful interface, but I would like to ask if Scribus will move forward with some of the following options:

- Will Scribus have more 'skins' as proposed by Indigo UI?

- Is there a folder in the Scribus installation where users can include new "themes" (which then appear in the preferences list)?

- I know that creating these light/dark themes can be a lot of work, but could Scribus be left more open for users to create their own themes?

- I'm not a programmer and have no experience, but I've done some research with some 'artificial intelligences' and they are able to generate .qss files (Qt Style Sheets) that modify the Scribus interface.

- Do you think Scribus can benefit from these custom qss styles? These qss files could be shared. Each user could copy it to a certain path and then choose it in the preferences dropdown.

- This can avoid further development of the main Scribus programmers and hours of work. Also make Scribus look and feel independent of the operating system. And give the user the possibility to create or even share these custom qss styles.
#4
Beginner Talk / Re: How do I create a table wh...
Last post by hjh - July 11, 2025, 05:54:46 PM
I realize that it also needs to work for to character (digits) and drop caps seems only to apply for one character.

So the issue is about creating an "inner text frame" in the top left corner of the cell and have the text of the cell paragraph flow around it.

And I think I found the instructions here: https://wiki.scribus.net/canvas/Advanced_Drop_Caps
#5
Beginner Talk / How do I create a table where ...
Last post by hjh - July 11, 2025, 04:35:32 PM
Hi

For a calendar I use a table and I want the cells to have the cell number using drop caps, so that the rest of the text can be smaller and wrap around it.

How do I create a table or cell style which makes this happen?

--Hannes
#6
Scripts and Plugins / Re: Boilerplate.py does not wo...
Last post by hjh - July 11, 2025, 01:29:55 PM
The solution is to write

scribus.createText(40, 40, 100, 30, "myFirstTextFrame")


So the problem is solved.
boilerplate.py  in
C:\ScribusPortable\App\Scribus\share\samples

works fine with

scribus.createText(40, 40, 100, 30, "myFirstTextFrame")

added after "Insert code here"
#7
Scripts and Plugins / Re: Boilerplate.py does not wo...
Last post by hjh - July 11, 2025, 12:09:26 PM
However if I insert

````
createText(40, 40, 100, 30, "myFirstTextFrame")
````

After "Your code goes here" and run it on a new document I get an error message that 'createText' is not defined.


So I am looking for a boilerplate.py which operates on a new blank document and inserts a single text frame.
#8
Scripts and Plugins / Re: Boilerplate.py does not wo...
Last post by hjh - July 11, 2025, 11:56:38 AM
I found a correct version of boilerplate.py  in
C:\ScribusPortable\App\Scribus\share\samples
and copied it to
C:\ScribusPortable\Data\Scripts
#9
Scripts and Plugins / Boilerplate.py does not work i...
Last post by hjh - July 11, 2025, 11:26:15 AM
Hi

The boiler plate script given on the wiki at https://wiki.scribus.net/canvas/Boilerplate.py
does not work even if there is no change.


The error message is

````
Traceback (most recent call last):
  File "<string>", line 11, in <module>
  File "<string>", line 11
    except ImportError,err:
                      ^
SyntaxError: invalid syntax
````

The same thing happens with https://wiki.scribus.net/canvas/Scripter/Snippet/Main

How can I fix this?

Regards
Hannes


P.S. The wiki page https://wiki.scribus.net/canvas/Boilerplate.py was last edited 10 years ago an applies to version 1.4.0
(retrieved from 1.4.0 rc6 script directory)
#10
Free discussion / XKCD
Last post by AdmFubar - July 10, 2025, 06:43:48 PM