Scribus Forums

Scribus => Scripts and Plugins => Topic started by: hibert42 on May 18, 2025, 04:02:58 PM

Title: No itemDialog?
Post by: hibert42 on May 18, 2025, 04:02:58 PM
Hey, I tried to add a itemDialog into a Script, as it is described in the API Documentation here:
https://impagina.org/scribus-scripter-api/dialog/

Well... is is not working. The Errors Message says:
module scribus has no attribute itemDialog

The Line of code in my script currently looks like this:
position = scribus.itemDialog('title', 'text in the window', ['apples', 'pears', 'raisins'])
I am using Scribus 1.6.2

is this only available in the comming 1.7 ?
Title: Re: No itemDialog?
Post by: hibert42 on May 18, 2025, 04:29:16 PM
Ok, I just downloaded the 1.7.0 Version of scribus (which looks amazing btw.)
but it gives me the same error...

scribus has no attribute "itemDialog" .... why is it in the api when it is not in scribus.
The API says, it was generated from scribus 1.7 ...

Or am I doing something wrong here?
Title: Re: No itemDialog?
Post by: a.l.e on May 18, 2025, 06:26:06 PM
itemDialog() has only been added to the API very recently (last week...)

i guess that the last time i've generated the documentation, i was in the branch that i did use to create the scripter function...

if you're brave enough (and need that function), you can now download the community managed nightly build from gitlab:

https://gitlab.com/scribus/scribus/-/jobs/artifacts/master/raw/Scribus-nightly-x86_64.AppImage?job=appimage%3Alinux

it should be in there.

you get even less warranty than with the official scribus : - )