<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">hi<br>
</div>
<blockquote
cite="mid:A2B3E7A3-4B8E-44E1-A772-D41D38536491@scribus.info"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
<div>Scripter should use ScCore->usingGUI().<br>
<br>
<div><br>
</div>
</div>
<div><br>
On 2 Feb 2015, at 15:16, William Bader <<a
moz-do-not-send="true" href="mailto:williambader@hotmail.com">williambader@hotmail.com</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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
moz-do-not-send="true"
href="http://bugs.scribus.net/view.php?id=12774"
target="_blank">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>
<br>
</div>
</div>
</blockquote>
</blockquote>
<br>
as stated in the forum, he is using 1.4.x<br>
<br>
ciao<br>
a.l.e<br>
</body>
</html>