Sujet : "update idletasks" doesn't seem to do anything on macOS with tk 9.0.1 De : eric.brunel (at) *nospam* pragmadev.com (Eric Brunel) Groupes :comp.lang.tcl Date : 04. Mar 2025, 15:58:14 Autres entêtes Organisation : A noiseless patient Spider Message-ID :<vq74e6$1tj5o$1@dont-email.me> User-Agent : Pan/0.146 (Hic habitat felicitas; 8107378 git@gitlab.gnome.org:GNOME/pan.git)
Hello all,
I have an installation of tcl/tk 9.0.1 compiled from source on a mac mini with macOS 13.2, and I found out something quite weird: it seems that "update idletasks" has no effect at all on this platform, when it works as expected on Windows and Linux.
If I run this on Windows or Linux, I can see the progress bar being updated after I click the "Go!" button. If I do the same on macOS, the window is stuck in its initial state, and the display is updated only when everything is finished.
Note that the problem strangely does not happen when the computation is replaced by a "after 100" for example. In this case, the display is updated. But the script is actually doing something, it doesn't seem to work. Replacing "update idletasks" with just "update" works, but sometimes, you just don't want to handle pending events.
Can anybody confirm they have the same issue? I'd like to be sure it's not something in my build that causes the problem before creating a ticket.
Thanks! -- Eric
Date
Sujet
#
Auteur
4 Mar 25
"update idletasks" doesn't seem to do anything on macOS with tk 9.0.1