<br><br><div><span class="gmail_quote">On 8/9/07, <b class="gmail_sendername">[david]</b> <<a href="mailto:david@nospam.spam">david@nospam.spam</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm disappointed that I didn't get a wxPython solution.<br><br>If the only way to get wxPython to correctly handle<br>this simple task is to code around it, I don't think<br>wxPython is really ready for Windows.
</blockquote><div><br class="webkit-block-placeholder"></div><div>A thread *is* basically the right answer, though; so why does wxPython need an "answer"? Python has one.</div><div><br class="webkit-block-placeholder">
</div><div>Alternatively, let the GUI load (and don't do the long-running-task) and then do the long running task in an idle handler within the GUI. A bit at a time.</div><div><br class="webkit-block-placeholder"></div>
<div>Alternatively, from within the long-running-task, regularly do:</div><div><br class="webkit-block-placeholder"></div><div> if myApp.Pending():</div><div> myApp.Dispatch()</div><div><br class="webkit-block-placeholder">
</div><div>That'll handle any pending UI events (so the main UI is responsive). But you need to call it regularly during your main task-- if you don't want a separate thread. </div><br><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a better place to ask?</blockquote><div><br class="webkit-block-placeholder"></div><div>The wxPython mailing list. <a href="http://wxpython.org/maillist.php">http://wxpython.org/maillist.php</a></div><div><br class="webkit-block-placeholder">
</div><div>--5</div></div>