so in my Tcl/Tk application I have a label with a text-variable:
label .mylabel -textvariable statustext -relief sunken -anchor w
and I can change the content of the label just fine by using something like set statustext "sponatenous error"
.
Unfortunately, sometimes the update of this variable is followed by some "heavy processing" that stalls the GUI for some time (e.g. downloading a file from the internet).
set statustext "downloading from $url"
download $url
Since the event-queue is blocked (at least, that's what I guess), the GUI does not get any refreshes and the label
does not show my latest message.
Is there a way to force-update the label text (preferrably via a textvariable) before starting my "heavy process"?