Hi all,
I am trying to create my first GUI for an old script I did, and I don't know if I am doing in the best way.
The GUI has a progress bar indeterminate (in the future I would want to do determinate), which should start when the user press a button and should stop when the script finish. However, when the script is running, GUI freezes and progress bar doesn't update.
I have the GUI and the script in two different procedures, like this (only the relevant info is showed, but I can show the whole script):
proc interface {} { # ------------------------------------------------------------------------------------------------ # set progress_frame [hwtk::labelframe $gui.progress_frame -text 'Progress' -padding 5] pack $progress_frame -padx 1 -pady 3 -anchor n -fill x -side top set progress [hwtk::progressbar $progress_frame.progress -mode indeterminate -length 350] pack $progress # ------------------------------------------------------------------------------------------------ # set button_start [hwtk::button $bottom_frame.button_start -text 'BURN IT!' -width 10 -command [list BarCommand start $progress_frame.progress]] pack $button_start -pady 1 -padx 3 -anchor e -side right -ipadx 4 -ipady 2 } proc BarCommand {op args} { foreach w $args { $w $op } update main } proc main {} { # A lot of commands here }
I have only found two topics related with problem:
- Unfreeze the HyperMesh GUI (I added command 'update' in the proc)
- Progress bar / status bar creation inside HM
But the GUI is still not working. I add command 'update' in the proc which is changing the progress bar, but it doesn't work.
The GUI is like the one I show in the image below.

I think I am missing something but I don't know what...
Thanks in advance,
Alex