Closed maojindao55 closed 5 years ago
It appears as your handleProc(root)
is a synchronous routine. And so, while running, it blocks any UI updates.
Instead you should move time consuming processing in separate threads (goroutines) :
func main()
{
root, _ := w.GetRootElement()
updProcessTip(root, 'handle process ready!') //not work
go Processing()
}
func Processing() { // that shall be run as a thread
handleProc(root)
updProcessTip(root, 'handle process done!') // worked!
}
Note that is just a sketch, I am not a Go programmer.
thx It worked fined
such my code : two steps not work!