<div class="gmail_quote">On Mon, Mar 28, 2011 at 10:40 AM, Mark Melvin <span dir="ltr">&lt;<a href="mailto:mark.melvin@gmail.com">mark.melvin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div class="im">On Fri, Mar 25, 2011 at 8:25 PM, Greg Ewing <span dir="ltr">&lt;<a href="mailto:greg.ewing@canterbury.ac.nz" target="_blank">greg.ewing@canterbury.ac.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>Mark Melvin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am using a Label as a type of status text.  I am finding that if it call set_text(&quot;String&quot;) on it, then do some other stuff right away, the text is not updated until later.<br>
</blockquote>
<br></div>
How much later? It should get updated before the user gets<br>
a chance to do anything else.<br>
<br>
There&#39;s an update() method, but it&#39;s currently not available<br>
on all widgets. I&#39;ll see about making it more general.<br><font color="#888888"><br></font></blockquote><div><br></div></div><div>I am setting the label text, doing some communication over a USB port (which can take a couple seconds), then setting the text to something else.  I never see the first label change.  Inserting time.sleep(x) does nothing, but I am assuming this is a threading thing.  It may work if I do my USB stuff in a background thread, but that is major change and I don&#39;t really want to get into threading for this.  I have a Label &quot;placed&quot; inside my main Window, and I don&#39;t see any update methods available on either of these. :(</div>


<div><br></div><div>Thanks,</div><div>Mark.</div></div>
</blockquote></div><div><br></div><br><div>I found a hack on Windows.  If I call myWindow._win.UpdateWindow(), it refreshes immediately.<br></div><div><br></div><div>Mark.</div>