<div class="gmail_quote">On Mon, Mar 28, 2011 at 10:40 AM, Mark Melvin <span dir="ltr"><<a href="mailto:mark.melvin@gmail.com">mark.melvin@gmail.com</a>></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"><<a href="mailto:greg.ewing@canterbury.ac.nz" target="_blank">greg.ewing@canterbury.ac.nz</a>></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("String") 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's an update() method, but it's currently not available<br>
on all widgets. I'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't really want to get into threading for this. I have a Label "placed" inside my main Window, and I don'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>