[scribus-dev] Stackoverflow question
williambader at hotmail.com
Mon Feb 2 14:16:51 UTC 2015
Can someone answer this (via stackoverflow instead of here)
> When importing a svg file to the DTP programme "Scribus" it
shows a warning message (with just one OK-button), that has to
be confirmed to go on. This stops my Python Script from working.
>So I need a possibility to either confirm the message or -
even better - to stop Scribus from showing this message.
(something like the "Application.DisplayAlerts = False" in Excel
>A possible solution would be to send an "Enter" command
using sendkeys, but I don't like that because the command could
miss the target.
>the question has been answered in the forums:
> basically, he will need to patch scribus to avoid the dialog. and i
think that it would be a good idea to patch scribus to not show
dialogs when running scripts.
>somebody should jump in, since he does not seem to be able to do the
patch by himself.
If he is using Scribus 1.5, after http://bugs.scribus.net/view.php?id=12774 all of the dialogs should go through ScMessageBox, which currently tests ScCore->usingGUI().
Could something expose ScribusCore::m_UseGUI or a new flag to the scripter?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the scribus-dev