<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><div><br>
<div class="ecxmoz-cite-prefix">>hi kunda,<br>
</div>
<blockquote cite="mid:CAAt0FRhzP6OaPLn09nA8im94W1CJ4LOwfeCkQ3oiqu8beHFT6w@mail.gmail.com">
<div dir="ltr">
<div><a href="http://stackoverflow.com/questions/28190568/disable-warning-message-in-scribus" target="_blank">http://stackoverflow.com/questions/28190568/disable-warning-message-in-scribus</a><br>
</div>
<div><br>
</div>
Can someone answer this (via stackoverflow instead of here)<br>
<br>
> 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.<br>
<br>
>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
VBA)<br>
<br>
>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.<br>
</div>
</blockquote>
<br>>the question has been answered in the forums:<br>
<br>
> <a class="ecxmoz-txt-link-freetext" href="http://forums.scribus.net/index.php/topic%2c1598.msg7069.html#msg7069" target="_blank">http://forums.scribus.net/index.php/topic,1598.msg7069.html#msg7069</a><br>
<br>> 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.<br>
<br>>somebody should jump in, since he does not seem to be able to do the
patch by himself.<br></div><div><br></div><div><br></div><div>If he is using Scribus 1.5, after <a href="http://bugs.scribus.net/view.php?id=12774" target="_blank" style="font-size: 12pt;">http://bugs.scribus.net/view.php?id=12774</a> all of the dialogs should go through ScMessageBox, which currently tests ScCore->usingGUI().</div><div><br></div><div>Could something expose ScribusCore::m_UseGUI or a new flag to the scripter?</div><div><br></div><div>William</div><div><br></div> </div></body>
</html>