<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'><div><div>>Scripter should use ScCore->usingGUI().</div><div><br></div><div>Should the implementation in scriptplugin/cmdmisc.cpp and scriptplugin/scriptplugin.cpp be similar to the implementation of setRedraw?</div><div><br></div><div>ScCore->usingGUI() is the getter for ScribusCore::m_UseGUI but is there a setter other than ScribusCore::init()?</div><div><br></div><div><div><br></div></div><div><br>On 2 Feb 2015, at 15:16, William Bader <<a href="mailto:williambader@hotmail.com">williambader@hotmail.com</a>> wrote:<br><br></div><blockquote><div>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<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>
</div></blockquote><blockquote><div><span>_______________________________________________</span><br><span>scribus-dev mailing list</span><br><span><a href="mailto:scribus-dev@lists.scribus.net">scribus-dev@lists.scribus.net</a></span><br><span><a href="http://lists.scribus.net/mailman/listinfo/scribus-dev" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus-dev</a></span><br></div></blockquote><br>_______________________________________________
scribus-dev mailing list
scribus-dev@lists.scribus.net
http://lists.scribus.net/mailman/listinfo/scribus-dev</div> </div></body>
</html>