<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:arial, sans-serif;">I see that the docstring for main_wrapper in boilerplate.py in the samples directory includes:<br></div><div style="font-family:arial, sans-serif;"><br></div><div style="font-family:arial, sans-serif;"><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">The main_wrapper() function disables redrawing, ... </span><br></div><div style="font-family:arial, sans-serif;"><br></div><div style="font-family:arial, sans-serif;">but then I don't see code for doing that in the "try" block. The "finally" block has:<br></div><div style="font-family:arial, sans-serif;"><br></div><div style="font-family:arial, sans-serif;"><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">if scribus.haveDoc():<br></span></div><div style="font-family:arial, sans-serif;"><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;"> scribus.setRedraw(True)<br></span></div><div style="font-family:arial, sans-serif;"><br></div><div style="font-family:arial, sans-serif;">so I'm wondering if the "try" block should include:<br></div><div style="font-family:arial, sans-serif;"><br></div><div style="font-family:arial, sans-serif;"><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">if scribus.haveDoc():</span><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;"><br></span></div><div style="font-family:arial, sans-serif;"><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;"> scribus.setRedraw(False)</span><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;"><br></span></div><div style="font-family:arial, sans-serif;"><br></div><div style="font-family:arial, sans-serif;">Thanks.<br></div><div id="sig49496385"><div class="signature"><br></div><div style="font-family:arial, sans-serif;"><br></div><div class="signature">--<br></div><div class="signature"><br></div><div class="signature"> Matt Miller<br></div><div class="signature"> mailto:matt.miller@fastmail.com<br></div><div class="signature"><br></div></div><div style="font-family:arial, sans-serif;"><br></div></body></html>